<asp:DataPager ID="DataPager" PagedControlID="listView" PageSize="16" runat="server">
<Fields>
<asp:TemplatePagerField>
<PagerTemplate>
<strong>共<b><%# Container.TotalRowCount %></b>条信息</strong>
</PagerTemplate>
</asp:TemplatePagerField>
<asp:NextPreviousPagerField FirstPageText="首页" ShowFirstPageButton="True" ShowNextPageButton="False"
ShowPreviousPageButton="False" LastPageText="尾页" />
<asp:NextPreviousPagerField PreviousPageText="上一页" ShowNextPageButton="False" />
<asp:NextPreviousPagerField NextPageText="下一页" ShowPreviousPageButton="False" />
<asp:NextPreviousPagerField LastPageText="尾页" ShowLastPageButton="True" ShowNextPageButton="False"
ShowPreviousPageButton="False" FirstPageText="首页" />
<asp:TemplatePagerField>
<PagerTemplate>
<strong>页次:<b><%# Container.TotalRowCount>0 ? (Container.StartRowIndex / Container.PageSize) + 1 : 0 %></b>/<%# Math.Ceiling ((double)Container.TotalRowCount / Container.PageSize) %>页</strong>
</PagerTemplate>
</asp:TemplatePagerField>
</Fields>
</asp:DataPager>
后置代码:
protected void Page_PreRender(object sender, EventArgs e)
{
int id = int.Parse(Request["id"]);
IList<A_newsList> newsList = BLL.NewsList_BLL.newsListForMenu(id);
foreach (var item in newsList)
{ }
listView.DataSource = newsList;
listView.DataBind();
}但是 IE 6 7 8 出现重影问题页面代码: <span id="ctl00_boyCont_DataPager">
<strong>共<b>0</b>条信息</strong>
<a disabled="disabled">首页</a> <a disabled="disabled">上一页</a> <a disabled="disabled">下一页</a> <a disabled="disabled">尾页</a>
<strong>页次:<b>0</b>/0页</strong>
</span>
</div>有没有高手 帮我解决一下这个问题!!
<Fields>
<asp:TemplatePagerField>
<PagerTemplate>
<strong>共<b><%# Container.TotalRowCount %></b>条信息</strong>
</PagerTemplate>
</asp:TemplatePagerField>
<asp:NextPreviousPagerField FirstPageText="首页" ShowFirstPageButton="True" ShowNextPageButton="False"
ShowPreviousPageButton="False" LastPageText="尾页" />
<asp:NextPreviousPagerField PreviousPageText="上一页" ShowNextPageButton="False" />
<asp:NextPreviousPagerField NextPageText="下一页" ShowPreviousPageButton="False" />
<asp:NextPreviousPagerField LastPageText="尾页" ShowLastPageButton="True" ShowNextPageButton="False"
ShowPreviousPageButton="False" FirstPageText="首页" />
<asp:TemplatePagerField>
<PagerTemplate>
<strong>页次:<b><%# Container.TotalRowCount>0 ? (Container.StartRowIndex / Container.PageSize) + 1 : 0 %></b>/<%# Math.Ceiling ((double)Container.TotalRowCount / Container.PageSize) %>页</strong>
</PagerTemplate>
</asp:TemplatePagerField>
</Fields>
</asp:DataPager>
后置代码:
protected void Page_PreRender(object sender, EventArgs e)
{
int id = int.Parse(Request["id"]);
IList<A_newsList> newsList = BLL.NewsList_BLL.newsListForMenu(id);
foreach (var item in newsList)
{ }
listView.DataSource = newsList;
listView.DataBind();
}但是 IE 6 7 8 出现重影问题页面代码: <span id="ctl00_boyCont_DataPager">
<strong>共<b>0</b>条信息</strong>
<a disabled="disabled">首页</a> <a disabled="disabled">上一页</a> <a disabled="disabled">下一页</a> <a disabled="disabled">尾页</a>
<strong>页次:<b>0</b>/0页</strong>
</span>
</div>有没有高手 帮我解决一下这个问题!!
被人电脑上 也是重影
这个 好像跟<a disabled="disabled"> 这个属性有关 但是 我不知道 怎么会出这个