Hi Experts. This should not be so difficult but I am tearing my hair out. The basic concept is: UserID is stored in a hidden field when page is loaded. Dropdown list generates a gridview. Select in gridview generates a details view for that record. All is fine until I try to set a couple of defaults in the insert template of the details view. I believe the error is saying the control is not found. Where am I missing something? Thanks.
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
DetailsView1.Visible = True
Dim specID As Integer = DropDownList1.SelectedValue
Dim spDDL As DropDownList = CType(DetailsView1.FindControl("DropDownList7"), DropDownList)
spDDL.SelectedValue = specID
Dim tbUpdater As TextBox = CType(DetailsView1.FindControl("updatedByTextBox"), TextBox)
tbUpdater.Text = hfpersonID.Value