Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splash screen in ASP.NET 1

Status
Not open for further replies.

TipGiver

Programmer
Joined
Sep 1, 2005
Messages
1,863
Is there a chance of having a 'splash'.. page shown while the main page (default.aspx) is fully loaded? The splash will have some welcome words and a small gif animation.

Tnx!
 
You could try to pop up a window with your message and gif on the page load.

Just a thought..



Jim
 
Hi,
I was thinking like windows applications; the splash is shown (the main form load event is triggered) and closes when all component on the main form have been initialised.
 
since it wont be a windows app you really can't have a splash screen. what you could do is, create a page with whatever you want and a message saying "loading componets...please wait" all the animation you want.

then,
put this in your html of that page

<meta http-equiv="refresh" content="4;URL=./MainPage.aspx">

this will redirect them after your splash page loads.




 
Hi and thanks for your reply. I will try it and let you know. The number 4, what does it present?
 
That means it will redirect to the page "MainPage.aspx" after 4 seconds.
 
Yes but the MainPage's Load PreInit etc events won't be triggeredin this 4 secs time, untill the redirection. Right?
 
That is correct. I don't belive using that will give you the "splash screen" effect you want.
 
I can change the question a little. Is it possible when i request the page, not to be shown till the time everything is initialized?
 
I dont see how you will be able to make this work. you will never know how long it will take for your page to int. there are lots of things to consider. such as network traffic, isp, or what if the client is on dialup.

if you have ddl's or dg etc. you will have to check if they get populated before showing your page.

 
You can nearly make a splash screen with a combination of a gif, CSS and some timely Response.Flush calls. It's not really worth the effort though - I'd be tempted to make an intermediate "loading" page like has already been suggested.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Hello,

what do you mean by "intermediate "loading" page" ?

Thanks
 
I mean a generic page that displays a loading message and then forwards the user onto the correct page.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
But when the generic page does the redirection, the correct page will have to perform the preinit and load events. So it wont act like a splash screen (like windows apps)
 
Yes, but the "loading" page will still be visible whilst these actions are carried out. Try it and see...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top