I was wondering if there is a way to load Content Page without loading the Master page (ASP WebForms for .NET 4.0)
Iam working on web app where client wants to add a user to DB from two diffrent places. Place 1 is a standard webpage under some url Place 2 is a modal dialog box which would open in another page to allow client to add user on the fly
As in "Place2" I was thinking on using iframe, that I dont know how to avoid loading additional master p开发者_开发百科age.
Any suggestions ?!
given that scenario I would extract your functionality to an .ascx (user control) and then host that once on a content page and again on a standard page.
You could have a separate MasterPage that you load dynamically based on the request. See How to change the Master Page dynamically
You can always use a blank master page.
You could either: 1) extract the controls you wish to reuse to a user control 2) make the masterpage controls hide-able
精彩评论