c#网站WebConfig中域名引用示例介绍
publicclassWebConfig { publicstaticstringResourceServer=@"http://www.xxx.com/";}
在前台页面中这样调用
<scriptsrc="<%=WebConfig.ResourceServer%>/js/jquery-ui-all-min-lastest.js" type="text/javascript"></script> <linkrel="stylesheet"type="text/css"href="<%=WebConfig.ResourceServer+"/css/style.css"%>"/>