易截截图软件、单文件、免安装、纯绿色、仅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 += "<


相关文档:

ZZ使用SQL Server存储ASP.NET Session变量

创建和配置ASP.NET Session状态数据库
在基于NLB(网络负载平衡)环境下的ASP.NET Web应用程序开发,我们需要将Session存储在数据库中供多个Web应用程序调用,以下为配置方法及注意事项。
1.创建用于存储ASP.NET Session的数据库(远程、本地皆可,使用数据库用户身份认证)
在Windows\Microsoft.NET\Framework/V2.0.507 ......

asp.net的内置对象

ASP.NET的内置对象介绍
1.Response
2.Request
3.Server
4.Application
5.Session
6.Cookie
Request对象主要是让服务器取得客户端浏览器的一些数据,包括从HTML表单用Post或者GET方法传递的参数、Cookie和用户认证。因为Request对象是Page对象的成员之一,所以在程序中不需要做任何的声明即可直接使用;其类名为 HttpR ......

微软企业库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配置文件Web.config

认识ASP.NET配置文件Web.config
 一、认识Web.config文件
Web.config文件是一个XML文本文件,它用来储存 ASP.NET Web 应用程序的配置信息(如最常用的设置ASP.NET Web 应用程序的身份验证方式),它可以出现在应用程序的每一个目录中。当你通过VB.NET新建一个Web应用程序后,默认情况下会在根目录自动创建一个默认的
W ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号