Loading

摘要: The .NET Match and Regex Modes RegexOptions option (?mode) ... 阅读全文
posted @ 2008-08-02 21:16 .net's 阅读(805) 评论(0) 推荐(0)
摘要: ASP.NET 页生命周期概述 ASP.NET 页运行时,此页将经历一个生命周期,在生命周期中将执行一系列处理步骤。这些步骤包括初始化、实例化控件、还原和维护状态、运行事件处理程序代码以及进行呈现。了解页生命周期非常重要,因为这样做您就能在生命周期的合适阶段编写代码,以达到预期效果。此外,如果您要开发自定义控件,就必须熟悉页生命周期,以便正确进行控件初始化,使用视图状态数据填充控件属性以及... 阅读全文
posted @ 2008-08-02 18:52 .net's 阅读(304) 评论(0) 推荐(0)
摘要: 发布日期 : 8/17/2004 | 更新日期 : 8/17/2004 速成课程 Steven A. Smith 适用范围: Microsoft® .NET Framework Microsoft® ASP.NET 正则表达式 API 摘要:正则表达式是一种处理文本的有用工具。无论是验证用户输入、搜索字符串内的模式、还是以各种有效方式重新设置文本格式,正则表达式都非常有用。 下载本文的源... 阅读全文
posted @ 2008-07-31 20:43 .net's 阅读(502) 评论(0) 推荐(0)
摘要: 将值绑定到dropdownlist中后, this.DropDownList1.DataSource = getData(sql1); this.DropDownList1.DataTextField = "categoryname"; this.DropDownList1.DataValueField = "categoryid"; this.DropDownList1.DataBind(); ... 阅读全文
posted @ 2008-07-15 19:55 .net's 阅读(3031) 评论(0) 推荐(1)
摘要: class Person { public string Name { get; set; } } class Pet { public string Name { get; set; } public Person Owner { get; set; } } public static void JoinEx1() { Person magnus = new ... 阅读全文
posted @ 2008-07-05 23:59 .net's 阅读(649) 评论(0) 推荐(0)
摘要: asp.net2.0中gridView的删除确认问题 用惯了datagrid,第一次用gridView,倒有点不习惯.写删除确认时还有点不习惯,经过一番折磨,gridView的删除确认可以这样写: ... 阅读全文
posted @ 2008-07-01 21:56 .net's 阅读(453) 评论(0) 推荐(0)
摘要: 1. 打开新的窗口并传送参数: //传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>"= //接收参数: string a = Request.QueryString("id"); string b = Request.... 阅读全文
posted @ 2008-07-01 21:43 .net's 阅读(392) 评论(0) 推荐(0)
摘要: The FORALL keyword can improve the performance of INSERT, UPDATE, or DELETE statements that reference collection elements. For example, the following PL/SQL block increases the salary for employees w... 阅读全文
posted @ 2008-04-29 09:09 .net's 阅读(604) 评论(0) 推荐(0)
摘要: class可以在页面里面重复使用, id由于在页面里面只能出现一次,所以不能重复使用, 所以尽量用class来写,这样能在页面里面重复引用你写的css,减小工作量和代码量。 这种情况尽量用id:页面大的模块里面,用id来区分不同的模块。 比如页面里面有这样的模块:最新新闻,推荐新闻等。就可以考虑用id来区分。 还有一点,由于id是页面中唯一的,更多的是定义来留给给页面里面的javascript用。... 阅读全文
posted @ 2008-01-07 09:54 .net's 阅读(490) 评论(0) 推荐(0)
摘要: VS 2005 Web Deployment Projects主页(英文) VS 2005 Web Deployment Projects下载 参见Scott Guthrie's Blog上的文章 最近需要用ASP.Net 2作开发,而且需要做成msi四处分发,于是在VS05中创建了一个实验性Web项目。ASP.Net 2的新特性让人很兴奋,但是VS05内置的Web部署方式实在让人头痛... 阅读全文
posted @ 2008-01-04 13:21 .net's 阅读(507) 评论(0) 推荐(0)