搜索和编辑 [英] Search and Edit
本文介绍了搜索和编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我有一个城市的网络表单,其中有一个gridview,其中我正在显示城市表的数据,即CityName,CityShortName
当我正在搜索数据时,它显示搜索数据,但是当我单击编辑"按钮时,它不编辑搜索到的数据,而是编辑索引为1的数据,这有助于我如何编辑和删除搜索数据
我正在使用后面的编辑删除更新事件和代码
thnx
Hello
I have a webform of Cities where i have a gridview in which i m showing data of city table i.e CityName,CityShortName
when i m searching data its displaying the search data but when i click edit button its not editing the searched data its editing the data which is at index 1 plz help me how can i edit and delete search data
i m using edit delete update event and code behind
thnx
推荐答案
如果尚未完成检查,
1.确保已将CommandName="Edit"
应用于编辑按钮",
2.确保自动EditIndex
本身未设置为1,
3.确保已使用!IsPostBack
条件执行任务.
我可以弄清楚这些可能是您所缺少的东西,您可以使您的代码片段具有更深刻的理解.
如果有帮助,请 投票 和 接受答案 .
Check these if you haven''t done yet,
1. Make sure you have applyCommandName="Edit"
to Edit Button,
2. Make sure automaticallyEditIndex
not setting to 1 itself,
3. Make sure you have performed task with!IsPostBack
Condition.
I can figure out these might be the thing you missing, You could put your snippets to have deeper understanding.
Please vote and Accept Answer if it Helped.
这篇关于搜索和编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文