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

How to avoid the website url in alertbox.

am developing web application in asp.net with c#. that project deploy in hosting server. after hosting the url are assign to Iframe src="http://23.24.25:35/Registration.aspx".
in Registration.aspx page having alert box code using c#.

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "alert", "alert('Registration has been completed successfully.');window.location='Registration.aspx';", true);

my issue is alerbox messages show likes in Iframe
" https://23.24.25:35/ says"
Registration has been completed successfully.

how to hide the https://23.24.25:35/ url in alert box

please help me..

thanks and regards
Posted

1 solution

As far as I'm aware, this is a security feature of the browser which cannot be modified.

You're better off using one of the many customizable dialog/alert box plug-ins out there, such as http://stefangabos.ro/jquery/zebra-dialog/[^].
 
Share this answer
 

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