如何将验证应用于表单 [英] How Do I Apply Validation To Form

查看:97
本文介绍了如何将验证应用于表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个要求,我需要在datagridview中查找和替换多个页面 - 它工作正常。

问题是,在我找到一个特定的单词并替换它后,如果我单击查找和替换按钮,之前的查找和替换值就会消失。



如何处理它?<​​div class =h2_lin>解决方案

如果你需要保存查找和替换值你需要将相应的值存储到数据库中。我认为查找和替换值不存储在数据库中,这就是为什么你没有得到以前替换的值。如果您不想保存到数据库,那么您需要在cookie中存储查找和替换值,并且每个帖子都需要替换cookie中所有值的值。


Hi,

I have a requirement where i need to do Find and Replace in datagridview for multiple pages - It's working fine.
The problem is, after i Find a specific word and replace it and again if i click on Find and Replace button, the earlier find and replace values are gone.

How to work on it?

解决方案

If you need to save the find and replace values you need to store the corresponding values to database. I think find and replace values are not storing in the database that's why you are not getting previous replaced values. If you don't want to save to database then you need to store the find and replace values in cookie and each post back you need to replace values of all the values in cookie.


这篇关于如何将验证应用于表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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