学习petshop,在Category.aspx.cs 卡住了:.....
using PetShop.Components;
......
private void BindPagedData() {
if (Request.QueryString["requestedPage"] != null) {
//System.Int32.Parse 将字符串转换成整数
currentPage = System.Int32.Parse(Request.QueryString["requestedPage"]);
pageCount = System.Int32.Parse(Request.QueryString["pageCount"]);
}
else
currentPage = 1;////////////////////////////////////////////////////
Components.Product product = new Components.Product();
ProductResults[] results = product.GetList(lblPage.Text, currentPage, pageSize, ref numResults);
//在这里不明白:第一,PetShop.Components的代码看不到;
//第二:product.GetList 是什么,在存储过程没有发现这个名字。
/////////////////////////////////////////////////// list.DataSource = results;
list.DataBind();
......有人明白吗,可以告诉我吗,小弟万分感激!
using PetShop.Components;
......
private void BindPagedData() {
if (Request.QueryString["requestedPage"] != null) {
//System.Int32.Parse 将字符串转换成整数
currentPage = System.Int32.Parse(Request.QueryString["requestedPage"]);
pageCount = System.Int32.Parse(Request.QueryString["pageCount"]);
}
else
currentPage = 1;////////////////////////////////////////////////////
Components.Product product = new Components.Product();
ProductResults[] results = product.GetList(lblPage.Text, currentPage, pageSize, ref numResults);
//在这里不明白:第一,PetShop.Components的代码看不到;
//第二:product.GetList 是什么,在存储过程没有发现这个名字。
/////////////////////////////////////////////////// list.DataSource = results;
list.DataBind();
......有人明白吗,可以告诉我吗,小弟万分感激!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货