更改 AsyncFileUpload 控件上的按钮文本
是否可以将 Ajax 控件工具包的 AsyncFileUpload 控件上的按钮文本从“选择文件”(现代风格)更改为其他内容?它应该是一个简单的东西,比如按钮上的文本属性,但我找不到任何属性。还可以为按钮应用任何其他自定义样式吗?
is it possible to change the button text on the Ajax control toolkit's AsyncFileUpload control from "Select File" (modern style) to something else? it should be a simple thing like Text property on Button, but I can't find any property for this. also is it possible to apply any other custom styles for the button?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(2)
下载 Ajax Toolkit 源代码并在其中进行样式调整。重新编译项目并使用新的 DLL。这些控件往往将样式嵌入为 Web 资源,这会覆盖您可能尝试应用的 CSS。
Download the Ajax Toolkit source code and make the styling adjustments there. Recompile the project and use the new DLL. The controls tend to have styling embedded as web resources, which override the CSS you may try to apply.
还有另一种方式
可以呈现类似这样的内容
,您总是可以更改 css 来更改这样的任何样式:
这有效。
there is another one way
these renders something like this
and you always may change th css to change any syling like this:
this works.