944,084 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 5128
  • ASP.NET RSS
Mar 4th, 2006
0

message box

Expand Post »
hai friends,

i cannot create the message box. the syntax i used is "MessageBox" . it gives the errror that namespace system.windows is not found. i searched with System.Windows i cannot found anything there.
so plz help
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
muthu is offline Offline
22 posts
since Mar 2006
Mar 4th, 2006
0

Re: message box

msgbox?
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 5th, 2006
0

Re: message box

what messagebox? This is asp.net ... web pages.. what messagebox? message box is in windows forms projects not web pages.

Do you want to pop up a message to a user? you can use the javascript alert. Are you sure you understand the concept of asp.net? If not say so and we will try and explain it a bit
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006
Mar 19th, 2006
0

Re: message box

f1_fan is right
u can use msgbox in asp.net coz it will run on the server and not on the client side.
u can use alert fuction in the javascript, coz its client-side.
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
web_developer is offline Offline
84 posts
since Mar 2006
Mar 19th, 2006
0

Re: message box

sorry, i mean "u can't use msgbox"
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
web_developer is offline Offline
84 posts
since Mar 2006
Apr 1st, 2006
0

Re: message box

ok, i manage it. thanks for ur reply
Reputation Points: 10
Solved Threads: 0
Newbie Poster
muthu is offline Offline
22 posts
since Mar 2006
Oct 13th, 2010
0
Re: message box
System.Windows.Forms.MessageBox.Show("");
Reputation Points: 10
Solved Threads: 0
Newbie Poster
senthil31185 is offline Offline
2 posts
since Oct 2010
Oct 13th, 2010
0
Re: message box
System.Windows.Forms.MessageBox.Show("Voter is added to Voter List Sucessfully");
Reputation Points: 10
Solved Threads: 0
Newbie Poster
senthil31185 is offline Offline
2 posts
since Oct 2010
Oct 14th, 2010
0
Re: message box
There is no message box in asp.net.
You can use this one.
ASP.NET Syntax (Toggle Plain Text)
  1. Page pageCurr = HttpContext.Current.Handler as Page;
  2. if (pageCurr != null)
  3. {
  4. ScriptManager.RegisterStartupScript(pageCurr, pageCurr.GetType(), "aKey", "alert('" + "you message" + "');", true);
  5. }
Reputation Points: 10
Solved Threads: 6
Newbie Poster
kad1r is offline Offline
17 posts
since Jun 2010
Oct 14th, 2010
0
Re: message box
use this instead of msgbox

ClientScript.RegisterStartupScript(Me.GetType(), "OhNo", "alert('Your Message');", True)
Reputation Points: 10
Solved Threads: 16
Posting Whiz in Training
plusplus is offline Offline
207 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: How to move cursor position in Web Application.
Next Thread in ASP.NET Forum Timeline: slide show of images stored as binary image in database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC