Last post May 09, 2020 02:21 AM by Brando ZWZ
May 05, 2020 01:11 PM|mazharul007|LINK
I am displaying one of mypages in an iframe and this page uses the same master page as others and this master page has a menu and I want to hide this menu if the page is displayed inside an iframe?
How can i do this?
May 05, 2020 01:56 PM|mgebhard|LINK
Add a querystring to the iframe src.
Check for the querystring in the Master Page's Page_Load event to toggle the navigation bar visibility.
May 05, 2020 03:22 PM|mazharul007|LINK
Can you please explain a little bit more. As i am new to asp.net so couldn't understand. If you explain it a bit more than it will be easier for me to understand.
protected void Page_Load(object sender, EventArgs e)
DataTable dt = FollowUpManager.GetWeeklyFollowUpByUserID(UserId, true);
if (dt.Rows.Count > 0)
btnFollowUp.Text = dt.Rows.Count.ToString();
btnFollowUp.Text = "0";
This is my page_load() from master page.
May 09, 2020 02:21 AM|Brando ZWZ|LINK
I found you have a same issue which I have already replied in another thread.
I suggest you could refer to that thread to solve your issue.