详细信息视图和网格视图验证 [英] Details View and Grid View Validation

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

问题描述

我是初学者,我不知道如何解决此问题,请帮助我.
我在验证中遇到问题,当我使用详细信息视图进行插入验证时可以正常工作,但是在同一数据源上,我使用网格视图来编辑和删除该数据,但是当我要编辑该先前的数据时,它显示验证错误:您必须在详细信息视图中输入一些数据. ...

I am beginner I don''t know how to solve this problem so please help me.
I am facing problem in validation, when I used details view for insertion validation is work properly but on the same data source I used grid view for edit and delete that data but when I am going to edit that previous data it show that validation error : you must enter some data in details view. ...

推荐答案

您是否正在使用网格进行内联编辑?

如果是这样,则在表单中编辑该行?还是表格中的整个网格?还是仅表单内部有详细视图?当您开始编辑一行时,您会回发整个页面还是使用Ajax来仅更改选定的行.

对于上述每种情况,您必须采取不同的行动.
请提供有关页面/表单连接方式的更多详细信息.
Are you using the grid for a inline edit?

If that is true the line being edited inside a form? Or is the whole grid inside the form? Or is only the detail view inside the form? When you start editing a line do you post back the entire page or use Ajax to change just the selected line.

For each case above you must act differently.
Please give more details about how your pages/forms are wired.


这篇关于详细信息视图和网格视图验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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