验证和回发问题 [英] Validation and Postback Problem

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

问题描述

我创建了一个网页,其中有两个asp:Panel,并且两个面板上都有保存按钮,分别说Save1和Save2.

我已经在面板上的两个文本框上使用了ASP Validation control进行验证:数字,比较.

发生了什么事,当我按Save1时,由于Panel2的空白字段而没有发布该页面.

因此,如何分别验证Panel1和Panel2.


感谢您的答复

在此先感谢

I have created one web page in I have Two asp:Panel and both the panel have save button each say Save1 and Save2.

And I have applied a ASP Validation control for validation on Textboxes of both the Panel Eg: Numeric,compare.

What is happening, when I am Pressing Save1, page is not posted because of the remaining empty field of Panel2.

So, how can I individually validate the Panel1 and Panel2.


Appreciate your reply

Thanks in advance

推荐答案

只需使用 ValidationGroup 隔离每组验证.

谢谢,
Imdadhusen
Just use ValidationGroup to segregate every set of validations.

Thanks,
Imdadhusen


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

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