Click here to Skip to main content
15,894,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get Java script alert or Message box in Asp.net. For me the requirement is 'If the caller enters invalid user name or password, I need to show the warning message in Message box' . Please assist me on this.Thanks in Advance.
Posted
Updated 21-Nov-12 3:43am
v2

Try Using Boolean values in your function.
if the login is successful return true
if not return false and alert your message.

You can call this javascript function from C# code behind on login button_click event
 
Share this answer
 
Window.alert("Error Message");
 
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