随笔分类 -  C#

涉及C#、ASP.NET
摘要:using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.... 阅读全文
posted @ 2010-10-14 16:02 Bedhi 阅读(574) 评论(0) 推荐(0)
摘要:环境:SQL2005数据库、Oracle - OraClient10g_home1(Oracle客户端)操作步骤:一、配置Oracle客户端1、添加监听程序监听程序名称FiatListener,添加地址:选TCP/IP协议、主机对应Oracle数据所在IP地址、端口任意2、创建服务名网络服务名:FiatServer-TCP/IP协议-主机名(对应Oracle数据库所在IP地址)-(Oracle8i... 阅读全文
posted @ 2010-08-27 09:52 Bedhi 阅读(378) 评论(0) 推荐(0)
摘要:在Web.config中做如下配置:<system.web> <globalization requestEncoding="Gb2312" responseEncoding="Gb2312"/></system.web> 阅读全文
posted @ 2010-08-26 15:31 Bedhi 阅读(158) 评论(0) 推荐(0)
摘要:Cookie的使用方法:给Cookie赋值HttpCookie LoginUserCookie = new HttpCookie("LoginUser"); LoginUserCookie.Expires = DateTime.MaxValue;//用不过期 LoginUserCookie.Values.Add("UserID", userNew.UserID); LoginUserCookie.... 阅读全文
posted @ 2010-08-26 15:29 Bedhi 阅读(346) 评论(0) 推荐(0)
摘要://调用存储过程执行类似于2//select count(*) from userinfo where username=username and pwd=pwd and grade=grade3//接受 3个参数分别用来表示用户名、用户密码、用户权限4public bool GetUserinfo(string username,string pwd,string grade)5    {6  ... 阅读全文
posted @ 2010-07-28 14:56 Bedhi 阅读(2233) 评论(0) 推荐(0)