在控件中,如何将js文件注册到页面尾部,前
如题,
/*********** 例如 有页面 1.aspx *************/
<html>
<body>
<uc:myControl ID="myControl1" runat="server" />
------------
-----------
------------
A位置
</body>
</html>
/*****************************************/
如何在ascx控件uc:myControl 中写入类似下面的注册js文件的代码,使myjs.js能出现在页面的 "A位置“?
string myScript = "myjs.js";
Page.ClientScript.RegisterClientScriptInclude(this.GetType(),"myKey", myScript);