c# asp.net insert button code
Today this tutorila learn c# asp.net insert button code this code support a web development application. follow the c# asp.net insert button code
Ic# asp.net insert button code
1. Doubble Click Add Button
2. Go to protected void Button1_Click(object sender, EventArgs e) Declaire Code Here
3.Write a code ADD Button follow Code And Image
protected void Add_Click(object sender, EventArgs e) {
cmd = new SqlCommand("select max(stid)+1 from Student",cn); object d = cmd.ExecuteScalar(); if (d is DBNull || d == null) { TextBox1.Text = "1"; } else { TextBox1.Text = d.ToString(); }
}
}
No comments:
Post a Comment