Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
GeneralRe: Process Owner and Parent Pin
Heath Stewart21-Jan-04 18:34
protectorHeath Stewart21-Jan-04 18:34 
GeneralRe: Process Owner and Parent Pin
Jose Fco Bonnin21-Jan-04 23:34
Jose Fco Bonnin21-Jan-04 23:34 
GeneralYet another C# Quiz Pin
5.5 cents21-Jan-04 13:04
suss5.5 cents21-Jan-04 13:04 
GeneralClickity Pin
Colin Angus Mackay21-Jan-04 13:38
Colin Angus Mackay21-Jan-04 13:38 
GeneralRe: Yet another C# Quiz Pin
Colin Angus Mackay21-Jan-04 13:49
Colin Angus Mackay21-Jan-04 13:49 
GeneralRe: Yet another C# Quiz Pin
5.5 cents21-Jan-04 14:05
suss5.5 cents21-Jan-04 14:05 
GeneralRe: Yet another C# Quiz Pin
Heath Stewart21-Jan-04 17:36
protectorHeath Stewart21-Jan-04 17:36 
GeneralRe: Yet another C# Quiz Pin
5.5 cents25-Jan-04 17:52
suss5.5 cents25-Jan-04 17:52 
Generalobj/<name>.pdb problems Pin
Arch Stanton21-Jan-04 13:01
Arch Stanton21-Jan-04 13:01 
GeneralRe: obj/<name>.pdb problems Pin
LongRange.Shooter22-Jan-04 9:19
LongRange.Shooter22-Jan-04 9:19 
GeneralRe: obj/<name>.pdb problems Pin
Arch Stanton22-Jan-04 14:13
Arch Stanton22-Jan-04 14:13 
Generalbackground program to capture a key press Pin
mikemilano21-Jan-04 11:51
mikemilano21-Jan-04 11:51 
GeneralRe: background program to capture a key press Pin
Heath Stewart21-Jan-04 17:32
protectorHeath Stewart21-Jan-04 17:32 
GeneralLooking for IT Professionals on H1B Visa Transfer/Faster GreenCard Processing Pin
Keith_00221-Jan-04 10:39
Keith_00221-Jan-04 10:39 
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 

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.