惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
GbyAI
GbyAI
C
Check Point Blog
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
Jina AI
Jina AI
博客园 - 【当耐特】
U
Unit 42
月光博客
月光博客
腾讯CDC
Y
Y Combinator Blog
小众软件
小众软件
博客园_首页
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
T
Tailwind CSS Blog

博客园 - Jason.Yi

远程机器上无法用Assembly.Load(path).CreateInstance(ClassName)? - Jason.Yi - 博客园 vs2005代码区出现问题 吉他自录之《回忆组曲》 吉他自录之《爱的罗曼史》 求助:Vs2005 asp.net development server未能开始侦听端口 为什么我的Cookie只能更新一个键值? 对Graphics.DrawImageUnscaledAndClipped的疑虑 哪些原因可能导致SQL操作操时呢? 二个算法题,大家有兴趣来看看 关于博客园的Calendar 费解的.net2.0中的ObjectDataSource控件 FormView在什么情况下自动生成模板项? 生成随机的颜色值 错误:已在多处定义 为什么本地sqlservr.exe进程占用内存如此之大? 这样的页面该如何实现? 简单的生成登录验证码的程序 连接SQL Server2005出错 能在web.config里做这样的配置吗?
遇到一个很奇怪的问题
Jason.Yi · 2006-01-10 · via 博客园 - Jason.Yi

演示地址:
http://www.lemongtree.com/beta/
该页面上的栏目导航,分别传递不同的classid,来显示不同分类的文档,现在不管点什么分类,文档都是一样的,不解中.
index.aspx.cs

private void Page_Load(object sender, System.EventArgs e)
        
{
            
// 在此处放置用户代码以初始化页面
            
//            if(!Page.IsPostBack)
//            {
                 classid= System.Web.HttpContext.Current.Request.QueryString["classid"];
                
if(classid!=null&&LemongTree.BLL.Function.isNumeric(classid))
                
{
                    
this.Pager.RecordCount = docBLL.GetDocCount(Convert.ToInt16(classid));
                    
this.FillData("CateGoryID="+classid,Pager.PageSize*(Pager.CurrentPageIndex-1),Pager.PageSize);
                }

                
else
                
{
                    
this.Pager.RecordCount = docBLL.GetDocCount(0);
                    
this.FillData("",Pager.PageSize*(Pager.CurrentPageIndex-1),Pager.PageSize);
                }

                
//            }
        }

        
private void FillData(string where,int min,int max)
        
{
            DataTable t 
= docBLL.getDocList(where,min,max).Tables[0];
            
this.Repeater1.DataSource = t;
            
this.Repeater1.DataBind();
            
this.Pager.CustomInfoText="共有:" + Pager.RecordCount.ToString() + "条记录,每页显示记录"+Pager.PageSize+"条,";
            Pager.CustomInfoText
+= "当前页次" + Pager.CurrentPageIndex.ToString() + "/"+Pager.PageCount.ToString()+"";
        }

单步调式时,classid的值的确是传入了,为什么没有实现所需的效果?