易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET 2.0 Page 加载的过程

只有在◎Page指令中设置了:AutoEventWireup="true",服务器端的编译器将按照 Page_eventname 方法名的形式自动的检查相应事件处理方法,自动实现事件的订阅。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
    protected void Page_AbortTransaction()
    {
        Label1.Text += "<br />Page_AbortTransaction happened !";
    }
    protected void Page_CommitTransaction()
    {
        Label1.Text += "<br />Page_CommitTransaction happened !";
    }
    protected void Page_DataBinding()
    {
        Label1.Text += "<br />Page_DataBinding happened !";
    }
    protected void Page_Disposed()
    {
        Label1.Text += "<br />Page_Disposed happened !";
    }
    protected void Page_Error()
    {
        Label1.Text += "<br />Page_Error happened !";
    }
    protected void Page_Init()
    {
        Label1.Text += "<br />Page_Init happened !";
    }
    protected void Page_InitComplete()
    {
        Label1.Text += "<br />Page_InitComplete happened !";
    }
    protected void Page_Load()
    {
        Label1.Text += "<


相关文档:

asp.net时间格式大全

DateTime dt = DateTime.Now;
// Label1.Text = dt.ToString();//2005-11-5 13:21:25
// Label2.Text = dt.ToFileTime().ToString();//127756416859912816
// Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816
// Label4.Text = dt.ToLocalTime().ToString();//2005-11-5 21:21:25
// Label5.Text = ......

asp.net学习网

本文为中国ASP.NET开发网原创文章,转载必须注明出处。 名称: ASP.NET
地址:http://www.asp.net
介绍:微软.NET webform的老巢,资料和实例代码都非常难得。
名称: CSDN文档中心    loveswallow998  58213998
地址:http://dev.csdn.net/
介绍:中文的,资料还算丰富,可以作为国内首选。 ......

微软企业库5.0学习笔记(九)ASP.NET WEB应用程序

在ASP.NET Web窗体应用程序中,推荐的方法是将容器存到由Application字典对象提供的全局状态。当需要的时候你可以访问容器,甚至使用HTTP模块自动完成对页面上控件的注入。
通常情况下,你应该使用Application字典对象来存储容器的单个实例。您可能决定创建主要容器的子容器,并将它们存储到每个用户的Session对象中,甚至 ......

asp.net GridView的一些应用

应用1:GridView和CheckBox结合
效果图:
应用2:Extending the GridView Control
Code download available at: CuttingEdge05.exe (132 KB)
Browse the Code Online
 Contents
The GridView Difference
A New GridView Control
Adding a Checkbox Column
The New Grid In Action
Styling Selected ......

ASP.NET 2.0 AJAX中Webservice调用方法

ASP.NET 2.0 Ajax中能够在客户端js中很方便地调用服务器Webservice,以下为一些调用的示例。笔者安装的ASP.NET 2.0 AJAX
版本为AJAX November CTP。
三个示例分别为:
1 带参数的WS方法
2 不带参数的WS方法
3 参数类型为DataTable的WS方法
一、WebMethod
注意要点:
1 WebMethod类需要添加命名空间 Microsoft.Web. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号