ASP.NET Web Application Message Box

2019-01-08 21:50发布

In an asp.net windows forms application, in the C# code behind you can use:

MessageBox.Show("Here is my message");

Is there any equivalent in a asp.net web application? Can I call something from the C# code behind that will display a message box to the user?

Example usage of this: I have a button that loads a file in the code behind. When the file is loaded or if there is an error I would like to popup a message to the user stating the result.

Any ideas on this?

13条回答
霸刀☆藐视天下
2楼-- · 2019-01-08 22:28

There are several options to create a client-side messagebox in ASP.NET - see here, here and here for example...

查看更多
登录 后发表回答