[MonoDevelop] ASP.net repeater template

Michael Hutchinson m.j.hutchinson at gmail.com
Tue Jan 31 18:31:48 UTC 2012


On 28 January 2012 02:11, Kim Rasmussen <kimr1508 at gmail.com> wrote:
>>> <footertemplate>
>>>     <table>
>>> </footertemplate>
>>
>> Shouldn't this be</table>?
>
> True, typing mistake in my original message.
>
>> What exactly is giving you the error?
>
> The full error message is a message bubble on the aspx page saying:
> "Parser failed with error Closing tag 'HeaderTemplate' does not match
> opening 'table'. Codebehind member for this file will not be added."
>
> So the parser should also match the FooterTemplate when validating the
> HeaderTemplate before returning an error.

Ah, *that* parser.

There are three ASP.NET parsers involved:
1) the one that MD uses for code completion, which is very robust but
may not be completely accurate
2) the one that MD uses for finding members for Codebehind. This is an
old forked copy of (3)
3) the Mono ASP.NET parser that gets used when you actually run the
app. It used to have issues like this since it tried to match all
tags, even ones inside server tag children, which is why (2) has this
problem. I think it has been fixed.

To fix this, we'd need to replace (2). I would suggest replacing it
with (1) or a fresh copy of (3).

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list