You can't. How could you? It would mean a server side messagebox, not a
client side one. It would also mean that the client would have to have the
..NET framework.
You can use embedded windows forms controls in asp.net pages, but now you
are talking about major security configuration issues and requiring clients
to install the .net framework all so they could have a different
messagebox...
I'm not familiar with a JavaScript alert box, but I see how this question
seems stupid given what has been pointed out in the replies. I'm (obviously)
a novice at this .NET stuff and struggle putting together what I experience
versus what I can deliver via Visual Studio.
You can execute a line of code like this when you want a message box to be
displayed.
(This writes out the necessary client side javascript to your HTML page to
make the alert pop up as soon as the page is sent to their browser.)
RegisterStartupScript("startupScript", "<script
language=JavaScript>alert('This is my message.');</script>");
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.