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

Forum statistics

Threads
474,417
Messages
2,571,573
Members
48,797
Latest member
shadowoftheunknown

Latest Threads

Top