摘要:
using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebCon... 阅读全文
posted @ 2009-07-20 14:16
94cool
阅读(289)
评论(0)
推荐(0)
摘要:
protectedoverridevoidRender(HtmlTextWriterwriter)2{3System.IO.StringWriterhtml=newSystem.IO.StringWriter();4System.Web.UI.HtmlTextWritertw=newHtmlTextWriter(html);5base.Render(tw);6System.IO.StreamWri... 阅读全文
posted @ 2009-07-20 11:58
94cool
阅读(117)
评论(0)
推荐(0)
摘要:
CREATE PROCEDURE sp_page @tb varchar(50), --表名 @col varchar(50), --按该列来进行分页 @coltype int, --@col列的类型,0-数字类型,1-字符类型,2-日期时间类型 @orderby bit, --排序,0-顺序,1-倒序 @collist varchar(800),--要查询出的字段列表,*表示全部字段 @page... 阅读全文
posted @ 2009-07-20 11:35
94cool
阅读(201)
评论(0)
推荐(0)
摘要:
大家都知道在写一个自定义控件的时候,如果需要使用到回发数据处理方法时,需要继承IPostBackDataHandler接口,该接口有两个方法,一个是LoadPostData(),用来接收回发的数据,一个是RaisePostDataChangedEvent(),它是用来通知回发数据的控件该控件的状态(如输入到TextBox中的值)已更改,如果控件状态更改后你需要执行某些操作,可以在该方法中执行。是否... 阅读全文
posted @ 2009-07-20 11:22
94cool
阅读(249)
评论(0)
推荐(0)
摘要:
Control.Render 方法 将服务器控件内容发送到提供的 HtmlTextWriter 对象,此对象编写将在客户端呈现的内容。 protected virtual void Render( HtmlTextWriter writer ); 参数 writer 接收服务器控件内容的 HtmlTextWriter 对象。 备注 在开发自定义服务器控件时,可以重写此方法以生成 ... 阅读全文
posted @ 2009-07-20 11:07
94cool
阅读(2556)
评论(2)
推荐(0)
摘要:
我们主要研究RenderControl,Render,RenderChildren的执行顺序.三者的含义从他们的命名可以很清楚的看出.RenderControl绘制控件Render绘制RenderChildren绘制子控件看下面的代码public class UserComponent : Control{ public UserComponent() { } public override v... 阅读全文
posted @ 2009-07-20 11:06
94cool
阅读(648)
评论(0)
推荐(0)
摘要:
一、XMLHttpRequest 对象的方法与属性方 法描 述abort()停止当前请求getAllResponseHeaders()把HTTP请求的所有响应首部作为键/值对返回getResponseHeader("header")返回指定首部的串值open("method", "url")建立对服务器的调用。method参数可以是GET、POST或PUT。url参数可以是相对URL或绝对URL。... 阅读全文
posted @ 2009-07-20 10:42
94cool
阅读(196)
评论(0)
推荐(0)
摘要:
禁止ajax缓存问题:在ajax发送请求前加上xmlHTTP.setRequestHeader("If-Modified-Since","0");<html><head><title>My first ajax programe</title><meta http-equiv="Content-Type" content="text/html;... 阅读全文
posted @ 2009-07-20 09:46
94cool
阅读(182)
评论(0)
推荐(0)
摘要:
使用Cache:<%@ OutputCache Duration="15" VaryByPara="None" %>页面使用Cache,Cache的有效期为15 seconds使用代码表示,放在Page_Load里面:////Cache Manager可以控制这个页面//Response.Cache.SetCacheability(HttpCacheability.Public);//... 阅读全文
posted @ 2009-07-20 09:44
94cool
阅读(409)
评论(0)
推荐(0)
浙公网安备 33010602011771号