如何将gridview选定行的值传递给texbox中的另一个页面... [英] How to pass the gridview selected row's value to another page within texbox...
本文介绍了如何将gridview选定行的值传递给texbox中的另一个页面...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="5"
AutoGenerateColumns="False" BackColor="White" BorderColor="White"
BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
DataKeyNames="PostDoubtID" DataSourceID="SqlDataSource1"
GridLines="None" Width="918px">
<Columns>
<asp:CommandField ShowDeleteButton="True" />
<asp:BoundField DataField="Topic" HeaderText="Topic" SortExpression="Topic" />
<asp:BoundField DataField="Subject" HeaderText="Subject"
SortExpression="Subject" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:TemplateField HeaderText="Doubts In Detail">
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Height="76px"
Text='<%# Bind("YourDoubt") %>' TextMode="MultiLine" Width="400px"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Reply">
<ItemTemplate>
<asp:LinkButton ID="LinkButton" runat="server"
PostBackUrl='<%# "~/Staff/Reply Doubts.aspx?id="+ Eval("Topic") %>' Text="Reply"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
我在gridview中有链接按钮我想将选择主题传递给另一个网页文本框
I have link button within the gridview i want to pass select topic to another webpage textbox
解决方案
查看这篇文章:
1)ASP.Net传递或将GridView行值发送到具有HyperLink的其他页面
2)传递gridview选定值到另一页
这篇关于如何将gridview选定行的值传递给texbox中的另一个页面...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文