I am trying to add a javascript in to asp.net code behind page in c#.
I found some answers from this site and I have implemented that but still I am not able to call a function from ScriptManager.RegisterClientScriptBlock().
Please check my code;
protected void Page_Load(object sender, EventArgs e)
{
string myScriptValue = "function callMe() {alert('You pressed Me!');}";
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScriptName", myScriptValue, true);
}
Please help me how to get the callMe() funtion in Page_Load().