Click here to Skip to main content
15,906,313 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I Want to show an error message to user in a different manner (Except by displaying in labels)

pls suggest me..


Thanks in Advance..
Posted

Depends on your environment.
I assume from the ASP.NET tag that you are talking about a web site, so consider using a Javascript Alert:
C#
Response.Write(@"<script language='javascript'>alert('Your Error Message');</script>");
 
Share this answer
 
Comments
ridoy 9-May-13 13:20pm    
possible good solution,+5
XML
Response.Write("<script type='text/javascript'>");
Response.Write("alert('Hi Seshu.');");
Response.Write("</script>");
 
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