开发者

Need to show image when validation summary control triggered

I have a Warni开发者_运维百科ng Image(gif). I want to show this image only when Validation Summary control triggered. Any way to display this Image.

Thanks


Need to show image when validation summary control triggered

Need to show image when validation summary control triggered

Need to show image when validation summary control triggered

Above example from.. below reference link

http://weblogs.asp.net/alnurismail/archive/2008/10/16/asp-net-a-validationsummary-with-some-style.aspx

Please, take a look to below articles.. for more information and examples...

http://sandblogaspnet.blogspot.com/2009/12/showing-image-when-validation-fails.html

http://aspnetresources.com/blog/pimpin_validation_summary_with_css


You can show an image through CssClass attribute but I'd suggest the jQuery plugin.

.TestClass
{
     background:url(warning.png) no-repeat ;
     padding:3px 10px 3px 10px;
}

Markup

<asp:RequiredFieldValidator 
    ID="RequiredFieldValidator1" 
    runat="server" 
    CssClass="TestClass"
    .....
/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜