• 0

[Visual C# .NET] Message Box in a Web Application


Question

Hi,

I would like to know if there is a way to have message boxes in a Web Application in C# .NET 2003.

It is to make the user confirm his action, or refuting it (like: OK, NO and Cancel).

(I've seen the messagebox library of windows applications but it just don't want to work on a web application.)

Thanks,

Oren.

2 answers to this question

Recommended Posts

  • 0

It's not going to work in a web application. Not the way you mean, anyway. When you call MessageBox.Show inside a web application, the MessageBox will pop up (if your app has UI Permissions) on the server, not the client.

If you want messageboxes in a web application, you could use javascript (although that's rather limited), or you could use some sort of DHTML message box, such as iBox

  • 0
  OrenTuil said:

Hi,

I would like to know if there is a way to have message boxes in a Web Application in C# .NET 2003.

It is to make the user confirm his action, or refuting it (like: OK, NO and Cancel).

(I've seen the messagebox library of windows applications but it just don't want to work on a web application.)

Thanks,

Oren.

Look into Javascript, specifically, window object of the HTML DOM. showModalDialog or showModelessDialog. There are other techniques for custom dialogs, but anything in the Windows.Forms realm isn't going to work from server to client through a browser.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.