Hi
I have below Aspx page which is used many times. I want that its sidebar control should not get displayed when it is opened from a particular form.
<%@ Register Src="~/User/SideBar.ascx" TagPrefix="uc1" TagName="SideBar" %>
Thanks
Hi
I have below Aspx page which is used many times. I want that its sidebar control should not get displayed when it is opened from a particular form.
<%@ Register Src="~/User/SideBar.ascx" TagPrefix="uc1" TagName="SideBar" %>
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jan 28, 2023, 3:16 AM EST
Test this if Output Cache is not enabled.
protected void Page_Load(object sender, EventArgs e) { var masterPage = Master; if (masterPage != null) { (System.Web.UI.UserControl)masterPage.FindControl("uc1")).Visible = false; } }