Page.ClientScript.RegisterStartupScript(this.GetType(),“”,"这里面填写你的js方法",true);如:ClientScript.RegisterStartupScript(this.GetType(),“”,"alert('这是后台调用js')",true);其中参数中的true表示自己在你的方法两端加"<script>"标签,如果设置为false则要自己加上<script>标签.
顶一下

(0)
0%
踩一下

(0)
0%
- 相关评论
- 我要评论
-