1 Replies - 371 Views - Last Post: 23 July 2013 - 06:15 AM Rate Topic: -----

#1 harishkothuri  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 10-October 12

How to show alert message on popup page.

Posted 23 July 2013 - 02:07 AM

I have tried the following and not working..

string script="Thankyou";
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), Guid.NewGuid().ToString(), "alert('" + script + "'", true);



Any help ?
Is This A Good Question/Topic? 0
  • +

Replies To: How to show alert message on popup page.

#2 Curtis Rutland  Icon User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4577
  • View blog
  • Posts: 8,019
  • Joined: 08-June 10

Re: How to show alert message on popup page.

Posted 23 July 2013 - 06:15 AM

You should use RegisterStartupScript, first of all. Here's an example:

http://msdn.microsof...y/bahh2fef.aspx
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1