code_junkie

Is it possible to hide the content of an asp.net master page, if page is opened as a popup?

Nov 12th, 2011
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. protected override void OnPreInit(EventArgs e)
  2. {
  3. base.OnPreInit(e);
  4.  
  5. if(Request["PopUp"] == "Y")
  6. {
  7. MasterPageFile = "~/MyPopUp.master";
  8. }
  9. }
Add Comment
Please, Sign In to add comment