Calling Javascript function from code behind ASP.NET

后端 未结 3 887
失恋的感觉
失恋的感觉 2021-01-27 04:31

I\'m attempting to call a javascript method in its own file from code behind on a button click.

aspx file

protected void Next_Click(object sender, EventA         


        
3条回答
  •  情歌与酒
    2021-01-27 04:46

    see http://msdn.microsoft.com/de-de/library/z9h4dk8y.aspx

    try this

    string jquery = "drawImage();"
     ClientScript.RegisterStartupScript(typeof(Page), "a key", 
         ""
                   );
    

提交回复
热议问题