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

Waiting untill the Web Form loads,while loading showing something else..

Hi,

What I want to know is when a user clicks on a button I send him to another
page by using the Response.Redirect("") method. But the page that the user
is being sent to has to generate a picture so it takes time.. I want to show
a loading messeage there until the Newpage loads.. Anyone got any ideas ?

Thnks
Coskun
Nov 15 '05 #1
3 2296
Coskun,

What I would do is redirect the user to a different page which indicates
that a the processing is occuring. This page would refresh itself every few
seconds or so.

Once you have that, the page that refreshes would check a session
variable to see if the content is ready. If it is, then it redirects to the
page with the content.

Before you redirect to the original progress page, you would kick off
the processing in another thread, and then at the end of that thread, you
would set the variable in the session that is checked on the progress page
that refreshes itself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Coskun Cavusoglu" <co*****@exceedinc.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
Hi,

What I want to know is when a user clicks on a button I send him to another page by using the Response.Redirect("") method. But the page that the user
is being sent to has to generate a picture so it takes time.. I want to show a loading messeage there until the Newpage loads.. Anyone got any ideas ?

Thnks
Coskun

Nov 15 '05 #2
In addition to nick's suggestion, you might also be able to use
Response.Write and Response.Flush to send out some HTML (a progress bar or
whatever) and have it on the same page.
-mike
MVP

"Coskun Cavusoglu" <co*****@exceedinc.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
Hi,

What I want to know is when a user clicks on a button I send him to another page by using the Response.Redirect("") method. But the page that the user
is being sent to has to generate a picture so it takes time.. I want to show a loading messeage there until the Newpage loads.. Anyone got any ideas ?

Thnks
Coskun

Nov 15 '05 #3
Hi ,

I would add another idea :)

I did this a while ago ( in ASP but the idea is the same ) basically your
page will consist of two div one with the "preload" html code and the other
with the real code itself, the latter will be nonvisible ( done with CSS )
then in the body's onload event you change the visibility of them.
now the tricky part is to push the static content to the browser ASAP this
can be done with a Response.Flush.

Now if you slow content is only an image you can do another thing, you can
set a static image instead of the dinamic image, then on the OnLoad handler
you can create a Image object and set the src to a page that generate the
real image. when the image is loaded you just assign this new image to the
static image and voila :)

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Coskun Cavusoglu" <co*****@exceedinc.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
Hi,

What I want to know is when a user clicks on a button I send him to another page by using the Response.Redirect("") method. But the page that the user
is being sent to has to generate a picture so it takes time.. I want to show a loading messeage there until the Newpage loads.. Anyone got any ideas ?

Thnks
Coskun

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: 'bonehead | last post by:
Greetings, I'm still something of a newbie to html/php/mysql. I have a php/html form with several fields of type "input". If the user enters improper data in a particular field and clicks the...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
4
by: Andreas Müller | last post by:
Hi all, I need to wait for the user to click the mouse: // some code before WaitForMouseClick();// Wait until the user clicks the mouse // go on doing something Under Win32 using C++, you...
5
by: jensen bredal | last post by:
Hello, I attended a seminar with scott gu. Microsoft asp.net lead guru, and he mentioned some advanced javascript that let you display an animation while your page is waiting for response from...
3
by: Holmes | last post by:
Hello Ran into a bit of a problem here and have now exhausted my resources to getting this working What I am trying to do is load and show a simple vb form with a listbox in it Dim...
3
by: PAPutzback | last post by:
I have a form that when it loads it fires off a second thread to load a datatable. This datatable contains a list of names and ids that the user may want to add to their criteria. So I have a...
11
by: Alex | last post by:
Hello all, I have a main form(say "form1") .i want to display another form(say "form2") on occuring of an event (say a button click) and want to hide it after some time so that it will again...
5
by: BD | last post by:
I am coding with C# in Visual Studio 2005 for a database application residing on remote MS SQL Server 2005. What I want to do is open the same form but from 2 different places and only one...
9
by: RvGrah | last post by:
I'm completely new to using background threading, though I have downloaded and run through several samples and understood how they worked. My question is: I have an app whose primary form...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.