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

I've an application which uses DialogResult for validation. Its working properly in my system when executed.

But when it is hosted in Server(Local IIS), the functionality of DialogResult is working correctly but DialogResult is not appearing as it was appeared in my local system.

Is there any way to display it when application is hosted in server(Local IIS)??

If so, in what way? any alter native solution.

plz urgent help me.

Here is my code:

C#
DialogResult result = MessageBox.Show("Are you sure you want to overwrite the District details?", "ErrorMessage", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1,MessageBoxOptions.DefaultDesktopOnly);

                   if (result == DialogResult.Yes)
                   {// Code 

                   }
else
{
//code

}


Thanks,
Ramarao
Posted
Updated 7-Aug-12 23:59pm
v4
Comments
bbirajdar 8-Aug-12 6:16am    
How in the world are you using the Winforms Dialog in asp.net ?
ZurdoDev 8-Aug-12 10:02am    
I'm confused. MessageBox.Show if for Windows Forms apps and you said you are doing ASP.Net. In ASP.Net you use javascript's alert() function or confirm() function or you build your own dialog or use a jquery one, not windows MessageBox.
Sandeep Mewara 8-Aug-12 11:54am    
For sure code snippet does not says ASP.NET! :doh:
ZurdoDev 8-Aug-12 12:03pm    
It does say ASP.Net and even mentions IIS.
Sandeep Mewara 8-Aug-12 12:25pm    
Yeah (was in agreement with you!). OP confused? :)


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