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(ob ject sender, EventArgs e)
{
addstudentinfo. InsertParameter s["Surname"].DefaultValue =
TextBox1.Text.T oString();
addstudentinfo. InsertParameter s["Names"].DefaultValue
=
TextBox2.Text.T oString();
addstudentinfo. InsertParameter s["Regno"].DefaultValue
=
TextBox3.Text.T oString();
}
Thank you
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(ob ject sender, EventArgs e)
{
addstudentinfo. InsertParameter s["Surname"].DefaultValue =
TextBox1.Text.T oString();
addstudentinfo. InsertParameter s["Names"].DefaultValue
=
TextBox2.Text.T oString();
addstudentinfo. InsertParameter s["Regno"].DefaultValue
=
TextBox3.Text.T oString();
}
Thank you
Comment