08 2008 档案
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ALTER PROCEDURE dbo.aspnet_Profile_SetProperties @ApplicationName nvarchar(256), ...
阅读全文
摘要:假设安装路径在N盘,则需用命令行方式升级安装 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->n:\setup.exe SKUUPGRADE=1
阅读全文
摘要:数据库表通常都有一列或一组列,用于唯一地标识表中的每一行。这种具有标识作用的列或列组称为主键。
阅读全文
摘要:在 DataSet 中添加或刷新行以匹配使用 DataSet 名称的数据源中的行,并创建一个 DataTable。
阅读全文
摘要:若一张表Info有如下几个字段,name,age,high三个字段, Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->select max(age) as age,max(high) as high from Info 上面的sql将是取...
阅读全文
摘要:HtmlTextWriter类暴露(expose)一个方法来呈现如下每一部分: 1,RenderBeginTag:呈现或产生HTML元素的开启标签 2,AddAttribute:该方法每次被调用时,为每种属性在HTML元素的开启标签中形成或呈现属性, 该方法必须在RenderBeginTag之前调用。 3,AddStyleAttribute:该方法每次被调用时,为每种样式属性作为HTML元素的一部...
阅读全文
摘要:可以使用Label控件来标注一个HTML表单字段。Label控件拥有属性AssociatedControlID,可以设置此属性来指向表示表单字段的ASP.NET控件。 例如,代码清单2-3中的页面含有一个简单的表单,表单包含两个字段用于输入名和姓。Label控件用于标注这两个TextBox控件。 Code Code highlighting produced by Actipro CodeHi...
阅读全文
摘要:We can use the SiteMapPath control simply by declaring the control in a page. The control automatically uses the Web.sitemap file located in the root of your application. Typically, you do not add ...
阅读全文
摘要:在一个CommandField中为删除按钮设置OnClientClick属性 在模板中直接使用Button,LinkButton,或者ImageButton的时候,可以直接为它的OnClientClick属性设置确认窗口并返回confirm(string) JavaScript的返回值。然而,CommandField是在GridView或者DetailsView上内置的一些删除按钮,而且它们本身不...
阅读全文
摘要:Like anchors, lookaround groups match at a certain position rather than certain text. Lookahead will try to look forward at the current position in the string, while lookbehind will try to look back...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System.Text.RegularExpressions; Code Code highlighting produced by Actipro CodeHighli...
阅读全文
摘要:The .NET Match and Regex Modes RegexOptions option (?mode) ...
阅读全文
摘要:ASP.NET 页生命周期概述 ASP.NET 页运行时,此页将经历一个生命周期,在生命周期中将执行一系列处理步骤。这些步骤包括初始化、实例化控件、还原和维护状态、运行事件处理程序代码以及进行呈现。了解页生命周期非常重要,因为这样做您就能在生命周期的合适阶段编写代码,以达到预期效果。此外,如果您要开发自定义控件,就必须熟悉页生命周期,以便正确进行控件初始化,使用视图状态数据填充控件属性以及...
阅读全文