protected void ux_ResultList_SelectedIndexChanged(object sender, EventArgs e)
{
//a row has been selected, save the hazard id as a session varaible HttpContext.Current.Session[DataKey] = ux_ResultList.SelectedDataKey.Value;
// show the modal using the extender
ux_ResultList_ModalPopupExtender.Show();
}
ux_ResultList is the GridView, ux_ResultList_SelectedIndexChanged() is the procedure called when the GridView is selected, and ux_ResultList_ModalPopupExtender is the ModalPopupExtender. Don't confuse the Panel with the ModalPopupExtender. The extender shows the Panel, you tell the extender to show.
Next, I will show you how to populate the modal with the selected site information.

No comments:
Post a Comment