08-08-07 12:16 PM
hi,
i need help!
i am developing a web application where the user inputs some data via
textboxes and it is saved in a database. i have written the following
code to pass the parameter values to a gridview. it generates no
errors but nothing is displayed on the gridview page. what method do i
use to save the data to the database since this does not work?
public void login1_Click(object sender, EventArgs e)
{
addstudentinfo.InsertParameters["Surname"].DefaultValue =
TextBox1.Text.ToString();
addstudentinfo.InsertParameters["Names"].DefaultValue
=
TextBox2.Text.ToString();
addstudentinfo.InsertParameters["Regno"].DefaultValue
=
TextBox3.Text.ToString();
}
Thank you
[ Post a follow-up to this message ]
|