473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP returning very slow

Hello,
I am just learning ASP.NET, so forgive me if this really a no-brainer error.

I have a ASP page with two buttons and a text box
Button1 simply populates a counter from a session variable. If I press it
the Session variable gets incremented and displays the value immediately.

Button2 runs a parameterized stored proc which returns 5000+, wide rows to
the text box. It returns pretty darn fast, Like about 1 second on my LAN.

The problem is if I then press button1 again, the huge amout of data in the
textbox seems to cause the page to take 10 to 15 seconds to clear and
finally display the value of my session variable. The same thing happens if
I press button2 again, I have to wait.

I assume the data is being pushed back to the server. If I put a where
clause in the SQL and only get 2 rows back, the wait is very short.

Thanks in advance
Nov 18 '05 #1
2 964
"TW Scannell" <tw********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,
I am just learning ASP.NET, so forgive me if this really a no-brainer error.
I have a ASP page with two buttons and a text box
Button1 simply populates a counter from a session variable. If I press it
the Session variable gets incremented and displays the value immediately.

Button2 runs a parameterized stored proc which returns 5000+, wide rows to
the text box. It returns pretty darn fast, Like about 1 second on my LAN.

The problem is if I then press button1 again, the huge amout of data in the textbox seems to cause the page to take 10 to 15 seconds to clear and
finally display the value of my session variable. The same thing happens if I press button2 again, I have to wait.

I assume the data is being pushed back to the server. If I put a where
clause in the SQL and only get 2 rows back, the wait is very short.

You have probably enabled viewstate in the control keeping the SQL. Disable
that and I guess you should be ok?

Hope it helps [and its right ;-)]
Nov 18 '05 #2
Yarp, That was it. Thank yo very much

"Sohail" <so***********@opg.com> wrote in message
news:WO*******************@news04.bloor.is.net.cab le.rogers.com...
"TW Scannell" <tw********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,
I am just learning ASP.NET, so forgive me if this really a no-brainer error.

I have a ASP page with two buttons and a text box
Button1 simply populates a counter from a session variable. If I press it the Session variable gets incremented and displays the value immediately.
Button2 runs a parameterized stored proc which returns 5000+, wide rows to the text box. It returns pretty darn fast, Like about 1 second on my LAN.
The problem is if I then press button1 again, the huge amout of data in

the
textbox seems to cause the page to take 10 to 15 seconds to clear and
finally display the value of my session variable. The same thing happens

if
I press button2 again, I have to wait.

I assume the data is being pushed back to the server. If I put a where
clause in the SQL and only get 2 rows back, the wait is very short.

You have probably enabled viewstate in the control keeping the SQL.

Disable that and I guess you should be ok?

Hope it helps [and its right ;-)]

Nov 18 '05 #3

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

Similar topics

9
by: mjm | last post by:
Folks, Stroustrup indicates that returning by value can be faster than returning by reference but gives no details as to the size of the returned object up to which this holds. My question is...
4
by: Michael Trosen | last post by:
Hi Everyone, I hope someone can help, I'm pretty new to pro*c programming. I have the following application setup: a pro*c program calls a stored procedure and recieves a cursor back: the...
1
by: Phil Sandler | last post by:
Hello, Quick, and possibly strange, question. I am doing some work testing the running time of some dynamic SQL statements on a remote machine. What I would like to do is execute the SQL on...
1
by: Luke | last post by:
Hi, I need to extract randomly 5 records from the table "Questions". Now I use SELECT TOP 5 FROM Questions ORDERBY NEWID() And it works. The problem is that I need an additional thing: if...
12
by: Jeff North | last post by:
I'm stumped and my brains are fried!!!! I have the following data +-------+------------------------------+------------+ | resID | FLEName | VersionNbr |...
2
by: Sumaira Ahmad | last post by:
Hi All My Web Service is returning a DataSet. I realized that we cannot return a DataReader.. Normally we can use a DataReader( when not using Web services) and access it as below to assign...
13
by: Kirk McDonald | last post by:
Say I have a database containing chunks of Python code. I already have a way to easily load, edit, and save them. What is slightly baffling to me is how I can effectively pass this code some...
1
by: =?Utf-8?B?RnJhbmNvaXNWaWxqb2Vu?= | last post by:
Hi there, Does anybody know how to return the results of an IEnumerable<typeas an array of the same type i.e type in a web service call without first having to collect all elements in the...
23
by: pauldepstein | last post by:
Below is posted from a link for Stanford students in computer science. QUOTE BEGINS HERE Because of the risk of misuse, some experts recommend never returning a reference from a function or...
5
by: Frank Hauptlorenz | last post by:
Hello, I recognized some days ago, that returning a DataTable blocks my WCF-Service. Is this a known bug? If I add this table to a new DataSet() and return this, it works. Thank you, Frank
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.