aspx highlighted error on variable Container

Resharper 2.0 marks the Container object as an error in an aspx page.

We often use the following code in the ItemTemplate of a Repeater.

<%# ((DataRowView) Container.DataItem)["Product"] %>

Resharper wants to add the following import
<%@ Import namespace="System.ComponentModel"%>
which is incorrect.

It would be nice if this wasn't marked as an error or if there was a way to configure the software to ignore it permanently.


1 comment
Comment actions Permalink


It would be nice, if You provide us with some more extended context (up to
the outer server control). And it's much more effective to post bug reports
into the tracker.

Sergey V. Coox
JetBrains, Inc
"Develop with pleasure!"


Please sign in to leave a comment.