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


相关文档:

Cookie应用完全解析(一):asp.net中Cookie技术

Cookie 是什么?
 
在asp.net中,如何使用?
 
 
 
1   Cookie 是什么?
 
Cookie:电脑中记录用户在网络中的行为的文件;网站可通过Cookie来识别用户是否曾经访问过该网站。(摘自 http://gb.cri.cn/17004/2007/03/08/121@1487554.htm)
2在asp.net中,如何使用?
 
& ......

asp.net的内置对象

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

js C# ASP.Net 正则去掉超链接(只是 和 )

//替换所有
Regex reg = new Regex(@"(?is)</?a\b[^>]*>(?:(?!</?a).)*</a>");
string result = reg.Replace(yourStr, "");
//保留www.abc.com链接
Regex reg = new Regex(@"(?is)</?a\b.*?href=(['""]?)(?!(?:http://)?www\.abc\.com)[^'""\s>]+\1[^>]*>(?<text>(?:(?!</?a).) ......

asp.net导出成EXCEL

以下是导出的方法:
public static void ToExcel(System.Web.UI.Control ctl)
    {
        //HttpContext.Current.Response.Charset   ="GB2312";  
        HttpContext.Current.Response.Charset = "G ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号