[MonoDevelop] ASP.net repeater template
kimr1508 at gmail.com
Fri Jan 27 17:45:52 UTC 2012
> Fixed? The table tag goes outside the repeat in the MS version as
> well, unless it is a nested table in which case it would normally go
> in the item template section. Of course I may not understand the way
> you are using it but what I understand to be standard usage is the
> table tags are outside the repeater because they are not to be repeated.
I believe the standard usage is putting the start and end table-tags in
the headertemplate and footertemplate. I do the same thing in Visual Studio.
They do it the same way on a page like this:
The reason for putting the start and end tags in the header and
footertemplates is. If nothing is going to be rendered in the table fx.
the user don't have anything in the shopping basket, you'll not get any
waste html on the page.
If you but the table tags outside of the repeater you'll end up with
<table></table> on the page, which looks kind of strange.
A solution is of course to put the table-tags inside a asp:placeholder,
which is set to visible=false, if nothing is going to be rendered in the
table, but that is extra work.
> On 1/27/2012 10:13 AM, Kim Rasmussen wrote:
>> When developing asp.net pages with Monodevelop a really annoying bug
>> is the validation of asp:repeater elements.
>> The example below is marked as an error by the compile validator:
>> <asp:repeater id="rpTest" runat="server">
>> So in order to make this html work, I have to move the table-tag
>> outside of the asp:repeater.
>> Is there a way to fix this? Or at least to turn off the compile
>> Best regards,
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Monodevelop-list