I'm wondering why I can't find the updatepanel control in my codebehind file Page_Load event. I have several gridviews, each in their own accordion control/pane, all inside an updatepanel (which I was planning to split into one for each accordion when I finally get one UpdatePanel working). I guess it is probably something of which I am ignorant.
Code:
upFull = (UpdatePanel) this.Page.FindControl("upFull");
// the previous line returns null so please be gentle with the beatdown :)
gvMyWG = (GridView)upFull.ContentTemplateContainer.FindControl("gvMyWG");
gvMyGG = (GridView)upFull.ContentTemplateContainer.FindControl("gvMyGG");
//Next thing I do is call a static method and pass all grids by reference to set all gridview datasources to a SqlDataReader that is getting multiple result sets (MARS).
Comment