Silverligh t3中的验证 [英] Validation in Silverligh t3

查看:67
本文介绍了Silverligh t3中的验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2008和Silverlight3.在数据表单中,我想对保存按钮进行一些验证(例如,名称不能为空,年龄不能为< = 0).错误消息将显示在验证摘要中,并且文本框将标记为红色.

请帮帮我.

I am using VS2008 and Silverlight 3. In a data form, I want to put some validation (like name can''t be blank, age can''t be <= 0)against save button. Error message will be display in a validation summary and textbox will marked by red.

Please help me.

Thanks in advane.

推荐答案

这两个链接肯定可以帮助您-
http://msdn.microsoft.com/en-us/magazine/ee335695.aspx [ ^ ]
http://blog.thumnet.com/silverlight-3-validation-dataform-control/66 / [^ ]
These two links should surely help you out -
http://msdn.microsoft.com/en-us/magazine/ee335695.aspx[^]
http://blog.thumnet.com/silverlight-3-validation-dataform-control/66/[^]


这篇关于Silverligh t3中的验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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