Click here to Skip to main content
15,895,192 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my app, the loading data from Database takes a while (e.g. > 10 seconds). Therefore, I created a splash screen page. In this aspx HTML body, there is a piece of JavaScript code to display the messages; while in the code-behind Page_Load(), I put the code for loading the data. Ideally, a thread is to display the splash screen messages, and another thread is to load the data. I am not sure what I did is correct. Thanks for your opinion.
Posted
Updated 13-Aug-15 4:15am
v2
Comments
F-ES Sitecore 13-Aug-15 10:27am    
The browser only gets the html after the page has rendered, ie after all your asp.net code is done. asp.net doesn't support threads in the way you're trying to use them. google "asp.net show message while page loads" for some techniques that might work for you. Normally you need to show a static page and have that page redirect to your page that takes a while to load so the user is left looking at the static page until the longer page is done.
s yu 13-Aug-15 11:50am    
Thanks. Will do the search.

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