问题描述
this.Page.ClientScript.RegisterClientScriptInclude("LeeHom.Web.UI.Controls.MyRepeater.js",this.Page.ClientScript.GetWebResourceUrl(this.GetType(),"LeeHom.Web.UI.Controls.MyRepeater.js"));this.Page.ClientScript.RegisterClientScriptInclude("LeeHom.Web.UI.Controls.PleaseWaitButton.js",this.Page.ClientScript.GetWebResourceUrl(this.GetType(),"LeeHom.Web.UI.Controls.PleaseWaitButton.js"));
解决方案
解决方案二:
lz不用IDE吗?ClientScriptManager.RegisterClientScriptInclude(String,String)RegisterstheclientscriptwiththePageobjectusingakeyandaURL.ClientScriptManager.RegisterClientScriptInclude(Type,String,String)RegisterstheclientscriptincludewiththePageobjectusingatype,akey,andaURL.
时间: 2024-10-23 15:23:48