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

  • Thread starter Thread starter ~Maheshkumar.R
  • Start date Start date
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 ..
 
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
 
Thnkz Michel,
Well, you are right when we think from asp. But i want it in ASP.NET
way.....
MaheS~
 
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
 
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
 
Back
Top