在Asp.net中进行pageindexchanging时如何在gridview中保留以前的文本框值c# [英] how to keep previous textbox value in gridview while pageindexchanging in Asp.net c#

查看:95
本文介绍了在Asp.net中进行pageindexchanging时如何在gridview中保留以前的文本框值c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做asp.net web项目。在那我使用Gridview来查看数据库列。我有列名数量。因为我在文本框中输入了一些值。

我正在使用PageIndexChanging事件处理程序来更改gridview中的页面。但是当在gridview中将页面更改为1到2时,我希望保留以前的文本框文本值。

我使用ViewState来保持这个值,但是收到一些错误



请帮我解决这个错误。如何保持文本框文本值?



提前谢谢



关心

I am doing asp.net web project. In that i am using Gridview to view database column. I have column name "Quantity". In that i am entering some value in the textbox.
I am using PageIndexChanging event handler to change page in gridview. But while changing page in gridview by 1 to 2 i want to keep previous textbox text value as it is.
I am using ViewState to keep that value but getting some error

Please help me to solve this error. how to keep textbox text value?

Thank you in advance

Regards

推荐答案

您正在使用View状态,没关系,现在可以告诉我们有关显示错误的错误???



告诉你这样做的实际程序会非常有帮助。



并记住一件事,如果你发布任何问题或疑问,那么试着表达为尽可能简单(您的问题)使代码项目中的所有用户都能理解。
You are using View state, it's OK, now can you please tell us about the error showing their???

it'll be very helpful to tell you the actual procedure to do that.

and remember one thing, if you are posting any question or queries then try to express as simple as possible(your question) to make it understandable to all user in codeproject.


这篇关于在Asp.net中进行pageindexchanging时如何在gridview中保留以前的文本框值c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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