Dynamic generating ascx within <html>?

L

Lim siew Cheng

Hi,

Just a quick one.
<BODY>
<%

for (int i=0 ; i <4 ; i ++ )
{
%>
<Prefix:Test CustomProp="<%=i%>" CustomProp2="Yes" id="Test1"
runat="server" />
<%
}
%>
</BODY>

shows up as
<%=i%>
<%=i%> does not get evaluated.

Is there no way to pass in <%=i%> into Prefix:Test ascx ?


I saw some references

http://samples.gotdotnet.com/quicks...spplus/samples/webforms/pagelets/Pagelet7.src


adding ascx programmatically but I need to position the ascx within some
tables...is that possible ?

Thanks for any help!

Regards
LSc
 

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
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top