盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

asp.net(C#)海量数据表高效率分页算法

时间:2024/11/23作者:未知来源:盾怪网教程人气:

[摘要]Int32.Parse(gotoPage.Text) <= 0) Response.Write("<script>alert('页码范围越界!')...
Int32.Parse(gotoPage.Text) <= 0)
     

Response.Write("<script>alert('页码范围越界!');location.href='WebForm8.aspx'</script>");
    else
    {
     int InputPage = Int32.Parse(gotoPage.Text.ToString()) - 1;//转换用户输入值保存在int型

InputPage变量中
     ViewState["PageIndex"] = InputPage;//写入InputPage值到ViewState["PageIndex"]中
     TDataBind();//调用数据绑定函数TDataBind()再次进行数据绑定运算
    }
   }
      //捕获由用户输入不正确数据类型时造成的异常
   catch(Exception exp)
   {
    Response.Write("<script>alert('"+exp.Message+"');location.href='WebForm8.aspx'</script>");
   }
  }
 }
}




关键词:asp.net(C#)海量数据表高效率分页算法




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版