Resharper parsing of nested ASP.NET controls not working?

There's another instance where Resharper isn't picking up the definition of
a control, and that seems to be when there's a nested control, such as a
repeater. Here's the code:

Messages:

  • ]]>

    The "id=Messages" is properly color coded and recognized in the codebehind
    file.

    The id="MessagesRepeater" is not colorcoded or recognized in the codebehind
    file. References to "MessagesRepeater" are shown in red with a cannot
    resolve symbol error. But of course the code compiles and runs fine.

    I'm assuming the problem has to do with the nested nature of the control,
    and not the capitalization of "ID=", becuase I changed the capitalization
    and the "MessagesRepeater" identifier was still not recognized, and those
    tags should be case-insensitive anyway.



    4 comments
    Comment actions Permalink

    Hi Paul,

    I think this is correct and even vs.net will not pick up that one
    because it's not a real control. Let's say you have 5 items -> 5
    usermessage labels. Who are you talking to if you set usermessage.text
    in the codebehind

    Ward

    Paul Bradshaw wrote:

    There's another instance where Resharper isn't picking up the definition of
    a control, and that seems to be when there's a nested control, such as a
    repeater. Here's the code:

    <asp:Panel id="Messages" CssClass="iMISUserMessage" Runat="server"
    Visible="False">
    <asp:Repeater ID="MessagesRepeater" Runat="server">
    <HeaderTemplate>
    Messages:
    <ul>
    </HeaderTemplate>
    <ItemTemplate>
    <li>
    <asp:Label id="UserMessage" runat="server"></asp:Label>
    </li>
    </ItemTemplate>
    <FooterTemplate>
    </ul>
    </FooterTemplate>
    </asp:Repeater>
    </asp:Panel>

    The "id=Messages" is properly color coded and recognized in the codebehind
    file.

    The id="MessagesRepeater" is not colorcoded or recognized in the codebehind
    file. References to "MessagesRepeater" are shown in red with a cannot
    resolve symbol error. But of course the code compiles and runs fine.

    I'm assuming the problem has to do with the nested nature of the control,
    and not the capitalization of "ID=", becuase I changed the capitalization
    and the "MessagesRepeater" identifier was still not recognized, and those
    tags should be case-insensitive anyway.


    0
    Comment actions Permalink

    It was a problem with asp:panel. I've fixed it in build 221.
    BTW Have You posted this into tracker?

    --
    Sergey V. Coox
    JetBrains, Inc
    http://www.jetbrains.com
    "Develop with pleasure!"


    0
    Comment actions Permalink

    No, I posted it here first to get comment before posting it to the tracker.
    If you've already fixed the problem, then I won't bother with the tracker
    entry. Thanks!


    "Sergey V. Coox (JetBrains)" <qx@intellij.com> wrote in message
    news:dujnt8$v2m$1@is.intellij.net...

    It was a problem with asp:panel. I've fixed it in build 221.
    BTW Have You posted this into tracker?

    >

    --
    Sergey V. Coox
    JetBrains, Inc
    http://www.jetbrains.com
    "Develop with pleasure!"



    0
    Comment actions Permalink

    I've verified this is now working correctly in build 221. Thanks!

    "Sergey V. Coox (JetBrains)" <qx@intellij.com> wrote in message
    news:dujnt8$v2m$1@is.intellij.net...

    It was a problem with asp:panel. I've fixed it in build 221.
    BTW Have You posted this into tracker?

    >

    --
    Sergey V. Coox
    JetBrains, Inc
    http://www.jetbrains.com
    "Develop with pleasure!"



    0

    Please sign in to leave a comment.