MessageBox in Web Forms
-
Hi I would like to know how would i display a messageBox in a web form. I know in Windows forms you would use something like MessageBox.Show("Hello"); How could i show this kind of dialog box (or equivalent)on a web form, if a user clicks a button??
Cheers :)
-
Hi I would like to know how would i display a messageBox in a web form. I know in Windows forms you would use something like MessageBox.Show("Hello"); How could i show this kind of dialog box (or equivalent)on a web form, if a user clicks a button??
Cheers :)
if you want to use message box in your web page use Jvascript for that !!!
void MessagBox(string s) { alert(s); }
and on button Click call that function!!!
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"
-
if you want to use message box in your web page use Jvascript for that !!!
void MessagBox(string s) { alert(s); }
and on button Click call that function!!!
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"
Thanks for that:) now i'd just like to know, if i had a hyperlink on my page and when the user clicked on that link a messageBox should appear. How could i acheive this?? similar procedure using client side scripts??
Cheers :)
-
Thanks for that:) now i'd just like to know, if i had a hyperlink on my page and when the user clicked on that link a messageBox should appear. How could i acheive this?? similar procedure using client side scripts??
Cheers :)
Yes, You can use on link button and call that method onclick of that link !!!
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"