473,435 Members | 1,628 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,435 software developers and data experts.

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.datasource = myinfo.GetMe( userid); repeater.databind()
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 1061
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**************@TK2MSFTNGP14.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.datasource = myinfo.GetMe( userid); repeater.databind()
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**************@TK2MSFTNGP14.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.datasource = myinfo.GetMe( userid); repeater.databind()
| 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
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...
7
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...
9
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...
1
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...
5
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...
0
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...
1
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...
1
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...
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
1
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...
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,...
0
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...
0
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...

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.