I have an update panel that exists on my Default.aspx page. When I try to access it from the Default.aspx.cs page it is saying that it is NULL and gets caught by the try catch. Below is the code from both pages. Any help identifying why it is NULL would be appreciated. This is code that I am trying to debug from a contractor that I can no longer speak with. Thanks.
Default.aspx Code
<asp:updatepanel runat="server" updatemode="Conditional" id="UpdPanel">
Default.aspx.cs Code
ScriptManager.RegisterClientScriptBlock(UpdPanel, typeof(UpdatePanel), UpdPanel.ClientID, strReturn1, false);
What I have tried:
As shown above this is the code that is giving the issue.
Default.aspx Code
<asp:updatepanel runat="server" updatemode="Conditional" id="UpdPanel">
Default.aspx.cs Code
ScriptManager.RegisterClientScriptBlock(UpdPanel, typeof(UpdatePanel), UpdPanel.ClientID, strReturn1, false);