Last post May 26, 2017 03:01 PM by funluckykitty
May 26, 2017 02:54 PM|funluckykitty|LINK
I'm struggling with grabbing the values that a user enters into a textbox that is in a templatefield in a gridview. I'm able to find the values of a
label that is in a template field, but for some reason, I can't grab the values entered in the
textboxes. For some reason, when I loop thru and try to grab the values of the two textboxes below, they are always empty, even when I'm entering data in those textboxes in the gridview. Any idea what I'm forgetting to do?
For Each row As GridViewRow In gvReport.Rows
Dim lookuplblBudgetYear As Label = DirectCast(row.FindControl("lblBudgetYear"), Label)
Dim lookupNonApproved As TextBox = DirectCast(row.FindControl("txtNonApproved"), TextBox)
Dim lookupApproved As TextBox = DirectCast(row.FindControl("txtApproved"), TextBox)
May 26, 2017 03:01 PM|funluckykitty|LINK
Ugh... figured it out. Post-back issue.