> I think the situation would be the same without MasterPages and the
> navigation being static in each page.
Yes it would - navigation is navigation i.e. moving from one page to another
page. Callbacks (i.e. AJAX in this case) don't involve navigation...
> What would be a proper solution to avoid re-loading the navigation then
> (as obviously framesets are.. let's say outdated :) )
I'm slightly confused as to what you're trying to achieve here... When you
move from page1.aspx to page2.aspx, page2.aspx is going to have to load from
scratch...
If you're trying to simulate the same sort of functionality as framesets,
this might work if all your pages are .htm - you could open them with
System.IO, strip off the <html>, <head> and <body> tags and squirt what's
left into a <div>...
Alternately, maybe an <iframe> would work.
Sounds like you're making life difficult for yourself with no discernible
(IMO!) benefit...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Roland Dick - 22 Oct 2007 17:09 GMT
Hi Mark,
Mark Rae [MVP] schrieb:
> Sounds like you're making life difficult for yourself with no
> discernible (IMO!) benefit...
Yeah, that might be true. Well, the main benefit would be that clicking
a link in the navigation wouldn't cause DB queries to run (which fill
some of the navigation bar).
But I think I could as well cache the data.
Thanks for your help!
Roland
Mark Rae [MVP] - 22 Oct 2007 17:15 GMT
>> Sounds like you're making life difficult for yourself with no discernible
>> (IMO!) benefit...
[quoted text clipped - 3 lines]
> of the navigation bar).
> But I think I could as well cache the data.
That would definitely be the way to go if your navigation is at least static
per session...
Presumably, the links are different per (type of) user, otherwise you'd just
hardcode them, right...?

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Roland Dick - 24 Oct 2007 12:17 GMT
Hi Mark,
Mark Rae [MVP] schrieb:
> Presumably, the links are different per (type of) user, otherwise you'd
> just hardcode them, right...?
No, in that case I would use a LoginView control and still hardcode the
links in the according rolegrouptemplate; the links are from a database
where articles are stored, and for example the 10 most popular articles
should be displayed in the navigation under a "products" collapsible
panel (together with a static "All products" link).
The other problem is that the links cause not just a postback but a
reload of the page, making the collapsible panels loose their state. But
that is a different story...
Roland