Web Forms :: System.Web.UI.Page.ProcessRequest - Elapsed Exclusive Time
Jan 28, 2010
We have an ASP.NET web app talking to WCF for data. After resolving a number of service and db level performance issues, we turned to look at the web app itself.
After running a profile while hitting a few common pages, ProcessRequest is at the top of the list as far as elapsed exclusive time (which means time just in that method and any kernel code if I'm not mistaken)
Function Name
Elapsed Inclusive Time
Elapsed Exclusive Time
System.Web.UI.Page.ProcessRequest(class System.Web.HttpContext)
31,573.64
17,915.56
Viewstate sizes are not severe, prob 60k at most for fattest page.
I have 2 fields being displayed in a Gridview, StartTime, EndTime. I want to create a 'Time" column which shows the elapsed time in HH:MM format. (StartTime - EndTime) This was all generated with VS2008, table is pulled from an SQL Query.
This works.. I can then colour my grid view cells accordingly using the substring function.. the problem is that I have been told that using GETDATE three times is not a good use of resources, is it possible to use the Datediff function to get the same result?
I am want to develop a quiz site using MVC 2. A single page will display only one question. The examinee will select or type the answer and press Next button to proceed.
My business logic on the server side will record the time elapsed between two consecutive page requests. This time elapsed must not be tempered by any means to make a reliable diagnostic report.
I have a web service in ASP.NET being called by a time-sensitive process. If the web service takes longer than N seconds to run I want to return from the call so the time sensitive operation can continue. Is this possible and if so what is the code for this?
I am using the System.Timers.Timer class. And I enable when I send a message and disable when I receive the message. How do I calculate how much time has elapsed. I have set the interval as 1 sec
Basically I retransmit data after 1000 sec again if I do not recive an ACK. I retransmit 5 times max until I get a Ack. If I receive and something before 150ms then I stop retrnsmission.
Let's say I have a Label on my page. In PageLoad() it's Text parameter is set to "This is my first text".
After, for example, 1 minute I want this Label to change it's text parameter to "This is my second text" (completely automatically, without any interaction of a user with this site).
i have simple form which consists of 2 labels and 2 buttons, the first label will display the current time and second label will display the cached time for 2 mins which is absolute..
no w when i click on first button only current time have to get update,, and when i click on second button both current time cached time have to be updated even though the cached time of 2 mins not elapsed also.
am getting "Time Out Expired,The Timeout period elapsed prior to obtaining a connecttion from pool".Please suggest suddenly i am getting this error in 10% of the pages.
I have a strange issue where i have a a HttpHandler having its ProcessRequest() event firing twice.i have nothing else in the class except a pointer to a static method so i'm lost.I have done some googling to no avail even thought it appears a few people are having similar issues:
I am working on an existing application which works using a custom built MVC framework.
The gateway into the front end is an implementation of IHttpHandler to handle the requests and determine which Action to call - its called FrontControllerHandler.
Currently FrontControllerHandler.ProcessRequest(HttpContext context) method takes a HttpContext object and then continues to pass it around to various other methods that it calls.
What we're hoping to refactor is to stop passing around the 'context' object and simply refer to:
HttpContext.Current Allowing asp.net to do the work for us...its there...why not use it, right?
Thing that i'm not sure about is, would there ever be a scenarion in which the HttpContext object passed to ProcessRequest would not actually refer to the same memory location (same object) that is referenced by:
HttpContext.CurrentI'm assuming that this would never happen unless something has gone wrong, in which case i can test for it and throw an exception. EG
[Code]....
So i would like to get peoples thoughts on this...
I need to validate that a user makes a selection from a select list OR they enter text into a textbox. I'm trying to figure out which validator to use. Is there a way to make a CompareValidator do this? Or would I need to write a custom validator? If custom, do I write one for each of the form elements, or does the validation happen upon submit?
I have 2 radio button in my page. Now I can click both of them i want when i select Radionbutton1 then Radiobutton2 be deselect i mean i can just click on one of radiobutton ....
"Radio Buttons Are Not Mutually Exclusive When Used in a Repeater" according to KB #316495 http://support.microsoft.com/kb/316495. This bug also exists with ListViews, and I am having a hard time developing a workaround. Is there a solution or workaround available? I'm using Visual Studio 2010.
(Here is my ASPX. I want rbGroupedSession and rbFees to be mutually exclusive. Databinding and setting controls visible attribute to true/false is done in the code-behind. I'm also setting the RadioButtons "GroupName" property correctly in the code-behind, but it gets changed when rendered in the browser -- which is bug KB #316495)..
I need to set a page (unavailable.htm) whenever any user try to access the website from particular time (i.e 1-2 pm). I am using Application_BeginRequest() to check on the hours and redirecting to unavailable.htm. It does not work because it keeps redirecting endlessly to unavailable.htm. Below is my code :
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
I have the problem of Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
We have a Page Method on a web page using ASP .Net. We tried to put in a trace statement using both System.Diagnostics and System.Diagnostics.Debug. In Visual Studio 2008, the break point is not even hit for the line, but other break points on other lines are hit.There is no output from either method that we can see.
There is also a Global.asax error catcher that works fine in other cases, but in the Page Method is not being catched.why a Page Method and System.Diagnostics do not play well together?