Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 874
  • Last Modified:

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?
0
oslonet
Asked:
oslonet
  • 2
1 Solution
 
Bob LearnedCommented:
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
0
 
oslonetAuthor Commented:
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.
0
 
Bob LearnedCommented:
Now that, my friend, would be a good direction.  

Bob
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now