button

Y

yysiow

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top