Hi, and thanks for peeping the query i have.
I am dynamically generating the Row in GridView and saving the data in database using StringCollection. Instead of using StringCollection i want to pass the data(user entered data) to local variable , eg:
string name = txtFName; and so on. but it wont work for dynamically created rows.
So if you knw how to assign the user provided data in the local variable like above i have show, please help me out.
The code for inserting the records for dynamic created rows in grid view via StringCollection is below
protected void btnSave_Click(object sender, EventArgs e)
int rowIndex = 0;
StringCollection sc = new StringCollection();
if (ViewState["CurrentTable"] != null)
DataTable dtCurrentTable = (DataTable)ViewState["CurrentTable"];
if (dtCurrentTable.Rows.Count > 0)
View Complete Post