Loading

随笔分类 -  asp.net 3.5

摘要:因隐藏字段不支持focus()方法,故需排除掉 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-11-22 11:54 .net's 阅读(403) 评论(0) 推荐(0)
摘要:对于1个单引号,则转义该单引号 对于1个反斜杠跟1个单引号,则不管它。 对于2个及以上的反斜杠加一个单引号,则分别对每个反斜杠和单引号都进行转义,即 使反斜杠数目保持不变, 并转义单引号。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->... 阅读全文
posted @ 2008-11-19 21:43 .net's 阅读(1549) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* * 将回车换行分开比较好 * update date:2009-01-01 * */ /// /// 回车 /// ... 阅读全文
posted @ 2008-11-16 14:57 .net's 阅读(879) 评论(3) 推荐(0)
摘要:有些命令是在调试下才可用,有些则在编写程序时可用。 用alias可以列出所有命令 >alias Visual Studio 命令和开关 Visual Studio 命令允许从键盘与集成开发环境 (IDE) 直接进行交互。IDE 内的许多对话框、窗口和菜单命令都有命令行等效项,可以将其键入“命令”窗口、即时窗口或“查找/命令”框中,以显示一个对话框或执行一个命令。 Visual Stu... 阅读全文
posted @ 2008-11-14 23:44 .net's 阅读(1132) 评论(0) 推荐(0)
摘要:在调试时,即时窗口(Immediate Window)非常有用。 在调试时,调出即时窗口 visual studio 2005 :Ctrl+Alt+I 或则 Ctr+D,I visual studio 2008 : Ctrl+Alt+I visual studio 2003 : Ctrl+Alt+I 阅读全文
posted @ 2008-11-14 23:21 .net's 阅读(1982) 评论(0) 推荐(0)
摘要:在asp.net页面中,当有验证控件,而且想在验证控件验证通过之后, 在弹出一个确认对话框,提示是否继续。 当在button按钮上添加客户端的onclick="return confirm('Are you sure to continue?')"时,验证控件的验证就会失效。 因为验证控件也是添加客户端的onclick事件。 ------------------------------------... 阅读全文
posted @ 2008-11-14 21:12 .net's 阅读(986) 评论(0) 推荐(0)
摘要:使用 ECMAScript (JavaScript、JScript) 创建验证函数。 下面的代码示例解释了自定义客户端验证。源自页的摘要将显示由 CustomValidator 控件引用的 TextBox 控件。验证控件调用名为 validateLength 的客户端脚本函数,以确认用户在 TextBox 控件中输入了至少 8 个字符。 Visual Basic 复制代码 ... 阅读全文
posted @ 2008-10-22 22:49 .net's 阅读(537) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> // 1 //DropDownList1.SelectedValue = "5g"; // 若SelectedValue没有对应的5g,则抛出如下异常 ... 阅读全文
posted @ 2008-10-18 20:47 .net's 阅读(558) 评论(1) 推荐(0)
摘要:1,Download Connector/Net 5.2(odbc) and install 2, add reference "MySQL.Data.dll" 3, add connection in web.config file Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://ww... 阅读全文
posted @ 2008-09-18 16:37 .net's 阅读(3431) 评论(0) 推荐(0)
摘要:ASP.NET 状态管理 阅读全文
posted @ 2008-09-08 14:21 .net's 阅读(434) 评论(0) 推荐(0)
摘要:ASP.NET 页生命周期概述 ASP.NET 页运行时,此页将经历一个生命周期,在生命周期中将执行一系列处理步骤。这些步骤包括初始化、实例化控件、还原和维护状态、运行事件处理程序代码以及进行呈现。了解页生命周期非常重要,因为这样做您就能在生命周期的合适阶段编写代码,以达到预期效果。此外,如果您要开发自定义控件,就必须熟悉页生命周期,以便正确进行控件初始化,使用视图状态数据填充控件属性以及... 阅读全文
posted @ 2008-08-02 18:52 .net's 阅读(307) 评论(0) 推荐(0)