.net+AjaxPro 分页出现 "请求在此上下文中不可用" 错误。
请知道的各路侠士帮忙!分不多,小弟先谢谢了!
请知道的各路侠士帮忙!分不多,小弟先谢谢了!
解决方案 »
- 两个Iframe之间传值
- 服务器上面的网站只能内网访问,外网访问不了,ping服务器也ping不通,可是外网可以访问服务器的远程桌面,这是什么问题呢?
- 我不是来找骂的哈.不要拍我。
- 类似于九博上的城市选择,怎样把所选的城市传到第一个页面
- 来者有分,请各位介绍些优秀的论坛(尤其是美好些的),对自己论坛不满意,欲改版!
- 浏览器路径传值问题。
- 高手赶快进来,InnerHtml的问题!!
- 请教1个建站文件存放问题,再请教一个判断登陆问题
- datagrid内容用超级连接
- 请教一个关于链接的问题
- 在部署时,为什么总有一个页面打包不进去...有谁碰到过这种情况啊...非常特别的急啊!!
- 东林寺网络升级,asp转net,阿弥陀佛~!
//判断是否存在数据记录
if (nRecCount > 0)
{
//确定数据记录要显示的页数
if (nRecCount % pagesize == 0)
nPageCount = nRecCount / pagesize;
else
nPageCount = nRecCount / pagesize + 1;
if (nPage < 1)
nPage = 1;
else if (nPage > nPageCount)
nPage = nPageCount; //确认当前页面的开始记录和终止记录
nStart = pagesize * (nPage - 1);
if (nRecCount >= pagesize * nPage)
nEnd = pagesize * nPage;
else
nEnd = nRecCount;
for (int i = nStart; i < nEnd; i++)
{
strList.Append("<ul>\n");
strList.Append("<li><a href=\"\">\n");
strList.Append("<img height=\"65\" width=\"65\" src='" + this.UserFilePath + ds.Tables[0].Rows[i]["SiteLogo"].ToString() +
"alt='"+ds.Tables[0].Rows[i]["SiteName"].ToString()+"'>\n");
strList.Append("</a>\n");
strList.Append("<p>\n");
strList.Append("<a href=\"\">\n");
strList.Append(ds.Tables[0].Rows[i]["SiteName"].ToString());
strList.Append(" </a>\n");
strList.Append("<br />" + ds.Tables[0].Rows[i]["UserCount"].ToString() + "个");
strList.Append("</p>\n");
strList.Append("</li>\n");
strList.Append("</ul>\n"); }
strList.Append("<div style='float:right;clear:both;'>共" + nPageCount.ToString() + "页 | ");
strList.Append("<a href=\"javascript:void(0);\" onclick=\"PageOnChange('1')\">首页</a> ");
strList.Append("<a href=\"javascript:void(0);\" onclick=\"PageOnChange('" + (nPage - 1).ToString() + "')\">上一页</a>"); for (int i = 1; i <= nPageCount; i++)
{
if (i == nPage)
strList.Append(" " + i.ToString() + " ");
else
strList.Append(" [<a href=\"javascript:void(0);\" onclick=\"PageOnChange('" + i.ToString() + "')\">" + i.ToString() + "</a>] ");
}
strList.Append("<a href=\"javascript:void(0);\" onclick=\"PageOnChange('" + (nPage + 1).ToString() + "')\">下一页</a> ");
strList.Append("<a href=\"javascript:void(0);\" onclick=\"PageOnChange('" + nPageCount.ToString() + "')\">尾页</a></div> ");
}
return strList.ToString();
public string GetGoalMemberList(int nPage)
{
return BindData(nPage);
}
function PageOnChange(nPage)
{
UareWeb.Goal.GoalScheduleList.GetGoalScheduleList(nPage,PageOnChange_callback);
}
function PageOnChange_callback(res)
{
if(res.value!="")
{
document.getElementById("div_ScheduleList").innerHTML = res.value;
}
}
</script>
htttp://cx888.myrice.com