摘要:
DateRow是一个数组,在访问DataRow里的元素时必须使用:DataRow row=Tables["NwebCn"].Select();row[0]["AdminName"]="lyt"; 阅读全文
文章分类 - C#笔记
GridView 的 Footer 如何跨欄置中
2009-02-10 10:04 by LvSir, 492 阅读, 收藏,
摘要:
GridView 的 Footer 如何跨欄置中 原來要這樣寫,如果你是在IDE就把 GridView 就產生好,並把 Column 都設定完成。可是在頁面呈現時,在footer 那會出現格線,也就是說,如果有五個 Column ,在footer 那也會有五個 cell ,那看來很奇怪。所以下面這一段code 就可以用上啦 ^^ protected void gvDelv_RowDataB... 阅读全文
Response.AddHeader使用实例收集
2008-12-18 12:04 by LvSir, 348 阅读, 收藏,
摘要:
文件下载,指定默认名 程序代码 Response.AddHeader("content-type","application/x-msdownload");Response.AddHeader("Content-Disposition","attachment;filename=要下载的文件名.rar"); 刷新页面 程序代码 Response.AddHeader "REFRESH", ... 阅读全文
asp.net中过滤掉非法字符的方法
2008-12-18 08:30 by LvSir, 1931 阅读, 收藏,
摘要:
SqlCommand com = new SqlCommand("select count(*) from loginInfo where Name= @name and Pass=@ps", con); com.Parameters.Add(new SqlParameter("@name", SqlDbType.VarChar, 50)); ... 阅读全文
封装md5加密函数
2008-12-11 16:38 by LvSir, 131 阅读, 收藏,
摘要:
CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public string EncryptPassword(string PasswordString,string PasswordFormat ) { if (PasswordFormat="... 阅读全文
DataView 类
2008-11-19 13:41 by LvSir, 511 阅读, 收藏,
摘要:
全部折叠 语言筛选器 : 全部 Visual Basic C# C++ J# JScript XAML 此页面仅适用于 Microsoft Visual Studio 2008/.NET Framework 3.5 同时提供下列产品的其他版本: Microsoft Visual Studio 2005/.NET Framework 2.0 ... 阅读全文
C#中的Internal(转)
2008-11-15 22:39 by LvSir, 958 阅读, 收藏,
摘要:
http://hhping821.spaces.live.com/Blog/cns!44EAAB4CCCAA996B!159.entry 在C#中,有如下几种修饰符,分别是public,protected,internal,private。先来看一下C# 4th Edition中的说明:... 阅读全文
浙公网安备 33010602011771号