Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The asp.net page is full with dynamic control; lots of drop-down controls are there and for each selected index change the other controls are changed;
also there are checkbox which enables some other controls;
and also some controls are directly bind with database ie values are directly coming from DB;
and for this reason i think the page is taken a huge time to load and also take time when each control are fired individually.

Can anyone please suggest me some effective way to reduce the page loading time as well as event handling quickly.
here is the page link: Booking[^]

Thanks in advance.
Posted
Updated 14-Sep-12 5:47am
v2

You can go like this...

first of all you need to replace UN-wanted server control to light weight html controls..

1) like if you need only to display the text in your grid or any other place at that place if you use <label></label> or "span" so it will reduce the size of view state.

2) you need not to place dropdown at the item template of any grid, only place on edit template of your grid, so the page will have only needed dropdown data so it will automatically reduce the page size as well as view state size also.

3) And also one more thing instead of directly binding to database, use code behind data binding so it will easy to handle data biding, means in some case if you want to bind any control on the basis of other controls value.

4) you can also use session objects to store your data, so it will use later to produce dropdown or any text box to bind data to it, so it will reduce your database hit.

5) also you need to change your looping structure, so it will make performance faster.

like this you can reduce your page size as well as view state data also.
 
Share this answer
 
v3
Comments
Nilesh Patil Kolhapur 5-May-12 0:36am    
I Agree with u Tejas
Tejas Vaishnav 17-Sep-12 3:00am    
Thanks
Hi,

Here are some tips,

1) Combine Javascript files in single one.
2) compress javascript and css files.
3) Try to create Div based User interface. (try to avoid table based structure)
4) If you are using database to store control information then use StoredProcedure to get the information.
5) Use Page/Control level caching.
6) Reduce size of the image as much as possible.(Actually you should avoid use of images as much as possible.)
7) Simplify your UserInterface by dividing in Popup or in some other panel.
8) Use Update panel so user will not feel postback.

Additinally,(most important...!!!)
9) Use JSon to get the value that you need, do not post back the whole page.

Hope this information will help you,
 
Share this answer
 
v2
Hi,
If you are storing your data in viewstates then avoid using that. Prevent your page for unnecessary database hits and try reducing your loops these all the things makes page slow. Instead of hitting the database again and again use session object to bind the dropdown lists.

Following all the instructions may help you.

-AK
 
Share this answer
 
hi,
always open database connections only when needed,don't open them at load time.

rest use above given tricks..happy coding :) :) :)
 
Share this answer
 
Adding to that, If you are not using sessions in your page just disable the session for that particular page!
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900