button

Discussion in 'ASP .Net' started by yysiow, Jul 11, 2003.

  1. yysiow

    yysiow Guest

    hi all,

    if i want to do a loop and auto create button.
    in asp.net then button can use array or setting index?

    ex:
    <%
    for(int i = 0; i <= 10 ; i ++)
    {
    %>
    <asp:Button id="btshutdown<%=i%>" runat="server" Text="Shutdown"
    Enabled="False"><asp:Button>
    <%
    }
    %>

    then have error...how can i do?
    yysiow, Jul 11, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Purvi T
    Replies:
    0
    Views:
    821
    Purvi T
    Oct 19, 2004
  2. Wes Weems
    Replies:
    1
    Views:
    471
    Natty Gur
    Jul 20, 2003
  3. Chris Lane
    Replies:
    4
    Views:
    11,201
    Chris Lane
    Nov 17, 2003
  4. jorge
    Replies:
    2
    Views:
    1,255
    jorge
    May 26, 2004
  5. Russell
    Replies:
    3
    Views:
    6,898
    Lau Lei Cheong
    Jun 24, 2004
Loading...

Share This Page