我可以在页面后面的代码上写一个javascript代码吗 [英] Could I write a javascript code on code behind page

查看:65
本文介绍了我可以在页面后面的代码上写一个javascript代码吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在页面

推荐答案

后面的代码中编写javascript代码.您可以在字符串变量中创建JavaScript代码,但需要将其发送到浏览器才能执行.您可以使用ClientScriptManager进行此操作.

http://msdn.microsoft.com/en-us/library/system. web.ui.clientscriptmanager.aspx [ ^ ]
You can write javascript in codebehind. You can create javascript code in a string variable but it needs sending to the browser so it can be executed. You can do this using a ClientScriptManager.

http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.aspx[^]


这篇关于我可以在页面后面的代码上写一个javascript代码吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆