Re: How can I do this?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx> wrote in message
news:OL2c5Lk5HHA.600@xxxxxxxxxxxxxxxxxxxxxxx
"ma" <ma@xxxxxxxxxxx> wrote in message
news:ecgzW6i5HHA.5360@xxxxxxxxxxxxxxxxxxxxxxx

Following on from Sean's comments, I wonder if you're confusing ASP.NET
MasterPages with HTML framesets - they are quite different...

With traditional HTML framesets, the user clicks a hyperlink in the 'menu'
frame and this causes a new page to be displayed in the 'main' frame.

However, MasterPages don't work like that at all. In fact, a MasterPage is
nothing more than a UserControl... MasterPages allow common look and feel
(and sometimes functionality) across several content pages - think of them
as templates. When a content page loads, it loads the MasterPage every
time. Therefore, if you have a TreeView in a MasterPage and click on one
of its nodes, it redirects to that file which in turn loads up the
MasterPage...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Thanks Sean and Mark.

I have a table in my master page: header, footer, treeview and detail view.
should I use frameset here? If yes how? If now how do you design such
things?
I want when user click on a node in tree, only detail view is updated and
not the whole page. Is there any sample application that shows how this can
be implemented?

Regards


.



Relevant Pages

  • Re: How can I do this?
    ... I wonder if you're confusing ASP.NET MasterPages with HTML framesets - they are quite different... ... With traditional HTML framesets, the user clicks a hyperlink in the 'menu' frame and this causes a new page to be displayed in the 'main' frame. ... When a content page loads, it loads the MasterPage every time. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Restore treeview state when using materpages?
    ... and the rest is a contentplaceholder where I will load the data that was ... My problem is that when a item is selectd in my treeview the whole page ... to reload, and keep the treeviewframe the same. ... masterpages with a treeview as a menu seem to ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Is the .master extension of importance
    ... I just finished my test and it loads perfectly..... ... My expectation is that using masterpages in place of user controls, ... have MatserPages in user controls... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 2 Questions about using AJAX with Master Page
    ... it should also be noted Mark is incorrect because the MasterPage is --not-- a User Control per se but a unique type which functions similar to a User Control and then only when the page is compiled. ... I would go to http://odetocode.com/ as K. Scott Allen has done a lot of work describing MasterPages but that was before AJAX so I don't know if he's done anything in the context of using AJAX. ... a MasterPage is just a UserControl like any other UserControl. ... When you add a UserControl to a page, it gets loaded every time the page loads. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 2 Questions about using AJAX with Master Page
    ... MasterPages work", that's what I meant... ... a MasterPage is just a UserControl like any other UserControl. ... When you add a UserControl to a page, it gets loaded every time the page loads. ... That's how MasterPages work, because MasterPages are UserControls... ...
    (microsoft.public.dotnet.framework.aspnet)