create pop-up alert box using C#

  • Thread starter Thread starter joe
  • Start date Start date
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
 
This is exactly how you would do it. This, or calling
RegisterClientScriptBlock method, and registering your script that way.
 
Back
Top