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


Currently I am developing a ajax enabled web application and I trying to show a message box when ever user entered a wrong value. I am using vs2005

System.Windows.Forms.MessageBox.Show("Invalid Date", "Alert Message")


my problem is some time it appears on the screen and most of times it appears at bottom taskbar.


Any help will be appreciated.


Thanks
Posted
Updated 25-Nov-10 5:19am
v2
Comments
fjdiewornncalwe 25-Nov-10 13:09pm    
By using System.Windows.Forms.MessageBox you are popping up alert messages on your web server. To show something on the client side you will need to use javascript in some way, shape or form like Sandeep's answer below suggests.

1 solution

Well, first of all why are you using 'System.Windows.Forms.MessageBox' to show message box? Why not browser 'alert' message box?

Try with normal Javascript message box or AjaxToolkit modalpopup[^]?
 
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