I am a beginner to this so I am trying an example to understand so I really appreciate your help.
I have the following web application structure:
- 3 RadTextBoxes : RadTextBox1 , RadTextBox2 , RadTextBox3 + A "Save" button
I have the following code for clicking the button "save" which saves the text written in the 3 text boxes into the 3 fields of the table "Trial" in database:
protected void AddProgramButton_Click(object sender, System.EventArgs e)
{
DataBinder ds = new DataBinder();
sqlcon.Open();
SqlCommand sqlcmd = new SqlCommand("INSERT INTO Trial VALUES (@FirstColumn, @SecondColumn , @ThirdColumn)", sqlcon);
sqlcmd.Parameters.AddWithValue("@FirstColumn", RadTextBox1.Text);
sqlcmd.Parameters.AddWithValue("@SecondColumn", RadTextBox2.Text);
sqlcmd.Parameters.AddWithV ...
Go to the complete details ...