R – ASP.NET Master page Page_Load Override

asp.netmaster-pages

I have a Master page for my site that is used for styling the rest of the site and doing user authentication. This works fine except that I have one page that I would like to retain the styling from the master but not do the authentication since this is the page that tells the user that they aren't authenticated. How could I override the MasterPage's Page_Load method from this one page? Any other thoughts on how I could not authenticate on this one page without moving authentication from the master?

Best Answer

Maybe check in your master page somewhere in Request.Current.Url for the current page name (Whatever.aspx) and skip authentication for it.

Related Topic