Click here to Skip to main content
15,902,445 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Getting data from a child page Pin
kubben24-Aug-07 7:34
kubben24-Aug-07 7:34 
QuestionTextbox size on Pocket PC Device Pin
mymacryan24-Aug-07 6:03
mymacryan24-Aug-07 6:03 
Questionget countryname using ipaddress Pin
vidyasankar24-Aug-07 4:23
vidyasankar24-Aug-07 4:23 
AnswerRe: get countryname using ipaddress Pin
Jaiprakash M Bankolli24-Aug-07 21:11
Jaiprakash M Bankolli24-Aug-07 21:11 
QuestionFile Upload to server hard disk in asp.net Pin
ysunil_7424-Aug-07 4:15
ysunil_7424-Aug-07 4:15 
AnswerRe: File Upload to server hard disk in asp.net Pin
lastFarhi24-Aug-07 11:50
lastFarhi24-Aug-07 11:50 
AnswerRe: File Upload to server hard disk in asp.net Pin
Jaiprakash M Bankolli24-Aug-07 21:55
Jaiprakash M Bankolli24-Aug-07 21:55 
Questionhelp!!! its about saving data using codes Pin
Rharzkie24-Aug-07 4:04
Rharzkie24-Aug-07 4:04 
in saving data in my module, instead of using connection wizard, i use this sql codes:

Dim str As String<br />
              dbconnect = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Rara's project\grading.mdb")<br />
              dbconnect.Open()<br />
              str = "select count(*) from students where studname = '" & txtname.Text & "'"<br />
              dbcommand = New OleDbCommand(str, dbconnect)<br />
              If dbcommand.ExecuteScalar <> 0 Then<br />
                  MessageBox.Show("Already exists.", "Result")<br />
                  cleartxt()<br />
              Else<br />
                  str = "Insert into students(studname, year, course) values ('" & txtname.Text & "', " & "'" & cmbyear.Text & "', " & "'" & cmbcourse.Text & "')"<br />
                  dbcommand = New OleDbCommand(str, dbconnect)<br />
                  dbcommand.ExecuteNonQuery()<br />
                  MessageBox.Show("Record Added.", "Result")<br />
                  dbconnect.Close()<br />
                  cleartxt()<br />
              End If


but i have an error in the part there -"dbcommand.ExecuteNonQuery()"

a dialog box appear and it says:

An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll



i guess the error there is the combobox that i used? because when i try to erase the "cmbcourse.text" and "cmbyear.text", it runs..but when i put it, there's an error....

how can i fix it???

please, help me!!!
AnswerRe: help!!! its about saving data using codes Pin
Fred_Smith24-Aug-07 7:16
Fred_Smith24-Aug-07 7:16 
GeneralRe: help!!! its about saving data using codes Pin
Rharzkie24-Aug-07 16:23
Rharzkie24-Aug-07 16:23 
GeneralRe: help!!! its about saving data using codes Pin
Fred_Smith26-Aug-07 9:24
Fred_Smith26-Aug-07 9:24 
Questionhow to create itemtemplate in datalist Pin
imranafsari24-Aug-07 3:49
imranafsari24-Aug-07 3:49 
AnswerRe: how to create itemtemplate in datalist Pin
l0kke24-Aug-07 5:29
l0kke24-Aug-07 5:29 
QuestionRunning Audio in ASP.NET web app. Pin
.NET- India 24-Aug-07 3:04
.NET- India 24-Aug-07 3:04 
AnswerRe: Running Audio in ASP.NET web app. Pin
dandy7224-Aug-07 9:31
dandy7224-Aug-07 9:31 
Questionhow to retrive the value from checkboxlist Pin
biswa4724-Aug-07 2:44
biswa4724-Aug-07 2:44 
AnswerRe: how to retrive the value from checkboxlist Pin
imranafsari24-Aug-07 3:44
imranafsari24-Aug-07 3:44 
QuestionRe: how to retrive the value from checkboxlist Pin
biswa4724-Aug-07 18:42
biswa4724-Aug-07 18:42 
Questionproblem on checkboxlist Pin
biswa4724-Aug-07 2:43
biswa4724-Aug-07 2:43 
AnswerRe: problem on checkboxlist Pin
Panchal Hardik24-Aug-07 2:52
Panchal Hardik24-Aug-07 2:52 
QuestionRe: problem on checkboxlist Pin
biswa4724-Aug-07 2:55
biswa4724-Aug-07 2:55 
AnswerRe: problem on checkboxlist Pin
Panchal Hardik24-Aug-07 3:04
Panchal Hardik24-Aug-07 3:04 
AnswerRe: problem on checkboxlist Pin
John-ph24-Aug-07 5:36
John-ph24-Aug-07 5:36 
QuestionTwo Select Buttons in GridView Pin
Mahesh.J24-Aug-07 2:09
Mahesh.J24-Aug-07 2:09 
AnswerRe: Two Select Buttons in GridView Pin
ToddHileHoffer24-Aug-07 2:14
ToddHileHoffer24-Aug-07 2:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.