Connecting Tech Pros Worldwide Help | Site Map

button

yysiow
Guest
 
Posts: n/a
#1: Nov 17 '05
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?


Closed Thread