473,756 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspx hanging ?


If i in my aspx cs file put code like this:

public delegate void TimeOutDelegate ();

public void timeOut()
{
Thread.Sleep(80 00);
}

private void Page_Load(objec t sender, System.EventArg s e)
{
Label1.Text= DateTime.Now.To LongTimeString( ) + ":" +
DateTime.Now.Mi llisecond ;
TimeOutDelegate timeOutDelegate = new TimeOutDelegate (this.timeOut);
timeOutDelegate .BeginInvoke(nu ll,null);
}

And then in aspx file a Label1, and a <META HTTP-EQUIV="Refresh"
CONTENT="0", to make it reload all the time.

Then the aspx page start haging or get delayed after a short time. I
think this is because some settings in IIS or
machine.config.

How come this happen ?

What settings do i need to change to avoid this ?

Best Regards, and thx if someone can help , Anders, Denmark,.

Feb 16 '07 #1
4 1626
if you have session state enabled, then page requests (for the same
session) are serialized (queued) to control access to session. just
disable session.

-- bruce (sqlwork.com)
an********@gmai l.com wrote:
If i in my aspx cs file put code like this:

public delegate void TimeOutDelegate ();

public void timeOut()
{
Thread.Sleep(80 00);
}

private void Page_Load(objec t sender, System.EventArg s e)
{
Label1.Text= DateTime.Now.To LongTimeString( ) + ":" +
DateTime.Now.Mi llisecond ;
TimeOutDelegate timeOutDelegate = new TimeOutDelegate (this.timeOut);
timeOutDelegate .BeginInvoke(nu ll,null);
}

And then in aspx file a Label1, and a <META HTTP-EQUIV="Refresh"
CONTENT="0", to make it reload all the time.

Then the aspx page start haging or get delayed after a short time. I
think this is because some settings in IIS or
machine.config.

How come this happen ?

What settings do i need to change to avoid this ?

Best Regards, and thx if someone can help , Anders, Denmark,.
Feb 16 '07 #2
I think the bigger question here is, "why do you want to halt page processing
on the server" for 8 seconds? If you want a dynamically refreshing "timed
label" the preferred way to do this is with client script and the setInterval
method.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"an********@gma il.com" wrote:
>
If i in my aspx cs file put code like this:

public delegate void TimeOutDelegate ();

public void timeOut()
{
Thread.Sleep(80 00);
}

private void Page_Load(objec t sender, System.EventArg s e)
{
Label1.Text= DateTime.Now.To LongTimeString( ) + ":" +
DateTime.Now.Mi llisecond ;
TimeOutDelegate timeOutDelegate = new TimeOutDelegate (this.timeOut);
timeOutDelegate .BeginInvoke(nu ll,null);
}

And then in aspx file a Label1, and a <META HTTP-EQUIV="Refresh"
CONTENT="0", to make it reload all the time.

Then the aspx page start haging or get delayed after a short time. I
think this is because some settings in IIS or
machine.config.

How come this happen ?

What settings do i need to change to avoid this ?

Best Regards, and thx if someone can help , Anders, Denmark,.

Feb 16 '07 #3

To set <sessionState mode="Off"did not solve the problem, it remains
the same to me, that asp.net gets hanging or delayed.

If someone have more tips or ideas they are still very welcome !.

- Peter Bromberg. This is just a "Hello World" sample to generate
the "bug/situation". I really need to find out why this kind off code
makes the asp.net hanging for me.

Best Regards, and thank you.

Anders Both

On Feb 16, 5:12 pm, bruce barker <nos...@nospam. comwrote:
if you have session state enabled, then page requests (for the same
session) are serialized (queued) to control access to session. just
disable session.

-- bruce (sqlwork.com)

andersb...@gmai l.com wrote:
If i in my aspx cs file put code like this:
public delegate void TimeOutDelegate ();
public void timeOut()
{
Thread.Sleep(80 00);
}
private void Page_Load(objec t sender, System.EventArg s e)
{
Label1.Text= DateTime.Now.To LongTimeString( ) + ":" +
DateTime.Now.Mi llisecond ;
TimeOutDelegate timeOutDelegate = new TimeOutDelegate (this.timeOut);
timeOutDelegate .BeginInvoke(nu ll,null);
}
And then in aspx file a Label1, and a <META HTTP-EQUIV="Refresh"
CONTENT="0", to make it reload all the time.
Then the aspx page start haging or get delayed after a short time. I
think this is because some settings in IIS or
machine.config.
How come this happen ?
What settings do i need to change to avoid this ?
Best Regards, and thx if someone can help , Anders, Denmark,.- Hide quoted text -

- Show quoted text -

Feb 17 '07 #4
Remark: The Thread.Sleep(80 00) is called in a asynchronous way, so the
asp.net page should not hang for 8 sec. And it does not hang for 8
sec. It only hangs if you keep on reffreshin the page with a <META
HTTP-EQUIV="Refresh"
CONTENT="0">

* *

I know this is a maybe a very strange question, but still i hope some
one got some ideas or oppionions.

On Feb 17, 10:44 pm, andersb...@gmai l.com wrote:
To set <sessionState mode="Off"did not solve the problem, it remains
the same to me, that asp.net gets hanging or delayed.

If someone have more tips or ideas they are still very welcome !.

- Peter Bromberg. This is just a "Hello World" sample to generate
the "bug/situation". I really need to find out why this kind off code
makes the asp.net hanging for me.

Best Regards, and thank you.

Anders Both

On Feb 16, 5:12 pm, bruce barker <nos...@nospam. comwrote:
if you have session state enabled, then page requests (for the same
session) are serialized (queued) to control access to session. just
disable session.
-- bruce (sqlwork.com)
andersb...@gmai l.com wrote:
If i in my aspx cs file put code like this:
public delegate void TimeOutDelegate ();
public void timeOut()
{
Thread.Sleep(80 00);
}
private void Page_Load(objec t sender, System.EventArg s e)
{
Label1.Text= DateTime.Now.To LongTimeString( ) + ":" +
DateTime.Now.Mi llisecond ;
TimeOutDelegate timeOutDelegate = new TimeOutDelegate (this.timeOut);
timeOutDelegate .BeginInvoke(nu ll,null);
}
And then in aspx file a Label1, and a <META HTTP-EQUIV="Refresh"
CONTENT="0", to make it reload all the time.
Then the aspx page start haging or get delayed after a short time. I
think this is because some settings in IIS or
machine.config.
How come this happen ?
What settings do i need to change to avoid this ?
Best Regards, and thx if someone can help , Anders, Denmark,.- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

Feb 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1496
by: omission9 | last post by:
Any advice on the following would be much appreciated. I have thrown everything I have at it and am completely stumped. I apologize for the length, I have tried to be as succint as possible. I have a pythoncard/wxPython application. The application works well except that users were reporting occasional crashes. The application would simply stop and just hang. I was able to reproduce the bug faithfully and ran the application in the...
6
6698
by: Harlan Messinger | last post by:
A publication style guide indicates that for a table heading like the following, Table 3. Wheat and rye harvest in European countries in years that end in 3 or 7 or when a new prime minister takes office. when the heading flows over more than one line, a hanging indent should be used, such that the remainder of the heading should be left-aligned, in this example, with "Wheat", leaving "Table 3. " standing off by itself on the left.
25
5025
by: Shannon Jacobs | last post by:
Maybe there is a simple trick here, and I'm not spotting it... Is there a guru of CSS hanging around here who can help out? The page in question has a multi-column table with a list of links in each column. Because links are added and deleted separately in each column, it would be exceedingly awkward to use a separate table row for each link. Therefore, within each column the links are separated by <br> tags. However, the automatic line...
6
1904
by: Marlene Arauz Martin | last post by:
Hello, How's everybody??? I have an aspx. page that is calling an executable,....like this... System.Diagnostics.ProcessStartInfo psi= new System.Diagnostics.ProcessStartInfo(); psi.FileName="RATE2.exe";
1
2155
by: Amil Hanish | last post by:
I'm having an issue on IIS 6 on Windows 2003 Server. The following simple file hangs the client forever (I quite waiting after about five minutes). No error in IIS error file or IIS log file. The website has no traffic except my testing. <HTML> <HEAD> </HEAD> <body> <form method="post" runat="server"></form>
3
2169
by: VB Programmer | last post by:
Running ZoneAlarm version 5.1.033.000 because the newest version (as you all know) hangs up ASP.NET in development mode. Anyways, I'm developing a project and most pages work fine, when debugging, but when I try to open a connection to a SQL Server db (via Data Appliation Blocks) the page (and VS.NET really) hangs badly. As a test I stopped ZoneAlarm and it's completely better. Any ideas what could be going on? What version of...
1
3070
by: =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?= | last post by:
Hello guys, I was wondering if anybody here had implemented a solution where Tables are aligned according to what the hanging indent tells us when there is a potential for the table overflowing in the right margin or out of the page. I did some research a while back and came to the conclusion at that time that it wasn't possible to have both (either we align on the hanging indent and if there is a potential for a table to be 6.75
5
2385
by: Stanimir Stamenkov | last post by:
I'm trying to style an icon "hanging" below the first line of a heading and I've found interesting difference between Mozilla and the other browsers I'm trying with - Safari 3.1.1, Opera 9.27 and IE 6: http://www.geocities.com/stanio/test/hanging-icon.html I've used negative 'text-indent' and with Mozilla the first line of text doesn't flow over the "hanging" icon, while with the other browsers I see what I want to achieve. Which is...
2
8322
by: kj | last post by:
Hi! I have a Pythonoob question. I have a script that hangs indefinitely at random times; the only thing to do at this point is to kill it. I'm looking for suggestions on how to troubleshoot and debug the problem. I'm not even sure of where exactly the script is hanging, though I suspect it is right around when it tries to read from a pipe
0
9431
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9255
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10014
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9844
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7226
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3780
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.