仅在网格中的第一个行上使用Requirefield验证程序. [英] Aplly Requirefield Validator on only Firtst Row in Grid.

查看:80
本文介绍了仅在网格中的第一个行上使用Requirefield验证程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在制作一个Web应用程序,因为有一种形式可以动态组成Grid.我也将行代码放在后面.

我应用了Requirefield验证器,但我希望它仅适用于网格的第一行.如果单击添加新行"按钮,但未在文本框中输入任何值并提交,则仅应插入第一行数据.

那么,我该如何实现?

请帮帮我..........

谢谢和问候,,,,
Mitesh

Dear All,

I am Making a web application in that there is a one form which consist the Grid dynamically. Also i set the Row code behind.

I apply the Requirefield validator but i want to that it only apply in the first row of the grid. if it click the button "add new row" and not enter any value in the textbox and submit then only first row data should be inserted.

So, how this can i achieve ?

Please help me..........

Thanks and Regards,,,,,
Mitesh

推荐答案


使用ValidatioGroup.

请看一下此链接
http://www.codedigest.com/Articles/ASPNET/26_Validation_group_in_ASPNet_20.aspx [ ^ ]

希望对您有帮助.
Hi
Hi Use the ValidatioGroup.

please have a look on this link
http://www.codedigest.com/Articles/ASPNET/26_Validation_group_in_ASPNet_20.aspx[^]

Hope that will help you.


这篇关于仅在网格中的第一个行上使用Requirefield验证程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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