摘要: Request.ServerVariables("Url") 返回服务器地址Request.ServerVariables("Path_Info") 客户端提供的路径信息Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路径Request.ServerVariables("Path_Translated") 通过由虚拟至物理... 阅读全文
posted @ 2010-11-06 14:24 zhdonghu 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 关于Assembly.CreateInstance()与Activator.CreateInstance()方法动态创建类对象,大多是Activator.CreateInstance()和Activator.CreateInstance<T>()方法,非常好用,一般都用了Assembly.Load("AssemblyName").CreateInstance ("ClassName")... 阅读全文
posted @ 2010-11-06 14:20 zhdonghu 阅读(270) 评论(0) 推荐(0) 编辑
摘要: .cs public string BannerChange(string includeStr) { string activeStr = string.Empty; string ScName = Request.ServerVariables["url"].ToString(); if (ScName.IndexOf(includeStr) > 0) { activeStr = "ac... 阅读全文
posted @ 2010-11-06 11:00 zhdonghu 阅读(169) 评论(1) 推荐(1) 编辑