asp.Net 一些常用的方法和类(4)
HttpContext.Current.Response.AddHeader("cache-control", "private");
HttpContext.Current.Response.CacheControl = "no-cache";
}
分页方法:
using System; 
using System.Collections.Generic; 
using System.Web; 
using System.Text; 
using System.Text.RegularExpressions; 
 
    public class PagingCollection<T> 
    { 
        private int pagezise; 
 
        public int Pagezise 
        { 
            get { return pagezise; } 
            set { pagezise = value; } 
        } 
        private int pageindex; 
 
        public int Pageindex 
        { 
            get { return pageindex; } 
            set { pageindex = value; } 
        } 
        private int TotalCount; 
 
        public int TotalCount1 
        { 
            get { return TotalCount; } 
            set { TotalCount = value; } 
        } 
        private int TotalPage=0; 
 
        public int TotalPage1 
        { 
            get { return TotalPage; } 
            set { TotalPage = value; } 
        } 
        private string url; 
 
        public string Url 
        { 
            get { return url; } 
            set { url = value; } 
        } 
        private string urlparms; 
	
相关新闻>>
- 发表评论
- 
				
- 最新评论 进入详细评论页>>



