Link to home
Start Free TrialLog in
Avatar of oslonet
oslonet

asked on

disable master page in code behind

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?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

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.

Bob
Avatar of oslonet
oslonet

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial