473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Showing a loading screen

Hi,
I have can upload a file to the server from my aspx page using the
uploadfile control. When the user click on submit I'd like to show an
animated gif while the file is being uploaded. But how can I know when
the file was uploaded and I can stop showing the animation ?

The way I've done it:
I have a multiview control.
view1 -> upload interface
view2 -> animation while uploading
view3 -> feedback to the user saying the upload was successfull.

First probem: I can switch to view2 when the user clicked submit but
then I need to upload the file. I've tried in the activeviewchanged
event but then the view is only displayed once the file has been
uploaded...

Second problem: How can I know when to switch from view2 to view3....

Can you help? I'm struggling with this.:(

thank you

Jun 3 '06 #1
5 2381
in genreral this will be difficult to do without an active/x control. a post
inculding a file, is treated by the browser as a page request. it will not
display a response until the upload finishes. you can start an animation
(make an invisible gif visibale), but genrally the browser shuts down the
animation thread while posting. you can have better luck with frames, by
posting to a hidden frame.

-- bruce (sqlwork.com)

"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi,
I have can upload a file to the server from my aspx page using the
uploadfile control. When the user click on submit I'd like to show an
animated gif while the file is being uploaded. But how can I know when
the file was uploaded and I can stop showing the animation ?

The way I've done it:
I have a multiview control.
view1 -> upload interface
view2 -> animation while uploading
view3 -> feedback to the user saying the upload was successfull.

First probem: I can switch to view2 when the user clicked submit but
then I need to upload the file. I've tried in the activeviewchanged
event but then the view is only displayed once the file has been
uploaded...

Second problem: How can I know when to switch from view2 to view3....

Can you help? I'm struggling with this.:(

thank you

Jun 3 '06 #2
Thanks for replying. This is not very encouraging thought :(
I hope I'm going to find a better solution than hidden frames !
bruce barker (sqlwork.com) a écrit :
in genreral this will be difficult to do without an active/x control. a post
inculding a file, is treated by the browser as a page request. it will not
display a response until the upload finishes. you can start an animation
(make an invisible gif visibale), but genrally the browser shuts down the
animation thread while posting. you can have better luck with frames, by
posting to a hidden frame.

-- bruce (sqlwork.com)

"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi,
I have can upload a file to the server from my aspx page using the
uploadfile control. When the user click on submit I'd like to show an
animated gif while the file is being uploaded. But how can I know when
the file was uploaded and I can stop showing the animation ?

The way I've done it:
I have a multiview control.
view1 -> upload interface
view2 -> animation while uploading
view3 -> feedback to the user saying the upload was successfull.

First probem: I can switch to view2 when the user clicked submit but
then I need to upload the file. I've tried in the activeviewchanged
event but then the view is only displayed once the file has been
uploaded...

Second problem: How can I know when to switch from view2 to view3....

Can you help? I'm struggling with this.:(

thank you


Jun 3 '06 #3
You should be able to achieve what you want using threading. Check out
http://www.ftponline.com/vsm/2002_11...tures/chester/


"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Thanks for replying. This is not very encouraging thought :(
I hope I'm going to find a better solution than hidden frames !
bruce barker (sqlwork.com) a écrit :
in genreral this will be difficult to do without an active/x control. a post inculding a file, is treated by the browser as a page request. it will not
display a response until the upload finishes. you can start an animation
(make an invisible gif visibale), but genrally the browser shuts down the
animation thread while posting. you can have better luck with frames, by
posting to a hidden frame.

-- bruce (sqlwork.com)

"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi,
I have can upload a file to the server from my aspx page using the
uploadfile control. When the user click on submit I'd like to show an
animated gif while the file is being uploaded. But how can I know when
the file was uploaded and I can stop showing the animation ?

The way I've done it:
I have a multiview control.
view1 -> upload interface
view2 -> animation while uploading
view3 -> feedback to the user saying the upload was successfull.

First probem: I can switch to view2 when the user clicked submit but
then I need to upload the file. I've tried in the activeviewchanged
event but then the view is only displayed once the file has been
uploaded...

Second problem: How can I know when to switch from view2 to view3....

Can you help? I'm struggling with this.:(

thank you

Jun 4 '06 #4
Hi Shawn,
Thanks for the link, it is a very interesting approach.
For now I've solved my problem using this:
http://www.codeproject.com/aspnet/PleaseWaitButton.asp
as I don't care about giving an exact feedback on the upload
progression. But anyway I'll keep the multithreading idea in mind for
other stuff!
Thanks.

Shawn a écrit :
You should be able to achieve what you want using threading. Check out
http://www.ftponline.com/vsm/2002_11...tures/chester/


"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Thanks for replying. This is not very encouraging thought :(
I hope I'm going to find a better solution than hidden frames !
bruce barker (sqlwork.com) a écrit :
in genreral this will be difficult to do without an active/x control. a

post
inculding a file, is treated by the browser as a page request. it will not
display a response until the upload finishes. you can start an animation
(make an invisible gif visibale), but genrally the browser shuts down the
animation thread while posting. you can have better luck with frames, by
posting to a hidden frame.

-- bruce (sqlwork.com)

"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi,
I have can upload a file to the server from my aspx page using the
uploadfile control. When the user click on submit I'd like to show an
animated gif while the file is being uploaded. But how can I know when
the file was uploaded and I can stop showing the animation ?

The way I've done it:
I have a multiview control.
view1 -> upload interface
view2 -> animation while uploading
view3 -> feedback to the user saying the upload was successfull.

First probem: I can switch to view2 when the user clicked submit but
then I need to upload the file. I've tried in the activeviewchanged
event but then the view is only displayed once the file has been
uploaded...

Second problem: How can I know when to switch from view2 to view3....

Can you help? I'm struggling with this.:(

thank you


Jun 4 '06 #5
try using atlas.

Ciaran

"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi,
I have can upload a file to the server from my aspx page using the
uploadfile control. When the user click on submit I'd like to show an
animated gif while the file is being uploaded. But how can I know when
the file was uploaded and I can stop showing the animation ?

The way I've done it:
I have a multiview control.
view1 -> upload interface
view2 -> animation while uploading
view3 -> feedback to the user saying the upload was successfull.

First probem: I can switch to view2 when the user clicked submit but
then I need to upload the file. I've tried in the activeviewchanged
event but then the view is only displayed once the file has been
uploaded...

Second problem: How can I know when to switch from view2 to view3....

Can you help? I'm struggling with this.:(

thank you

Jun 6 '06 #6

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

Similar topics

1
by: Bill K | last post by:
I am developing a winforms project in vb.net. I have several forms that have a number of controls, grids, etc. When I load these as MDI child forms, they load slowly AND they paint/repaint on the...
17
by: Aguilar, James | last post by:
My previous example used the concept of a Shape class heirarchy, so I will continue with that. Suppose I have something like fifty different shapes, and I am trying to instantiate one of them. ...
8
by: Terry | last post by:
I am loading a javascript function from my asp.net app. This function loads a string passed to it in a new window. I register the function to activate on click of an asp linkbutton. Now when...
1
by: alex | last post by:
Hi, I am loading quite a large list into a datagrid and while doing so the form freezes... and for 10-20 seconds i have quite a messy screen. e.g. the file chooser half deleted and still half...
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...
2
by: Geraldine Hobley | last post by:
Hello, In my application I am trying to load up some forms, however the loading of the forms is causing a lot of flickering. Are there any commands that can stop showing the repainting of the forms...
3
by: Mike Dee | last post by:
Hi, I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE. In...
5
by: toffee | last post by:
Hi all, I've seen a really cool effect which i would like to use on an intranet site. Am referring to the 'LOADING..' animation you see when switching pages. I've seen it somewhere on a website...
0
by: vinayakk | last post by:
Hello webies, I have a problem with loading html pages in frameset. I am using location.href to load html pages one by one upon the user request and these pages in turn load flash files. When one...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.