problem with gridview
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
im using the Row_Command event. neither of these 2 lines of code give me the cell text string email = ((TextBox)GridView1.Rows[index].FindControl("txtEmail")).Text; string email = GridView1.Rows[index].Cells[6].Text; all cells are asp:BoundField except the email which is asp:TemplateField the row does have an email address but it comes out as empty string.:(
-
im using the Row_Command event. neither of these 2 lines of code give me the cell text string email = ((TextBox)GridView1.Rows[index].FindControl("txtEmail")).Text; string email = GridView1.Rows[index].Cells[6].Text; all cells are asp:BoundField except the email which is asp:TemplateField the row does have an email address but it comes out as empty string.:(