在验证摘要消息框中更改字体 [英] Change font in validation summary message box

查看:94
本文介绍了在验证摘要消息框中更改字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要在验证摘要"消息框中更改字体

Hi All,

I need to change font in Validation summary message box

<asp:ValidationSummary ID="uxValidationSummary" runat="server" ValidationGroup="Save"
                                                        ShowMessageBox="true" ShowSummary="false" HeaderText="You must enter a value in the following fields:" Font-Names="verdana" Font-Size="50"/>




在上面的代码中,我写了font-neme"verdana"和font-size ="50",但在消息框中不起作用.

我想显示字体为"verdana"且大小="25"的错误消息.

您能帮我解决以上问题吗?

在此先感谢您,




Here above my code i have write font-neme "verdana" and font-size="50" but it''s not working in message box.

i want to display error message with font "verdana" with size = "25".

can you please help me how to resloved above issue?

Thanks in advance,

推荐答案

您是否尝试过验证摘要"控件的"CssClass"属性?如果那没有帮助,那么您需要为此编写代码.

看看类似的讨论 [
Did you tried the ''CssClass'' attribute of the Validation Summary control? If that does not help then you need to code youself for that.

Have a look at similar discussion [^]here.


这篇关于在验证摘要消息框中更改字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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