摘要: 取得服務器上的時間:Context.Timestamp ------------------------------ 具體時間: Context.Timestamp.TimeOfDay.ToString() 年月日: Context.Timestamp 年份: Context.Timestamp.Year 月份: Context.Timestamp.Month 日期部份: Context.Timestamp.Date 日期號: Context.Timestamp.Day 星期: Context.Timestamp.DayOfWeek 一年中的第幾天: Context.Timestamp.Day 阅读全文
posted @ 2011-07-29 23:43 与时俱进 阅读(422) 评论(0) 推荐(0) 编辑
摘要: This article provides an overview of the URL Rewrite Module and explains the configuration concepts that are used by the module.Table Of Contents Functionality Overview Rewrite Rules Overview Rewrite Rules Scope Rules Evaluation Rules Inheritance Preserving Original URL Accessing URL Parts from a Re 阅读全文
posted @ 2011-07-29 23:02 与时俱进 阅读(2070) 评论(0) 推荐(0) 编辑
摘要: 写入:HttpCookie cookie = new HttpCookie("id_admin_");cookie.Value = model.id_admin_.ToString();//cookie.Domain = ".AAA.com";HttpContext.Current.Response.Cookies.Add(cookie);cookie = new HttpCookie("name_admin_");//可能是中文字符,必须经过编码cookie.Value = HttpUtility.UrlEncode(model.n 阅读全文
posted @ 2011-07-29 22:52 与时俱进 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 在IIS5和IIS6时代,我们使用URL REWRITING可实现URL重写,使得WEB程序实现伪静态,但默认情况下只能实现.ASPX的伪静态,如果要实现伪静态*.HTML的页面,需要将ISAPI里面的*.HTML应用程序映射改为.NET的ISAPI。但在IIS 7时代,这一切已经变得非常简单了,您在WEB.CONFIG中就可以管理这一切了。 可以直接在IIS 7里面进行添加重写规则,也可以直接在WEB.CONFIG中设置:XML/HTML Code<?xml version="1.0" encoding="UTF-8"?> <conf 阅读全文
posted @ 2011-07-29 17:12 与时俱进 阅读(3418) 评论(1) 推荐(1) 编辑
友情链接:同里老宅院民居客栈