02 2009 档案
摘要:ASCII码表——在线ASCII字符转换 ASCII码对照表 下表列出了字符集中的 0 - 127。 代码 字符 代码 字符 代码 字符 代码 字符 0 32 [空格] 64 @ 96 ` ...
阅读全文
摘要:简单C#数据库操作类 using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebContr...
阅读全文
摘要:第一种方式(通过autopostback) Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->>" DataValueField="t_id" AutoPostBack="true" runat="server"> ...
阅读全文
摘要:DropDownList CheckBoxList RadioButtonList ListBox Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Data Binding ListBox ...
阅读全文
摘要:删除 Cookie(即从用户的硬盘中物理移除 Cookie)是修改 Cookie 的一种形式。由于 Cookie 在用户的计算机中,因此无法将其直接移除。但是,可以让浏览器来为您删除 Cookie。该技术是创建一个与要删除的 Cookie 同名的新 Cookie,并将该 Cookie 的到期日期设置为早于当前日期的某个日期。当浏览器检查 Cookie 的到期日期时,浏览器便会丢弃这个现已过期的 C...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> RadioButton Example RadioButton Example Select the typ...
阅读全文
摘要:public String Substring(int startIndex,int length) 起始位置从0开始,然后截取长度 如:判断文件的后缀名是否为gif string filename=File.name.ToString(); if(filename.Substring(filename.length-3,3) =="gif") php里的substring() ...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Repeater Example Repeater Example Repeater1: ...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> CheckBox CheckedChanged Example CheckBox CheckedChanged Example ...
阅读全文
摘要:inner join(又叫join) out join包括left join,right join和full join(也就是left+right)
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->public enum InstrumentType { Guitar, Mandolin, BanJo } ...
阅读全文
摘要:Math.ceil(1.5)=2; Math.floor(1.5)=1;
阅读全文
摘要:Thesection can also be encrypted so that sensitive information is not exposed the apostrophe id is reserved fro different use in SQL there are ways you can could include one,but is't far easier t...
阅读全文
摘要:int 关键字表示一种整型,是32位的,它的 .NET Framework 类型为 System.Int32。 (int)表示使用显式强制转换,是一种类型转换。当我们从 int 类型到 long、float、double 或decimal 类型,可以使用隐式转换,但是当我们从 long 类型到 int 类型转换就需要使用显式强制转换,否则会产生编译错误。 Int32.Parse()表示将数...
阅读全文
摘要:The datatype of phone_number is String; DataTime contains DATA and TIME Data only contains DATA Time only contains TIMEl; SQL is case insensitive So use the "_" to seperate the var;
阅读全文
摘要://如果 check_expression 不为 NULL,那么返回该表达式的值;否则返回 replacement_value ISNULL ( check_expression , replacement_value ) 实例一 (用值 $10.00 替换 titles 表的 price 列中的所有 NULL 条目。) Code Code highlighting produced b...
阅读全文
摘要:Read()返回int ReadLine()返回String 这个返回的值是你输入的第一个字符的UNICODE码,不管你输入的是多少个字符,他只返回第一个字符 static int Main() { int c=Console.Read(); int d=Console.Read(...
阅读全文
摘要:从 前,在南方一块奇异的土地上,有个工人名叫彼得,他非常勤奋,对他的老板总是百依百顺。但是他的老板是个吝啬的人,从不信任别人,坚决要求随时知道彼得的 工作进度,以防止他偷懒。但是彼得又不想让老板呆在他的办公室里站在背后盯着他,于是就对老板做出承诺:无论何时,只要我的工作取得了一点进展我都会及时 让你知道。彼得通过周期性地使用“带类型的引用”(原文为:“typed reference” 也就是del...
阅读全文
摘要:public string[] Split(params char[] seperator) separator 的每一个元素都定义一个单独的分隔符字符。如果两个分隔符相邻,或者在此实例的开头或末尾找到分隔符,则相对应的数组元素包含 Empty。 "42, 19, 52" new char[]...
阅读全文
摘要:所以要将第一次加载是要用到的函数放在 if(page.Ispostback) { 函数 } Code update,add有效 如果将if(page.ispostback)去掉则数据每次都会重载 就会变得无效 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHig...
阅读全文
摘要:ASP.NET2.0中的GRIDVIEW控件在使用TemplateField中的LinkButton时如何在RowCommand事件中找到当前行index的方法 ASP.NET2.0中的GRIDVIEW控件真是非常奇怪,不知道MS是怎么考虑的,在GRIDVIEW里,行索引被放在了 CommandArgument里面,而不是像DataGrid那样可以利用 this.MyDat...
阅读全文
摘要:principal 中学校长(美) headmaster 中学校长(英) master 小学校长 (美) dean of studies 教务长 dean of students 教导主任 dean of students 教导主任 teacher 教师 probation teacher 代课教师 tutor 家庭教师 governess 女家庭教师 in...
阅读全文
摘要:Create UNIQUE INDEX ST ON STUDENTS (SNO) 如果STUDENTS表SNO不是主键 可以用添加UNIQUE INDEX的方法来防止重复数据 Drop INDEX ST 删除index
阅读全文
摘要:Max Min Sum Avg Count(*) Count Group By语句和having语句的用法 Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->(11)GROUP BY子句 GROUP BY子句首先讲讲GROUP ...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->SqlDataReader reader = command.ExecuteReader(); 以下代码示例循环访问一个 DataReader 对象,并从每个行中返回两个列。 Cod...
阅读全文
摘要:首先介绍FileUpload的几个属性和方法 Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->FileName HasFile FileContent PostedFile SaveAs方法 然后是FileUpload.Post...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> dsfsdfsdf
阅读全文
摘要:• param关键字的实质是:param是定制特性ParamArrayAttribute的缩写(关于定制特性的详细论述请参见第三回:历史纠葛:特性和 属性),该特性用于指示编译器的执行过程大概可以简化为:编译器检查到方法调用时,首先调用不包含ParamArrayAttribute特性的方法,如 果存在这种方法就施行调用,如果不存在才调用包含ParamArrayAttribute特性的方法,同时应用...
阅读全文
摘要:.Net Framework中的委托与事件 尽管上面的范例很好地完成了我们想要完成的工作,但是我们不仅疑惑:为什么.Net Framework 中的事件模型和上面的不同?为什么有很多的EventArgs参数? 在回答上面的问题之前,我们先搞懂 .Net Framework的编码规范: 委托类型的名称都应该以EventHandler结束。 委托的原型定义:有一个void返回值,并...
阅读全文
摘要:Property,这个面向时代诞生的宠儿,似乎总是被放在一个被追捧的角色。这个看似数据,实为代码的家伙,为从外部访问Class内部的私有成员提供了一个灵活的方法。 MS一声号召:用property吧!于是乎,原来在C++里面由于要提供外部访问而不得不声明为public的成员变量,在C#里面都安安全全地变回private field,然后再通过一个property来作为“代理”进行访问。这...
阅读全文
摘要:定义:.Net FrameWork类似于JVM(虚拟机),他是微软Web Services的引擎。我们习惯的叫做.NET框架,同时我们写的C#,VB.NET,等程序必须在.Net框架上运行。 组成:.Net FrameWork由两部分组成,分别是公共语言运行时(CLR),统一类库集(FCL)。公共语言运行时(CLR):包括两部分分别为,公共语言规范(CLS)及公共类型规范(CTS)...
阅读全文
浙公网安备 33010602011771号