I have register a page using the code
<%@ Register TagPrefix="uc1" TagName="side" Src="side.ascx" %>
And called this by using the code
<uc1:side ID="Side1" runat="server"></uc1:side>
And i tried to acces the ID="Side1" in behind by using
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if (Session["UName"] != null || Session["UName"] != " ")
{
Side1.Visible = true;
}
else
Side1.Visible = true;
}
but gives the error
The name 'Side1' does not exist in the current context .
How will i resolve it by accessing the 'id' using 'protected System.Web.UI'.