Incorrect error marking in asp.net / repeater
Hi - when doing the following in the item template of a repeater control:
<%# ToSpecialFormatedString((MyClass)Container.DataItem) %>
]]>
R# marks the "Container.DataItem" property as unavailable, but the compiler
accepts it and the asp.net page works.
I use VS2005, R# 2.5, ASP.NET 2.0
Cheers
Thomas
Please sign in to leave a comment.
Thomas,
I cannot reproduce the issue. Could You send us the whole file code, pls.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Thomas Koch" <thomask_ts@yahoo.dk> wrote in message
news:afdf3526c9428c8ff24b01000d5@news.jetbrains.com...
>
>
>
>
>
I am unable to reproduce the problem in a standalone web form. :-/
The problem seems to be persistent in this one web form. The form in question
contains quite a lot of tags, including references to six user controls,
so I do not know if it becomes confused or what. Sending the entire code
file would become a little convoluted as it would entail sending quite a lot.
Here is what I've found out so far:
1) The intellisense displayed at: <%# Container.| %> is for the Page class
instead of the RepeaterItem.
2) The tooltip shown when hovering the mouse over the Container text is correct
however!?
I guess that if its that hard to reproduce its probably not worth investigating
further. If I figure it out I'll report it.
Thomas
Thomas,
Ok, thanks in advance.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"