CS代码是
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string region = Request.QueryString["region"];
ViewState["region"] = region;
int totalOrders = CatalogDataBase.GetOrder("P_GetOrderNumber3",region);
AspNetPager1.RecordCount = totalOrders;
bindData(region);
}
} void bindData(string region)
{
DataList1.DataSource = DataBase.ExecuteReader(CommandType.StoredProcedure, "P_GetPagedOrdersQiye",
new SqlParameter("@startIndex", AspNetPager1.StartRecordIndex),
new SqlParameter("@endIndex", AspNetPager1.EndRecordIndex),
new SqlParameter("@region", region)
);
DataList1.DataBind(); }
protected void AspNetPager1_PageChanged(object src, EventArgs e)
{
string region = ViewState["region"].ToString();
bindData(region);
}
为什么在IE6中会没有数据?
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string region = Request.QueryString["region"];
ViewState["region"] = region;
int totalOrders = CatalogDataBase.GetOrder("P_GetOrderNumber3",region);
AspNetPager1.RecordCount = totalOrders;
bindData(region);
}
} void bindData(string region)
{
DataList1.DataSource = DataBase.ExecuteReader(CommandType.StoredProcedure, "P_GetPagedOrdersQiye",
new SqlParameter("@startIndex", AspNetPager1.StartRecordIndex),
new SqlParameter("@endIndex", AspNetPager1.EndRecordIndex),
new SqlParameter("@region", region)
);
DataList1.DataBind(); }
protected void AspNetPager1_PageChanged(object src, EventArgs e)
{
string region = ViewState["region"].ToString();
bindData(region);
}
为什么在IE6中会没有数据?
解决方案 »
- asp.net 关于MVC思想
- C#多维数组,
- Order附近有语法错误
- 用javascript写个函数触发button的click事件?
- 关于DataGrid用hyperlinkcolumn列传递两个参数的问题
- 数据库邮件日志的问题
- 绝对有趣,绝对有意义的问题:在WebForm中动态加载WinFrom(用户控件)并传递参数
- !asp.net!菜鸟[疑问2]web开发的前台设计与后台设计到底指的是什么?
- 连接sqlexpress后出错
- 请问怎样在datagrid的HeaderTemplate中加入如下?
- 水晶报表查找与分组功能
- 做NET开发工作三四年了,感觉对NET理解还是不深入,想买书学习一下儿,有什么好书推荐?
try remove height:100%