开发者

Unexpected end of file looking for </form> tag

i put a comment in my aspx page inside javascript tag which said

//add back to <form> tag

And I promptly got a .NET parser error

开发者_开发百科

Unexpected end of file looking for </form> tag.

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

It's very strange that it considered a js comment as a tag... Any ideas why?


Don't use < or >. Use XML entities instead:

//add back to &lt;form&gt; tag

As alternative, use the asp.net comment tag:

<!-- // comment here -->


It looks like thats an error with the .NET parser, you could try to remove the '<>' from the comment, or close the that in the same comment or in another comment. Waht abou the runat server tags ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜