Passing arguments to JavaScript function from code-behind

前端 未结 9 2057
孤街浪徒
孤街浪徒 2020-12-03 17:54

I would like to call a javascript function from an aspx control. For instance, suppose I had:


    

        
9条回答
  •  孤街浪徒
    2020-12-03 18:30

    Response.Write("test(" + x + "," + y + ");");
    

    breaking up the script keyword because VStudio / asp.net compiler doesn't like it

提交回复
热议问题