Posted on: 5/6/2014 10:41:09 AM | Views : 349

I am developing an application in which I want to insert the data from the DataSet.
Following is my code to Insert the data:
WebForm1.aspx.cs:
public void Recieve_Data() { DataGridView.DataSource = obj.Get_Data(); DataGridView.DataBind(); } public void Insert_Data() { TextBox StudentID = DataGridView.FooterRow.FindControl("TxtID") as TextBox; TextBox StudentName = DataGridView.FooterRow.FindControl("TxtName") as TextBox; TextBox StudentSex = DataGridView.FooterRow.FindControl("TxtSex") as TextBox; TextBox StudentCity = DataGridView.FooterRow.FindControl("TxtCity") as TextBox; int StuID = Convert.ToInt32(StudentID.Text); string StuName = StudentName.Text; string StuSex = StudentSex.Text; string StuCity = StudentCity.Text; ...

Go to the complete details ...