473,837 Members | 1,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page loads slowly

hoz
Hi ,
I have a problem that i cant understand . Let me explain a bit : i am trying
to develop an e-commerce website with using mssql and c# .
i use three tier app development.
1 - Sql procedures : to retrieve informaion from db (mssql)
2 - Classes that encaplusates db transactions ( calling procedures)
3 - user side .
lets say if user clicks get my info
UserClass myinfo = new UserClass();
repeater.dataso urce = myinfo.GetMe( userid); repeater.databi nd()
but it takes noticable time. I create indexes for db tables , used
procedures , used class .
on local machine , it is ok but for internet , it seems so slow . What can
i do ?
thanks
Nov 19 '05 #1
2 1083
First, make sure that the database is returning data quickly. Run the
stored procedures independent of the website and see how quick it takes. If
the site runes normal on your local machine, it probably is not an issues on
the internet.

Next, take a look at the amount of data in your page. If it takes a long
time to load, it might be that you are sending too much information to the
browser. If you need to display lots of records, consider some form of
paging. Also, you can usually reduce the amount of data by removing
unnecessary whitespace from your ASPX file. For instance, although tabs are
beneficial for reading the HTML structure, they are not necessary for the
browser. For each whitespace, it removes that many bytes from the output
(which is a lot if you have hundreds or thousands of records being
displayed).
"hoz" <as*@me.com> wrote in message
news:e8******** ******@TK2MSFTN GP14.phx.gbl...
Hi ,
I have a problem that i cant understand . Let me explain a bit : i am trying to develop an e-commerce website with using mssql and c# .
i use three tier app development.
1 - Sql procedures : to retrieve informaion from db (mssql)
2 - Classes that encaplusates db transactions ( calling procedures)
3 - user side .
lets say if user clicks get my info
UserClass myinfo = new UserClass();
repeater.dataso urce = myinfo.GetMe( userid); repeater.databi nd()
but it takes noticable time. I create indexes for db tables , used
procedures , used class .
on local machine , it is ok but for internet , it seems so slow . What can i do ?
thanks

Nov 19 '05 #2
check the size of your viewstate (or turn if off for your page). you payload
is probably too great for an internet site

-- bruce (sqlwork.com)

"hoz" <as*@me.com> wrote in message
news:e8******** ******@TK2MSFTN GP14.phx.gbl...
| Hi ,
| I have a problem that i cant understand . Let me explain a bit : i am
trying
| to develop an e-commerce website with using mssql and c# .
| i use three tier app development.
| 1 - Sql procedures : to retrieve informaion from db (mssql)
| 2 - Classes that encaplusates db transactions ( calling procedures)
| 3 - user side .
| lets say if user clicks get my info
| UserClass myinfo = new UserClass();
| repeater.dataso urce = myinfo.GetMe( userid); repeater.databi nd()
| but it takes noticable time. I create indexes for db tables , used
| procedures , used class .
| on local machine , it is ok but for internet , it seems so slow . What
can
| i do ?
| thanks
|
|
Nov 19 '05 #3

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

Similar topics

1
1856
by: CST | last post by:
Hi All, I have a "Digital Dashboard" that basically has 4 IFrame sections. The page flows in the following order: Messages, Stocks, Weather, User Links. Please note that this order needs to stay that way. Everything but the Stocks section is pulled from our dB. I am using the server control InetCtls.Inet to obtain the stock data from Yahoo Finance. The question I have is can I load the page using the dB driven sources
7
1867
by: lawrence | last post by:
This page renders slowly on both IE and Netscape - everything downloads before anything appears on screen. It is the behavior you'd expect if the whole thing was wrapped in a table, yet there is no table. What other sorts of problems normally cause this?
9
1174
by: Bruce W.1 | last post by:
When a user clicks on a button on my aspx page it launches a bunch of threads which go and do things which might take a few seconds each. Rather than waiting for all threads to complete before rendering the response, is there a way to show the current status of each thread? Ideally the status would be shown in a literal control or a textbox. It would say maybe "thread started" and on completion "thread completed", and in no particular...
1
1338
by: Chris Kerrison | last post by:
I have a Webpage that dynamically loads a series of thumbnail images from a SQL database into a placeholder. The problem I have is that the page displays before all the images have been populated and hence you can see the images slowly populating on screen. the question I have is how do you prevent a page from displaying until all the images have been downloaded completely.
5
1695
by: Samy | last post by:
Hi There, I have a stored procedure which takes 7 sec to execute. I am using a adapter and filling the dataset. Then I bind the datagrid with the datatable from the dataset. When I test the page against the test server DB, the page loads pretty fast. When I test the page against the production server DB, it loads too slowly. The tables against which I am testing are static tables both in the test DB and the production DB. I am unable to...
0
1537
by: Timo | last post by:
My (intranet) aspx page finishes loading but the progress bar continues to advance very very very slowly, i.e. a new chunk on the bar is added 10 seconds or so, and then progress bar stops about halfway and never gets any further. Is there any way to monitor activity on the web server that would give some indication as to what process is still ongoing that makes the browser (IE6) display the progress bar? The page uses a hidden IFRAME to...
1
1493
by: mark | last post by:
Hi I am trying to count the number of times a page loads. When I hit the submit button I can get the page to count once using ispostback to check . I am trying to incriment a variable everytime the page loads. It will only do it one time even if I put the variable = variable + 1 statement into the button click event. Any ideas as to how to count the number of times a page loads? Thanks
1
1459
by: 2291980 | last post by:
Hello I have create one page where on perticuler click i am calling 6 js function one after another. this all function are ajax function every thing is working fine . But issue is that it takes lots of time to display data. It takes almost 1 to 1.5 min to display data. can any body help me on that.....
0
1321
by: Abubakar | last post by:
Hi, I've been assigned to work on a asp.net page that when viewed on internet, renders very slowly and its hosted on a client machine which is a p4 3.0ghz HT, with 2 gb ram running windows server 2003. The page itself works very fast on my development machine, naturally because the ide, client, and server are on the same machine. Now what I understand from studying this page is that this page is using ajax.net toolkit. Its not a huge...
0
9852
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
10902
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
10583
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...
0
10288
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
9420
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...
0
7014
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
5863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3128
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.