如题
解决方案 »
- 如何设置用户session一直保持,如何退出??
- 无法单步跟踪调试 Your step-into request resulted in an automatic step-over of a property
- 求教 LINQ TO SQL singel 和 first用法???
- 初学asp.net mvc的问题
- 为了防止数据库中记录为空,这种model写法是否好?
- vs2008的项目被签出后无法修改
- ASP.net与ASP Session传值问题
- 求助 !@¥#@!
- 大拿请进:请问reflector
- asp.net中能对language=vb的脚本关键字等用不同的颜色区别,对C#写的脚本能不能实现?
- 急救:如何在邦定时去掉字段的空格
- 水晶报表汇总字段问题,详见内容
{
Controls.Clear();
for(int i=pageIndex;i<(pageIndex+10);i++)
{
if(i<Math.Ceiling((double)recordCount/pageSize))
{
LinkButton lb=new LinkButton();
lb.ID="page"+i.ToString();
lb.Text=i.ToString();
lb.CommandArgument=i.ToString();
lb.Visible=true;
lb.Command += new CommandEventHandler(pageIndexChange);
Controls.Add(lb);
Controls.Add(new LiteralControl(" "));
}
}
TextBox tb=new TextBox();
tb.Width=50;
tb.Text=pageIndex.ToString();
tb.BorderWidth=1;
tb.ID="currentPage";
Controls.Add(tb);
TextBox tbt=new TextBox();
tbt.Width=50;
tbt.BorderWidth=1;
tbt.ReadOnly=true;
tbt.Text=pageCount.ToString();
Controls.Add(tbt);
Button btn=new Button();
btn.Text="转到";
btn.ID="GoTo";
btn.BorderWidth=1;
btn.Click +=new EventHandler(GoTo_Click);
Controls.Add(btn);
}
protected void GoTo_Click(Object sender,EventArgs e)
{
}
protected void pageIndexChange(Object sender,CommandEventArgs e)
{
}
还有:怎样在pageIndexChange里得到文本框currentPage中的Text?