If u want to store 3 values of student namely name age city try this in button click
public buttonclick()
{
string name=textbox1.text;
int age=convert.toint32(textbox2.text);
int city=textbox3.text;
SqlConnection cnn = new SqlConnection(Conn);
SqlDataAdapter ada = new SqlDataAdapter("insert into tablename values(name,age,city)",cnn);
DataSet ds = new DataSet();
ada.Fill(ds);
lblmessage.text="Records added successfully";
}
Join Hands Change lives
Thanks & Regards
Straight Edge Society
0194ca071007, if this helps please login to Mark As Answer. | Alert Moderator