disable master page in code behind

Posted on 2007-07-27
Last Modified: 2012-08-13
Is it possible to disable a master page. What i want to achieve is this. I have a add_company page that uses masterpage. another page, addinvoice makes the user select a company in which the invoice should be sent to. I want a button for adding a company to popup the add_company page but without its masterpage. so i was wondering if it is possible the dissable the master page when loading the add_company page based on a request.query parameter?
Question by:oslonet
    LVL 96

    Expert Comment

    by:Bob Learned
    I don't believe that it is possible to specify the MasterPage directive, and then disable that temporarily.  I would think that you have to have a page defined without the MasterPage directive.


    Author Comment

    i think maybe i know a sollution now. today my master page is just a table which spesify the layout of som controls. if i however would use divs and css to this then i could disable all the divs except the content container couldn't I.
    LVL 96

    Accepted Solution

    Now that, my friend, would be a good direction.  


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now