cnzz统计文件有错误?
2014/7/23 12:57:00 人气 56 站长俱乐部 Active Server Pages 错误 ‘ASP 0141‘
Page 命令重复
/liuyan/cs.aspx,行 1
@ 命令只能在 Active Server Page 中使用一次。
aspx文件内容如下:
<% @Import Namespace=“System.Web“ %>
<script language=“C#“ runat=“server“>
private class CS
{
private int SiteId = 0;
private const string ImageDomain = “c.cnzz.com“;
public CS(int SiteId)
{
this.SiteId = SiteId;
}
public string TrackPageView()
{
HttpRequest request = HttpContext.Current.Request;
string scheme = request != null ? request.IsSecureConnection ? “https“ : “http“ : “http“;
string referer = request != null && request.UrlReferrer != null && ““ != request.UrlReferrer.ToString() ? request.UrlReferrer.ToString() : ““;
String rnd = new Random().Next(0x7fffffff).ToString();
return scheme + “://“ + CS.ImageDomain + “/wapstat.php“ + “?siteid=“ + this.SiteId + “&r=“ + HttpUtility.UrlEncode(referer) + “&rnd=“ + rnd;
}
}
</script>
[url]http://www.songu.cn[/url]
发表回复