hi..
pls anyone send me coding for MessageBox in default.aspx.cs
i used
messagebox.show(message); but its not working...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Dec 3, 2010, 12:01 PM
Did you read the whole thread post.
Rahul GoyalPosted Dec 2, 2010, 11:51 PM
Suthish NairPosted Dec 2, 2010, 4:50 AM
If this post helped you, then tick the checkbox above "Do you like this Answer"
Jean PaulPosted Dec 2, 2010, 3:23 AM
Suthish NairPosted Dec 2, 2010, 3:01 AM
The namespace itself saying System.Windows.Forms.
This will not work for Web applications when you hosted on server. You can test it by yourself.
Jean,
Problem resolved?
CrishPosted Dec 2, 2010, 2:11 AM
Actually ASP.NET has a class that allows use of the message box.
that class is System.Windows.Forms
if you import that into your web form or whatever, you can use this to display a message box:
MessageBox.Show("YourMessageHere","YourBoxTitleHere",MessageBoxButtons.YourChoiceOfButtonsHere,MessageBoxIcon.YourChoiceOfIconHere);
The last 3 parameters are optional, but recommended.
Hope that helps ya out.
Suthish NairPosted Nov 30, 2010, 9:28 AM
Jean PaulPosted Nov 30, 2010, 9:14 AM
For ASP.NET you can use javascript message boxes using alert()
You can refer code: http://msdn.microsoft.com/en-us/library/aa479011.aspx