将数据更新为来自gridview的文本框 [英] Updating data into textbox that comes from gridview
本文介绍了将数据更新为来自gridview的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已从Gridview发送数据,并且数据已绑定到文本框到另一个Web表单。我想在textbox中更新那个数据。但是我失败了PLZ帮我。
I Have Sent Data from Gridview amd that data is bind to textboxs into another web form.And I Want To Update that Data which in textbox.But I m Failed plz Help Me.
推荐答案
嗨...
使用网格视图的行命令事件。在那个你可以找到你当时选择的记录你可以重定向到新页面并在文本框中显示日期
Hi...
Use the Row Command event of grid view. In that u can find the records what you are selected on that time u can redirect to new page and show the date in text boxes
你好,
你想要使用会话..
例如:
string s = dt.Rows [0] [gridview特定行/列名称]。ToString();
session [你的会话名称] = s.tostring ();
然后在另一个网络表格中使用同一个会话,
textbox1.text = session [ 你的会话名称] .tostring();
hello ,
you suppose to use sessions ..
for ex:
string s=dt.Rows[0]["gridview particular row/coloumn name"].ToString();
session["your session name"]= s.tostring();
then use this same session in another webform,
textbox1.text=session["your session name"].tostring();
这篇关于将数据更新为来自gridview的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文