CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 10/22/2007 11:45:46 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
tayyab81
Asp.Net User
Performance Issue: PortalSettings being fetched from DB for multiple times on every click10/22/2007 11:45:46 AM

0/0

 
I am confused with multiple calling of Application_BeginRequest on single click where portal settings are fetched from Database and set in the context as:
 
Context.Items.Add("PortalSettings", new PortalSettings(tabIndex, tabId));
 
I agree that  Application_BeginRequest will be called with single web event, but i wonder it is getting called four times on every clcik. is there any other series of events being raised as a result of single click in the portal? Also DesktopPortalBanner is loaded twice on every single click leading to performance issues of the portal. Thanks in advance for any help ...
 


Application_Start is raised when the Application starts.

Application_BeginRequest is raised when any Web Forms page or XML Web service in your application is requested. This event allows you to initialize resources that will be used for each request to the application. A corresponding event, Application_EndRequest, provides you with an opportunity to close or otherwise dispose of resources used for the request.

Session events are similar to application events (there is a Session_Start and a Session_End event), but are raised with each unique session within the application. A session begins when a user requests a page for the first time from your application and ends either when your application explicitly closes the session or when the session times out.


protected void Application_BeginRequest(Object sender, EventArgs e) {

// NOTICE THE INITIALIZATION BELOW :
// THIS IS HOW THE tabIndex and tabId - INITITALIZED
// SINCE THE FOLLOWING 2 ifs WOULD BE FALSE.

int tabIndex = 0;
int tabId = 1;

// Get TabIndex from querystring

if (Request.Params["tabindex"] != null) {
tabIndex = Int32.Parse(Request.Params["tabindex"]);
}

// Get TabID from querystring

if (Request.Params["tabid"] != null) {
tabId = Int32.Parse(Request.Params["tabid"]);
}

// Build and add the PortalSettings object to the current Context
Context.Items.Add("PortalSettings", new PortalSettings(tabIndex, tabId));

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Performance Issue: PortalSettings being fetched from DB for ... Performance Issue: PortalSettings being fetched from DB for multiple times on every click. Last post 10-22-2007 7:45 AM by tayyab81. ...
IBuySpy Portal White Paper The PortalSettings class is updated and placed into the “Context” object upon each web .... If the page is being requested the first time, determine if a ...
Dave Bouwman - .NET Now, every tile draws every time. So - the issue seems to be AGS not writing out ...... NET 2.0, you can create a click-one deployment in about 3 seconds, ...
Venexus DotNetNuke Blog Every time a developer commits a new set of modifications for the DNN ...... Click the Performance tab, and under Web garden, in the Maximum number of ...
Performance Issue: PortalSettings being fetched from DB for ... Performance Issue: PortalSettings being fetched from DB for multiple times on every click. Last post 10-22-2007 7:45 AM by tayyab81. ...
IBuySpy Portal White Paper The PortalSettings class is updated and placed into the “Context” object upon each web .... If the page is being requested the first time, determine if a ...
Dave Bouwman - .NET Now, every tile draws every time. So - the issue seems to be AGS not writing out ...... NET 2.0, you can create a click-one deployment in about 3 seconds, ...
Venexus DotNetNuke Blog Every time a developer commits a new set of modifications for the DNN ...... Click the Performance tab, and under Web garden, in the Maximum number of ...
Performance Issue: PortalSettings being fetched from DB for ... Performance Issue: PortalSettings being fetched from DB for multiple times on every click. Last post 10-22-2007 7:45 AM by tayyab81. ...
IBuySpy Portal White Paper The PortalSettings class is updated and placed into the “Context” object upon each web .... If the page is being requested the first time, determine if a ...




Search This Site:










data paging within the application layer. please help

bug : tabs don't move; new tabs have bad tab oder

can i get the kit ouside the msi so i can work in win 98?

using a datagrid within a user control in the portal

portal starter kit web.config, portalcfg.xml and portalcpg.xsd

can't edit

object reference problem with placeholder in user control

little lost, need help.

question about personal portal settings

howto fix error message: server error in '/' application

unable to browse to portal site after install

"object reference not set to an instance of an object" error

how to dynamically set record count in sproc

viewdocument.aspx security

best way to debug...???

server error in '/portalcsvs' application

failed to start monitoring changes

anyone using ms wse 1.0 & concerned about clause #6

how to change the logo at ibuyspy top banner

editdocs.aspx problem

sql service access denied error

autoeventwireup questions

drop down list box in vs2002

online store- help

hide module title

force "save as" dialog in document module

reference error on mobile

counter for ibuyspy portal

ibuyspy portal problem with vs2003.net

how to insert null value to date field ?

  Privacy | Contact Us
All Times Are GMT