create pop-up alert box using C#

J

joe

I need to create a pop-up alert from a .aspx.cs page. I
tried by using javascript b/c I know how to do it there
but it does not work this way.

Response.Write ("<script language=javascript>alert
('message');</script>");

How can I do this using C#?

Thanks
 
M

Marina

This is exactly how you would do it. This, or calling
RegisterClientScriptBlock method, and registering your script that way.
 

Ask a Question

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.

Ask a Question

Top