Posted on: 4/11/2015 3:46:31 PM | Views : 686

Hello everyone,
I am working on my dissertation project, and am having trouble accessing dynamicaally added textboxes.
I have a gridview placed on a ASP.Net WebSite, and added a column dynamically like this:
protected void gvGridView_RowDataBound(object sender, GridViewRowEventArgs e) { if (DataControlRowType.DataRow == e.Row.RowType && e.Row.RowState != DataControlRowState.Edit && (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate)) { TextBox tb = new TextBox(); tb.ID = "tb"; tb.Attributes.Add("runat", "server"); int i = e.Row.Cells.Count; i = i - 1; e.Row.Cells[i].Controls.Add(tb); } } The gridview is populated, and at the end of every row the TextBox is added. When I look at the HTML Code that is ...

Go to the complete details ...