473,659 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 970
"TW Scannell" <tw********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
"TW Scannell" <tw********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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
11907
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 up to which size m would you expect vector<double> returns_by_value() {
4
10890
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 cursor is defined as: SQL_CURSOR delpt_cursor
1
5137
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 the remote machine, without returning the result set to the calling machine (this would skew the results, as my connection to the remote machine is rather slow).
1
2851
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 SQL extracts record with ID=4, then it should not extract record with ID=9, because they are similar. I mean, I'd like something to tell SQL that if it extracts some questions, then it SHOULD NOT extract other ones.
12
1862
by: Jeff North | last post by:
I'm stumped and my brains are fried!!!! I have the following data +-------+------------------------------+------------+ | resID | FLEName | VersionNbr | +-------+------------------------------+------------+ | 1 | 35_laserdatandria2104.zip | 1.0 | | 2 | 35_laserdatandria2104.zip | 1.23 | | 3 | 35_microweb1.31.zip | 1.0 | | 4 | 35_microweb1.31.zip | 1.234 |
2
1245
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 values of columns of returned rows to Labels in the client aplication such as: while (dtrJobDetails.Read()) { l_shortjobdesc.Text = dtrJobDetails.ToString();
13
1691
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 arguments, run it, and somehow get a return value. (Acutally, in the process of writing this post, I figured out a pretty good way of doing it. Here's the rest of my post and the solution I came up with. Enjoy my thought process!) Right now I'm...
1
2959
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 IEnumerable<typeand storing it in memory first? This question is really about optimizing large collections of data returned by web services. If it is possible to loop through the IEnumerable<type> with a "foreach" and somehow start formatting the...
23
2927
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 method. QUOTE ENDS HERE I have never heard anyone else say that it is a problem for a function
5
8635
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
8427
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
8330
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
8850
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...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
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
5649
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
4175
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...

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.