[英]How can i customize the ValidationSummary control?
how do i go about modifying the display of the validationSummary control in asp.net i want to modify it completely not just modify the color of the text etc.has anyone got any sample code etc ?? 我该如何去修改asp.net中validationSummary控件的显示,我想完全修改它,而不仅仅是修改文本的颜色等。有人有示例代码吗?
thanks Niall 谢谢尼尔
The validation summary can be easily customized with css. 验证摘要可以使用CSS轻松定制。 Just give it a CssClass. 只需给它一个CssClass。
Here is an article: 这是一篇文章:
http://weblogs.asp.net/alnurismail/archive/2008/10/16/asp-net-a-validationsummary-with-some-style.aspx http://weblogs.asp.net/alnurismail/archive/2008/10/16/asp-net-a-validationsummary-with-some-style.aspx
Or this: 或这个:
http://aspnetresources.com/blog/pimpin_validation_summary_with_css http://aspnetresources.com/blog/pimpin_validation_summary_with_css
There are lots of examples to be found. 有很多例子可以找到。
如果只想更改不带CSS的项目的视图,则可能对您有帮助: 显示模式属性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.