G
Guest
Hi,
Maybe is a simple question but I found difficult to find the answer.
Context:
I am creating a site where designers ONLY touch the ASPX page and I.S. touch
the code behind.
Task:
I have a simple page that list a number of offers based on info from the
system (no dabatase, no bound objects please)
Problem:
In old ASP this task it was quite simple, just create the layout once and
then you repeat it using a <% for .... %>. This gives the designer the
ability to change the entry and it will be repeated several time:
Example Old ASP:
<% for (int i = 0; i < Total; i++) { %>
<TR>
<TD>
Here goes my entry where you can design me!, number <%= i %>
</TD>
</TR>
This is easy and great, now, how can I do this on ASPNET? If I use ASPNET
tags it does not allow me to use code blocks, also, I though about creating a
usercontrol with the entry design and then dynamically addedd to a
table....mmmm... it doesn't work cause I need to register the usercontrol but
it can be 10, or event 20 times plotted on the page, cause I don't know the
amount of usercontrols until I process the page. (this solution works great
in a windows applicaiton but it seems hard stuff for ASPNET)
Hope this makes sense, is a very simple thing to do but is hard to find the
answer.
Thansk in advance
Maybe is a simple question but I found difficult to find the answer.
Context:
I am creating a site where designers ONLY touch the ASPX page and I.S. touch
the code behind.
Task:
I have a simple page that list a number of offers based on info from the
system (no dabatase, no bound objects please)
Problem:
In old ASP this task it was quite simple, just create the layout once and
then you repeat it using a <% for .... %>. This gives the designer the
ability to change the entry and it will be repeated several time:
Example Old ASP:
<% for (int i = 0; i < Total; i++) { %>
<TR>
<TD>
Here goes my entry where you can design me!, number <%= i %>
</TD>
</TR>
This is easy and great, now, how can I do this on ASPNET? If I use ASPNET
tags it does not allow me to use code blocks, also, I though about creating a
usercontrol with the entry design and then dynamically addedd to a
table....mmmm... it doesn't work cause I need to register the usercontrol but
it can be 10, or event 20 times plotted on the page, cause I don't know the
amount of usercontrols until I process the page. (this solution works great
in a windows applicaiton but it seems hard stuff for ASPNET)
Hope this makes sense, is a very simple thing to do but is hard to find the
answer.
Thansk in advance