c#网站WebConfig中域名引用示例介绍
c#网站WebConfig中域名引用示例介绍
发布时间:2016-12-29 来源:查字典编辑
摘要:在WebConfig中定义如下。复制代码代码如下:publicclassWebConfig{publicstaticstringResour...

在WebConfig中定义如下。

复制代码 代码如下:

public class WebConfig

{

public static string ResourceServer = @"http://www.xxx.com/"; }

在前台页面中这样调用

复制代码 代码如下:

<script src="<% =WebConfig.ResourceServer %>/js/jquery-ui-all-min-lastest.js"

type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="<%=WebConfig.ResourceServer +"/css/style.css"%>" />

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新asp.net教程学习
热门asp.net教程学习
编程开发子分类