07 2006 档案

摘要: SQL Server

ODBC

Standard Security:
"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"

Trusted connection:
"Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;"

Prompt for username and password:
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Driver={SQL Server};Server=Aron1;DataBase=pubs;"
... ...阅读全文
posted @ 2006-07-06 00:42 柴火 阅读(1922) | 评论 (0) 编辑
摘要: 代码填写在DataGrid的ItemDataBound事件里:

1if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
2 {
3 e.Item.Attributes["OnMouseOver"] = "style.cursor='hand'; style.backgroundColor='yellow';";
4 e.Item.Attributes["OnMouseOut"] = "style.backgroundColor='white';";
5 e.Item.Attributes["OnClick"] = "window.open('aaa.aspx');";
6 }
行3语句:鼠标指到行时,鼠标变手型,行的底色变为黄色
... ...阅读全文
posted @ 2006-07-06 00:30 柴火 阅读(387) | 评论 (0) 编辑
摘要: 思路:在DataGrid里建模板列,使用CheckBox和CheckBoxList控件提交,CheckBox控件用作全选,CheckBoxList控件记录商品的编号,用循环收集提交的编号。
... ...阅读全文
posted @ 2006-07-06 00:29 柴火 阅读(747) | 评论 (0) 编辑
摘要: "select top 10 a.lsh from account as a where a.lsh not in (select top " + page + " b.lsh from account as b)"
其中 top 10 为我们需要分页的页数, page 为启始的记录数;如:我们现在需要 1-10条的记录 page=0,需要11-20的记录 page=10
... ...阅读全文
posted @ 2006-07-06 00:28 柴火 阅读(39) | 评论 (1) 编辑
摘要: 传递中文之前,将要传递的中文参数进行编码,在接收时再进行解码。
>> 进行传递
string Name = "中文参数";
Response.Redirect("B.aspx?Name="+Server.UrlEncode(Name));

>> 进行接收
string Name = Request.QueryString["Name"];
Response.Write(Server.UrlDecode(Name));
... ...阅读全文
posted @ 2006-07-06 00:25 柴火 阅读(983) | 评论 (0) 编辑
摘要: 大型网吧是一个多元化应用的系统集成网络,具备较强的预扩展性。越来越多的大型网吧正在或者已经建立多元化的网络。

一、需求分析:

大型网吧网络系统建设的主要目标是建设成为主干跑千兆,百兆交换到桌面;同时在大型网吧的范围内建立一个以网络技术、计算机技术与现代信息技术为支撑的娱乐、管理平台,将现行以游戏网为主的活动发展到多功能娱乐这个平台上来,籍以大幅度提高网吧竞争和盈利能力,建设成一流的高档网吧,为吸引高端消费群打下强有力的基础。
... ...阅读全文
posted @ 2006-07-06 00:19 柴火 阅读(193) | 评论 (0) 编辑