Not sure which section of forum this should gi in. I have a gridview in one page and if the user wants to edit a row, I open a new page with a detailsview for editing.
On the new page I have a text box to display the primary key of the record selected from the prior page called Log Number. Then on the new page I have a where clause on the detailview to display the record with the primary key.
The problem I need help with is the code for the findcontrol. I copied from the MSDN site and it does not bring back the selected log number. Please keep in mind I do not do much coding. Thanks in advance.
Here is the code:
protected void Page_Load(object sender, EventArgs e)
if (PreviousPage != null)
Control gridview =
TextBox source_text =
if (source_text != null)
View Complete Post