Thursday, March 29, 2012

Missing System.Windows.Forms

I want to show message box in my asp.net (VB .NET) application. I added reference from adding reference menu/options; but the Desktoponly or Defaultnotification... (i am not exactly remember) from Servicenotification error is occurs. What is this...?

Please guide me.

Thanks

Girish

The MessageBox is for Windows forms and cannot be used on a web application. You'll need to use a JavaScript dialog box (aka confirm).

HTH,
Ryan


gksharma481:

I want to show message box in my asp.net (VB .NET) application. I added reference from adding reference menu/options; but the Desktoponly or Defaultnotification... (i am not exactly remember) from Servicenotification error is occurs. What is this...?

Try something like

<input type="button" onclick="alert('This is a message box');">

HTH
Regards


Visit @. on implementating dialog box in ASP.NET application..http://www.firoz.name/2006/04/27/implementing-dialog-box-in-aspnet-based-web-application

0 comments:

Post a Comment