How can i implement [ Please wait ....!! your request is processing...] page .................

M

~Maheshkumar.R

hi groups,
I have developed one FTP application in ASP.NET, When i upload a file, i
want to show something on screen like " Please wait ...! Your file is being
uploading........"
As soon the file gets uploaded, i have to transfer control to final page
saying UPLOADED Successfully.
How can i achieve this ..
 
G

Guest

You could use the Response.Flush method. This sends the currently buffered
output to the client.

Then when all ftp actions are done, you could redirect to another page, or
send a javascript error to change the message allready displayed.

Kind regards,

Michel
 
M

~Maheshkumar.R

Thnkz Michel,
Well, you are right when we think from asp. But i want it in ASP.NET
way.....
MaheS~
 
S

shaun duke

I use the RegisterOnSubmitStatement in Page_Load ....

<script runat="server">
Sub Page_Load(byVal obj As Object, byVal e As EventArgs)

RegisterOnSubmitStatement("submit","wait_handler();")
.....

End Sub
</script>

<head>
<script language="Javascript">
<!--
function wait_handler(){
timerID=setTimeout("waiting_handler()",250);
}
function waiting_handler(){
var xID=document.getElementById('showprocessDiv')
xID.style.display = 'block';
xID.style.top = (document.body.offsetHeight/2)+document.body.scrollTop
}

//-->

</script>
</head>
<body>
<form name="myForm">
<div id="showprocessDiv" style="display:none;position:absolute;
width:100%; height:15px; z-index:1; filter: Alpha(Opacity=95,
FinishOpacity=95, Style=0, StartX=75, StartY=0, FinishX=100,
FinishY=100">
<div align="center"><img
src="/application/resources/images/wait.gif"></div>
</div>
</form>
.....
server side elements to fire postback
</body>

Hope this helps.

Shaun
 
K

Kareem Mostafa

I can't think of anything exact right now but the two keywords you
should be looking for are Asynchrounus calls...and another method
called remote scripting which will be fully implemented in the next
version ASP .NET but there's a way to do it with what we have now

Kareem Mostafa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top