I have a .aspx page that is dense to say the least. In it there is a modal popup and within that I have an update panel.(The modal may not matter here but I thought it best to mention it.) Within the update panel I have a place where the user will enter some search criteria and the results from the search are displayed in a gridview control. Within each row of the gridview control there is a checkbox for the user to select a particular record.
Upon doing so, the OnCheckedChanged event of the checkbox runs and it tries to take text from one of the cells (its a driver name) of the selected row and bind it to a label. This labe is outside both the update panel and the modalpopup.
So what I need I'm pretty sure is this to do is a full page postback when the OnCheckedChanged event fires so the label outside can display the selected rows cell text.
The code I have below almost works...(ugh!!!) It does not do the post back on checking a record. However, it seems that when I go back into the search and uncheck a record, the full postback happens and the labels text is correctly bound. Very weird.
Any direction on what I not understanding and how to fix this is most appreciated. Code is below.
protected void chbxselect_OnCheckedChanged(Object sender, EventArgs e)
CheckBox chbx = (CheckBox)sender;
if (chbx.Checked == true)
GridViewRow row = (GridViewRow)chbx.NamingContainer;
string drivername = row.Cells.Text;
lblDriverName.Text = drivername;
ScriptManager scriptManager = ScriptManager.GetCurrent(Page);
if (scriptManager != null)