locked
ImageButton or LinkButton in ListView inside UpdatePanel RRS feed

  • Question

  • I've got an updatePanel with

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
    

    Inside, there is a ListView, and each row of this listview has an ImageButton.
    When clicked, it collapses or extends all the child rows...

    This is working well, BUT my problem is that the scroll position of my page is not maintained.

    I've tried adding

    MaintainScrollPositionOnPostback = "True"
    

    in the header of my page, but it doesn't work (which doesn't surprise me since the page is not doing a postback, but a asynch postback).

    Do you know how I can solve my problem?

    I've also tried to add ClientIDMode="AutoID" but it didn't work.

    Does anyone have an idea?

    Thanks!

     

    • Moved by Min Zhu Wednesday, October 26, 2011 1:05 AM (From:.NET Base Class Library)
    Tuesday, October 25, 2011 8:43 AM

Answers