Assuming of course that your "prompting" "alert box" is supposed to go
to the client, this is a client call. The result of your server
processing will generate an HTML page where you can put Javascript for
an alert message.
You can use Page.RegisterStartupScript to add a JavaScript to the page that
alerts the user. I made a static method out of this, as it is something done
fairly frequently. The method takes a string as an argument, and constructs
a JavaScript alert to add to the page at Startup.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
I need to prompt out an alert box when I finished some server programming in
ASP.NET. But I don't know how. Please advise me the way.
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.