protected void Page_Load(object sender, EventArgs e)
{
if (!this.Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "jquery.autocomplete.css"))
this.Page.ClientScript.RegisterClientScriptBlock(
this.GetType(),
"jquery.autocomplete.css",
"<link href='" + ResolveClientUrl("~/css/jquery.autocomplete.css") + "' rel=\"stylesheet\" />");
if (!this.Page.ClientScript.IsClientScriptIncludeRegistered(this.GetType(), "jquery.autocomplete.js"))
this.Page.ClientScript.RegisterClientScriptInclude(
this.GetType(),
"jquery.autocomplete.js",
ResolveClientUrl("~/js/jquery.autocomplete.min.js"));
}
.net webform 如何在UserControl里链接css和js
最新推荐文章于 2019-09-24 21:48:22 发布