随笔分类 -  asp.net基础知识

摘要:<?xml version="1.0" encoding="UTF-8"?><configuration> <!--第一步注册url重写模块放到webconfig的最上部--> <configSections> <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" /> </configS 阅读全文
posted @ 2012-12-21 17:23 因为你 阅读(367) 评论(0) 推荐(0)
摘要:1 public static int DateDiffDay(DateTime DateTimeOld, DateTime DateTimeNew) 2 { 3 TimeSpan ts1 = new TimeSpan(DateTimeOld.Ticks); 4 TimeSpan ts2 = new TimeSpan(DateTimeNew.Ticks); 5 TimeSpan ts = ts1.Subtract(ts2).Duration(); 6 int day... 阅读全文
posted @ 2012-06-05 13:02 因为你 阅读(270) 评论(0) 推荐(0)
摘要:设当前页完整地址是:http://www.jb51.net/aaa/bbb.aspx?id=5&name=kelli "http://"是协议名 "www.jb51.net"是域名 "aaa"是站点名 "bbb.aspx"是页面名(文件名) "id=5&name=kelli"是参数【1】获取 完整url (协议名+域名+站点名+文件名+参数) string url=Request.Url.ToString(); url= http://www.jb51.net/aaa/bbb.a 阅读全文
posted @ 2012-05-02 16:38 因为你 阅读(251) 评论(0) 推荐(0)