摘要: 有时候我们要对时间进行转换,达到不同的显示效果 默认格式为:2005-6-6 14:33:34 如果要换成成200506,06-2005,2005-6-6或更多的该怎么办呢 我们要用到:DateTime.ToString的方法(String, IFormatProvider) using System; using System.Globalization; String format="D"; DateTime date=DataTime,Now; Response.Write(date.ToString(format, DateTimeFormatInfo.Invari 阅读全文
posted @ 2011-04-02 11:05 茶海 阅读(2757) 评论(0) 推荐(0) 编辑
摘要: 点击提交按钮,确认是否已经登陆,如果没有登陆弹出登陆窗口,如果已经登陆,直接提交评论.if (!object.Equals(null, Session["userInfo"])) { this.btnSubmit.Visible = true; this.btnOpen.Visible = false; } else { this.btnSubmit.Visible = false; this.btnOpen.Visible = true; this.btnOpen.Attributes.Add("onclick", "OpenWin()&qu 阅读全文
posted @ 2011-04-02 09:19 茶海 阅读(1060) 评论(2) 推荐(0) 编辑