ASP.NET:我可以以某种方式更改NumericPagerField呈现的HTML吗? [英] ASP.NET: Can I somehow change the HTML rendered by NumericPagerField?

查看:68
本文介绍了ASP.NET:我可以以某种方式更改NumericPagerField呈现的HTML吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更改NumericPagerField呈现的HTML.由于NumericPagerField不能从System.Web.UI.Control继承,因此我不能使用控件适配器.

I need to change the HTML rendered by the NumericPagerField. I can't use Control Adapters since NumericPagerField doesn't inherit from System.Web.UI.Control.

有什么想法吗?

推荐答案

覆盖 CreateDataPagers 方法.这是用于创建呈现寻呼机的实际控件的方法.我认为您不能更改容器,但是无论如何它应该只是一个DIV.

Override the CreateDataPagers method. This is the method used to create the actual controls that render the pager. I don't think you can change the container, but it should just be a DIV anyway.

这篇关于ASP.NET:我可以以某种方式更改NumericPagerField呈现的HTML吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆