GridView ItemCommand中取某行某列的值方法,这里提供两个常用的:

一、用CommandArgument属性取值页面如下:

 <asp:TemplateColumn HeaderText="图片名称">
    <ItemTemplate>    
     <asp:LinkButton ID="btnDownload" runat="server" CommandName="Download" CommandArgument='<%# Eval("IMG_SAVE_NAME") %>' ><%# Eval("IMG_NAME")%></asp:LinkButton>

     <asp:TextBox  ID="Text1" runat="server"></asp:TextBox>
    </ItemTemplate>
   </asp:TemplateColumn>
前台代码

相关文章:

  • 2021-12-27
  • 2021-08-07
  • 2022-12-23
  • 2021-06-08
  • 2022-01-18
  • 2022-12-23
  • 2021-07-31
猜你喜欢
  • 2021-12-27
  • 2021-07-13
  • 2022-12-23
  • 2022-02-11
  • 2021-06-25
  • 2022-12-23
  • 2021-08-10
相关资源
相似解决方案