even i have changed the Response.Redirect to Server.Transfer ... but still this is un-answerable yet ... or i couldn't find the reason yet for it as why portal settings are being loaded more then one time on each request?
Is it for the fact that Application_BeginRequest is being called on every web-event raised in the application?
then how many hidden web events are being raised as a result of a single clickin the portal. Since i m getting this line executed four times after one click:
Context.Items.Add("PortalSettings", new PortalSettings(tabIndex, tabId)); in Global.cs
Smyrnian: The difference is where they the redirect is done:
In Response.Redirect("DesktopDefault.aspx") the client browser makes a second request to DesktopDefault.aspx
In Server.Transfer("DesktopDefault.aspx") the server terminates the current request and transfers the current request to DesktopDefault.aspx
If there is a reason why the asp.net team have used Response.Redirect, that can't justify two (huge) hits on the database! ;)
Nuri