America/US Samples
Europe Samples
Asia Samples

Gaia Ajax Button in Repeater

This sample shows dynamic creation of Gaia Buttons in a repeater


Markup (ASPX/.aspx)

   1:   
   2:      <gaia:DropDownList ID="ddl" runat="server" OnSelectedIndexChanged="ddl_OnSelectedIndexChanged"
   3:          AutoPostBack="True">
   4:          <asp:ListItem>1</asp:ListItem>
   5:          <asp:ListItem Selected="True">10</asp:ListItem>
   6:          <asp:ListItem>25</asp:ListItem>
   7:          <asp:ListItem>50</asp:ListItem>
   8:          <asp:ListItem>100</asp:ListItem>
   9:      </gaia:DropDownList>
  10:      <gaia:Label runat="server" ID="lblMsg" />
  11:      <gaia:Panel runat="server" ID="pnl">
  12:          <asp:Repeater ID="rep" runat="server" OnItemCommand="rep_OnItemCommand">
  13:              <ItemTemplate>
  14:                  <gaia:Button runat="server" Text='<%# Eval("Name") %>' CommandArgument='<%# Eval("Name")%>' />
  15:              </ItemTemplate>
  16:          </asp:Repeater>
  17:      </gaia:Panel>
  18: