Click here to Skip to main content
16,016,925 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


we are getting page loading issue please anybody help us out

While loading the page it is displaying half page(vertical) for few seconds then it is showing fully so please anybody suggests us where is the problem. The page loading showing like left to right loading



Regards
Sangamesh Arali
Posted
Updated 4-Oct-12 3:27am
v2

It seems, you are doing some heavy operation (data calling probably) in page_load.
So, until the page_load event completes, there will be a kind of partial display and the page is fully loaded and rendered after the page_load event completes and the html renders.

There are several options but 2 options most widely used to handle this
1. See, how you can make the page load light. Study the as.net page life cycle and see, how you can make the page load method light.
2, Use Ajax to load the data and display in the page.

I will prefer the 2nd one as this is the most convenient and robust as well.
So, the page loads instantly, no database call operation in page_load. Get the data using ajax in client side and display the data in the page.

Hope this gives you some idea to start with.

cheers
 
Share this answer
 
v2
Comments
sangamesh arali 4-Oct-12 10:26am    
Thank you sandip. I am doing heavy operation in page load event actually i am creating controls dynamically and also used viewstate so i try use ajax

Thank you
please check if u r loading many images. If yes, then i would suggest you u minimize them or replce them with css color property
 
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