Click here to Skip to main content
15,996,279 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Am developing a website. I want to use login page for that. I used following code for show wrong user name or password

XML
string sReturn="Welcome";
        Response.Write("<script language='javascript'> alert('" + sReturn + "');</script>");


The problem in this is that it loading while showing alert. I want it without loading...
Posted

1 solution

Hi,

Try this if could help...

C#
Response.Write("<script language='javascript'>{alert('Welcome');window.location.href('MainMenu.aspx');}</script>");


Please do not forget to vote if could help so that others may consider as an answer...

Regars,
 
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