MessageBox in C#

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2009
Posts: 12
Reputation: frank@furnes.nu is an unknown quantity at this point 
Solved Threads: 1
frank@furnes.nu frank@furnes.nu is offline Offline
Newbie Poster

Re: MessageBox in C#

 
0
  #11
Feb 19th, 2009
So this is a Web application in c#.net
Well then you cannot use the Messagebox. This function / method
is used within an windows application
As mention earlier , you can solve this by using Javascript or ms.Ajax (Popup /modalpopup)
/Regards
Frank
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 30
Reputation: sonakrish is an unknown quantity at this point 
Solved Threads: 1
sonakrish sonakrish is offline Offline
Light Poster

Re: MessageBox in C#

 
0
  #12
Feb 19th, 2009
Hmmm Fine....
In C# we have to use script for messageBox.Okay let me do.
Tnx...
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 104
Reputation: Aneesh_Argent is an unknown quantity at this point 
Solved Threads: 18
Aneesh_Argent Aneesh_Argent is offline Offline
Junior Poster

Re: MessageBox in C#

 
0
  #13
Feb 19th, 2009
Select the function name "MsgBox", right click and from the menu select Go to Defenition and post the fuction defenition here. I suppose its a user defined function
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 12
Reputation: frank@furnes.nu is an unknown quantity at this point 
Solved Threads: 1
frank@furnes.nu frank@furnes.nu is offline Offline
Newbie Poster

Re: MessageBox in C#

 
0
  #14
Feb 19th, 2009
Hi again

I yust wonder who this could be done..
Do as i told over.. in button click method
  1. System.Windows.Forms.MessageBox.Show("This is a message");

then select: project -> add reference
Then scroll down to System.Windows.Forms and select this.
Press ok
/Regards
Frank
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 5
Reputation: Jamie Shedley is an unknown quantity at this point 
Solved Threads: 2
Jamie Shedley's Avatar
Jamie Shedley Jamie Shedley is offline Offline
Newbie Poster

Re: MessageBox in C#

 
0
  #15
Feb 19th, 2009
Hi,

I dont think what Frank is saying will work when deployed (But i will gladly be proven wrong as i would like to be able to use the messagebox functionality in an asp.net app). The messagebox will throw an exception because you can not show a modal form on a clients machine when it is created server side. The only real option avaliable is to Use javascript or Ajax as someone has mentioned earlier in this thread.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 12
Reputation: frank@furnes.nu is an unknown quantity at this point 
Solved Threads: 1
frank@furnes.nu frank@furnes.nu is offline Offline
Newbie Poster

Re: MessageBox in C#

 
0
  #16
Feb 19th, 2009
I must say i have never tried this before
So Yes, the best right way is by javascript..
/Regards
Frank
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC