摘要:效果图 Login.js代码/// <reference path="vswd-ext_2.0.2.js" />Ext.onReady(function() { Ext.QuickTips.init(); // Create a variable to hold our EXT Form Panel. // Assign various config options as seen. ...
阅读全文
文章分类 - C#语言
有关C#语言的基本概念和理论
摘要:效果图 Default.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or...
阅读全文
摘要:显示效果如下 RepeaterDemo.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="RepeaterDemo.aspx.cs" Inherits="RepeaterDemo" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...
阅读全文
摘要:1、目录 2、ASP.NET错误捕获的处理发生在三个水平上 2. 1 在类水平上 At the class level 2.1.1 使用try…catch语法块处理异常信息 try { double dVal1 = Convert.ToDouble(txtValue1.Text); double dVal2 = Convert.ToDouble(txtValue2.Text); double ...
阅读全文
摘要:1、目录 2、一些另外的标准ASP.NET服务器控件概述 2.1 控件列表 2.2 对象模型 Control类除了有一个visibility属性外,没有其他与用户界面相关的属性函数,它提供所有控件所需要的基本特征,例如:ID,子控件集合,共有的控件事件。对比来说,WebControl类主要提供一些控件的外表和行为的属性,比如前景色,高度和样式表等(ForeColor, Height, CssCla...
阅读全文
摘要:1、标签控件Label Control 1.1 示例代码 <asp:Label id="labMsg" runat="server" text="hello"/>labMsg.Text = "<p>This is the <i>First</i> line";labMsg.Text += "<br>" + "This is second ...
阅读全文
摘要:目录 1、五种基本的服务器控件类型 • HTML server controls• Web server controls• Validation server controls• User controls• Custom server controls 每一个控件都有自己的属性Properties、方法Methods和对应的事件Events。 2、服务器控件的对象模型 3、一些重要的WebC...
阅读全文
摘要:目录 ASP.NET的事件模式(ASP.NET Event Model) 事件处理器(event handler):event handler 用来决定当一个事件被激发是的处理方式,比如当用户点击鼠标或者是用户从一个下拉列表中选中某个选项等等。 在.NET Framework中, 所有的事件处理器都有一个特定的方法签名(method signature)—也就是说方法的返回类型(return t...
阅读全文
摘要:效果图如下: 1、主页面代码: 1: 2: 3: 4: 5: 6: Untitled Page 7: 8: --%> 9: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: ...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Linq; 4using System.Web; 5us...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Linq; 4using System.Web; 5us...
阅读全文

浙公网安备 33010602011771号