Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In asp.net 4.0 when the download completes i need to show a alert message to user.Whether its possible in asp.net.
Posted

C#
ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('File Uploaded Succesfully..!!');", true);
 
Share this answer
 
v2
Comments
Arul5 4-Mar-14 8:49am    
i tried this one also. but alert is not showing..
Arul5 4-Mar-14 9:03am    
Normally its working while download time alert is not showing.
JB0301 11-Mar-14 4:13am    
This should be working fine.
VB
Hello,
      Try to write that message in finally block.....


finally
{
     // message
}
 
Share this answer
 
Comments
Arul5 4-Mar-14 8:17am    
I give in finally block also message is not showing
jing567 4-Mar-14 8:20am    
Are you using HTTP response to download the file???
Arul5 4-Mar-14 8:48am    
yes
Pranav-BiTwiser 24-Apr-14 9:00am    
have u got any solution??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900