Home > Forum > Javascript > how to call a javascript function from content page

how to call a javascript function from content page

by Thamil   on Oct 09, 2014   Category: Javascript  |  Views: 836    |  Points: 5   |  Gold 
  Reply

how to call a javascript function from ajax enabled content page

Question posted on behalf of Shradha Kale.

Bookmark and Share:
 
  User Reply  | Ask a question  |   Reply 
  Re :how to call a javascript function from content page   
by Thamil
on Oct 9 2014 1:51AM
Points : 10
Gold 
Hi Shradha Kale,

Find the below sample code to call the javascript method in code behind button click event.

protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "JSFunction", "alert('Hello World');", true);
}

Recent Post

Latest Posts