如何在显示数据后清除网格视图或标签? [英] How Do I Clear Grid View Or Labels After Display Data?

查看:85
本文介绍了如何在显示数据后清除网格视图或标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我的要求很简单页面有4个文本框和一个按钮一个Lable。

当我在文本框中输入数据并按下按钮时,所有数据都将存储在Gridview中的数据库和Dilplay中以及Lable中还显示数据已插入..

这里我的问题是在显示Gridview ..whn后我在文本框中输入新数据这个gridview和Lable msg将出现..我想在我进入第二时消失时间在文本框中输入数据...

我希望你理解

Here My Requirement is simple Page has 4 Textboxes and one Button one Lable.
When i enter Data in textboxes and Press Button all data will be stored in Database and Dilplay in Gridview and along with Lable also display "Data Inserted"..
Here My problem is after displaying Gridview..whn i enter new data in textboxes this gridview and Lable msg will be appear..i want to dissapear when i enter second time enter data in Textboxes...
I hope u understand

推荐答案

好的,所以在TextBox更改事件中,只需隐藏GridView 。您可以在JavaScript或jQuery中轻松完成此任务。
Okay, so on the TextBox change event, just hide the GridView. You can do this easily in JavaScript or jQuery.


这篇关于如何在显示数据后清除网格视图或标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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