- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
[CODE] SqlCommand cmd = new SqlCommand("SELECT MAX(Register_ID) AS Register_ID FROM EnrollTbl", con); SqlDataReader reader; con.Open(); reader = cmd.ExecuteReader(); if (reader.HasRows) { while (reader.Read()) { RegisterID.Text = (Convert.ToInt32(reader["Register_ID"]) + 1).ToString(); } } else { RegisterID.Text = "10000"; } reader.Close();[/CODE] It says [B]Object cannot be cast from DBNull to other types.[/B] I … | |
Re:
Hi guys, How to convert HTML syntax to RTF format using any existing library or dll?? any help appreciated. Thanks | |
Re:
Hi, I would like to add a project to my portfolio that showcases my skills in C#. I would like to somehow implement a feature of biometric security. For this particular project I wouldn't mind interfacing with a fingerprint reader for example. Can anyone make any suggestions what I might … | |
Hi, I am about to write a simple control for the Silverlight TM. I have found that it should be derrived from the Control class, but I can not find any rendering method. My goal was just write Hallo world, but after a long time wasted on googling info I'd … | |
Re:
Hello Everyone, I need to upload excel sheet in to the database. Which i am doing with the query [CODE] SELECT * INTO temp FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Dokumente und Einstellungen\l.varada\Desktop\BA-Control.xls', 'SELECT * FROM [qry_BA_Controlling (Report)$]')[/CODE] Here C:\Dokumente und Einstellungen\l.varada\Desktop\BA-Control.xls is the path from where the excel file needs to be … |