1、前台设置参数:

 

//...

<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="80px">
                            
<ItemTemplate>
                                
<asp:Button ID="btnAllocateRole" Text="分配角色" runat="server" CommandName="AllocateRole" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserId")%>' BorderStyle="Groove"/>
                            
</ItemTemplate>
                            
</asp:TemplateField>

//...

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2021-07-25
  • 2021-09-01
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2022-02-20
  • 2021-05-19
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案