0
其实我只想在Asp.NET的DataPager控件呈现的链接的末尾添加#lastTab
。格式DataPager链接
因为我喜欢NumericalField
如“1 2 3 ...”我不想搞乱默认实现。
有人可以帮我吗?
谢谢。
其实我只想在Asp.NET的DataPager控件呈现的链接的末尾添加#lastTab
。格式DataPager链接
因为我喜欢NumericalField
如“1 2 3 ...”我不想搞乱默认实现。
有人可以帮我吗?
谢谢。
好,
我不想诉诸jQuery and javascript
但他们最后的机会。
下面是代码:
$("#ctl00_HomeMasterContentPlaceHolder_printReviews_printReviewPager a").each(function (index, value) {
if ($(this).attr("href") != "undefined")
$(this).attr("href", $(this).attr("href") + "#last");
});
他们解决一切最终。
谢谢。
有关其他选项,请参阅http://stackoverflow.com/questions/987386/customize-asp-net-datapager-generated-html。 – George 2011-08-31 01:20:19