- + P A

- 使用cookie保存上次登录时间

      编程心得 2007-7-12 17:27

                if (Request.Cookies["LastVisit"] == null)
                {
                   Response.Cookies.Add(new HttpCookie("LastVisit"));
                   Response.Cookies["LastVisit"].Value = DateTime.Now.ToString();

                   
   

标签集:TAGS:
我要留言To Comment 阅读全文Read All | 回复Comments() 点击Count()

- 从数据库取值导致的错误

      编程心得 2007-7-10 10:58
    一个类型为Char(10)的数据,其值为a,当从数据库取出来时,他的值并不是"a",而是"a         "
标签集:TAGS:
我要留言To Comment 阅读全文Read All | 回复Comments() 点击Count()

- select * from User出错

      编程心得 2007-7-10 10:19
    我建了一个表User,然而在查询分析器里运行select * from User的时候却出错,改为[User]后正确。  不知道是不是User是其他关键字还是“其他乱七八糟的东西”。
标签集:TAGS:
我要留言To Comment 阅读全文Read All | 回复Comments() 点击Count()