Masterpagefile setting in web.config

  • Thread starter Amit Bansal \(MCT, MCSD.NET\)
  • Start date
A

Amit Bansal \(MCT, MCSD.NET\)

the msdn documentation says that if we can do application level binding by
specifying the masterpagefile attribute in web.config, so that all the pages
in the application are bound to a master page. if we do this, we will not be
able to add any page in the application with server controls outside the
content tags, means all pages have to have the master binding. i made the
setting in web.config. but i can easliy add pages whihc are not binded to
master page file and things are working??????????????
 
A

Alan Silver

"Amit Bansal (MCT said:
the msdn documentation says that if we can do application level binding by
specifying the masterpagefile attribute in web.config, so that all the pages
in the application are bound to a master page. if we do this, we will not be
able to add any page in the application with server controls outside the
content tags, means all pages have to have the master binding. i made the
setting in web.config. but i can easliy add pages whihc are not binded to
master page file and things are working??????????????

A page in the application does not *have* to use the master specified in
the web.config. That setting is a default, to save you adding the
attribute to your Page directive in every page.

Where does MSDN say that every page must use the master set in
web.config?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top