Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<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>



I have link button within the gridview i want to pass select topic to another webpage textbox
Posted
Updated 4-Apr-15 0:44am
v2
Comments
[no name] 4-Apr-15 6:28am    
You can pass the value to another page using query string.i can't understand what you meaning "page withing textbox" ?.
thamil arasan 4-Apr-15 6:45am    
sorry spell mistake
[no name] 4-Apr-15 6:52am    
k,then you can use querystring method.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900