Click here to Skip to main content
15,884,986 members
Home / Discussions / C#
   

C#

 
GeneralInternationalization in C# Pin
Member 16792721-Jan-04 10:29
Member 16792721-Jan-04 10:29 
GeneralRe: Internationalization in C# Pin
Heath Stewart21-Jan-04 11:16
protectorHeath Stewart21-Jan-04 11:16 
GeneralReferencing a control Pin
Daniel Negron21-Jan-04 10:25
Daniel Negron21-Jan-04 10:25 
GeneralRe: Referencing a control Pin
Heath Stewart21-Jan-04 11:08
protectorHeath Stewart21-Jan-04 11:08 
QuestionModal UserControl, exist some way? Pin
Palladino21-Jan-04 8:48
Palladino21-Jan-04 8:48 
AnswerRe: Modal UserControl, exist some way? Pin
Mazdak21-Jan-04 9:04
Mazdak21-Jan-04 9:04 
AnswerRe: Modal UserControl, exist some way? Pin
Heath Stewart21-Jan-04 11:05
protectorHeath Stewart21-Jan-04 11:05 
GeneralProblem inserting data into a database from a textbox Pin
kymyatha21-Jan-04 7:59
kymyatha21-Jan-04 7:59 
Hi all,
I was wonder if anyone ran into this problem before, if so could help me. I am trying to insert data into a database from a textbox. Once the user enters the data and presses the add button the database sould be updated and move to the next record. My problem is when the user presses add,I get the following error:

An unhandled exception of the type 'System.Data.SqlClient.SqlException occurred in system.data.dll

The code is as follows.........Thanks in advance!!!!!!!

private void Form1_Load(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.Fill(this.dataSet11,0,0,"Protype_Type");
}

private void addBtn_Click(object sender, System.EventArgs e)
{
SqlConnection con = new SqlConnection(this.sqlConnection1.ConnectionString);
con.Open();

//this.sqlInsertCommand1.CommandText = "INSERT INTO Prototype_Table (Project_Title) VALUES(@Project_Title)

string InsertThis = this.sqlInsertCommand1.CommandText;

SqlCommand cmd = new DqlCommand(InsertThis, con);

//Note:Here is were the compiler points to the error
cmdExecuteNonQuery();
con.Close();

}
}
}
GeneralRe: Problem inserting data into a database from a textbox Pin
Guillermo Rivero21-Jan-04 8:03
Guillermo Rivero21-Jan-04 8:03 
GeneralRe: Problem inserting data into a database from a textbox Pin
Mazdak21-Jan-04 8:05
Mazdak21-Jan-04 8:05 
GeneralRe: Problem inserting data into a database from a textbox Pin
Heath Stewart21-Jan-04 8:22
protectorHeath Stewart21-Jan-04 8:22 
GeneralRe: Problem inserting data into a database from a textbox Pin
gmu0421-Jan-04 22:26
gmu0421-Jan-04 22:26 
QuestionRaw socket handling tcp syn without SIO_RCVALL ? Pin
rantanplanisback21-Jan-04 7:42
rantanplanisback21-Jan-04 7:42 
GeneralArrayList Pin
hornshoj21-Jan-04 7:41
hornshoj21-Jan-04 7:41 
GeneralRe: ArrayList Pin
Heath Stewart21-Jan-04 8:17
protectorHeath Stewart21-Jan-04 8:17 
GeneralScrolling on mouse down/move Pin
MrEyes21-Jan-04 6:15
MrEyes21-Jan-04 6:15 
GeneralRe: Scrolling on mouse down/move Pin
Mazdak21-Jan-04 6:22
Mazdak21-Jan-04 6:22 
GeneralRe: Scrolling on mouse down/move Pin
Heath Stewart21-Jan-04 7:51
protectorHeath Stewart21-Jan-04 7:51 
GeneralRe: Scrolling on mouse down/move Pin
Mazdak21-Jan-04 8:02
Mazdak21-Jan-04 8:02 
GeneralRe: Scrolling on mouse down/move Pin
Heath Stewart21-Jan-04 8:11
protectorHeath Stewart21-Jan-04 8:11 
GeneralRe: Scrolling on mouse down/move Pin
Mazdak21-Jan-04 8:19
Mazdak21-Jan-04 8:19 
GeneralRe: Scrolling on mouse down/move Pin
MrEyes21-Jan-04 12:53
MrEyes21-Jan-04 12:53 
GeneralRe: Scrolling on mouse down/move Pin
Heath Stewart21-Jan-04 8:06
protectorHeath Stewart21-Jan-04 8:06 
GeneralRe: Scrolling on mouse down/move Pin
MrEyes22-Jan-04 0:15
MrEyes22-Jan-04 0:15 
GeneralRe: Scrolling on mouse down/move Pin
Heath Stewart22-Jan-04 4:24
protectorHeath Stewart22-Jan-04 4:24 

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.