O
oSup
Hi,
I would like to create list of handled buttons with variable label
within a code. Something like that:
....
<body>
<%
foreach (Information information in Informations) {
%>
<!-- here will be a logic depending on the information - for example
some conditions and different peices of code... that's a reason, why I
cannot use repeater -->
<asp:button runat="server" name="button1"
Text="<%=information.Name%>"/>
<%
}
%>
</body>
....
It of course doesn't work. But how to make this simple example
working?
Thank you!
osup
I would like to create list of handled buttons with variable label
within a code. Something like that:
....
<body>
<%
foreach (Information information in Informations) {
%>
<!-- here will be a logic depending on the information - for example
some conditions and different peices of code... that's a reason, why I
cannot use repeater -->
<asp:button runat="server" name="button1"
Text="<%=information.Name%>"/>
<%
}
%>
</body>
....
It of course doesn't work. But how to make this simple example
working?
Thank you!
osup