locked
dropdownlist postback RRS feed

  • Question

  • User-1947604767 posted

    hopefully this is simple enough,

    I want to return to the same point on the page after a postback of a dropdownlist

    Thursday, July 28, 2011 10:27 AM

Answers

  • User1224194097 posted

    set <pages MaintainScrollPositionOnPostBack="true" /> in web.config to apply this for all pages

    or <%@ Page MaintainScrollPositionOnPostback="true" %> set the page attribute in the page that you are facing the scrollbar issue.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 28, 2011 10:33 AM

All replies

  • User1224194097 posted

    set <pages MaintainScrollPositionOnPostBack="true" /> in web.config to apply this for all pages

    or <%@ Page MaintainScrollPositionOnPostback="true" %> set the page attribute in the page that you are facing the scrollbar issue.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 28, 2011 10:33 AM
  • User-1947604767 posted

    Okay, this looks good, where abouts in the web.config?

    Thursday, July 28, 2011 10:40 AM
  • User-1947604767 posted

    okay that working with IE but not firefox?

    I popped the code into the page facing the scrollbar issue.

    I've cleared by brouser history/data on firefox, still same behaviour

    Thursday, July 28, 2011 10:59 AM
  • User1356753368 posted

    I think you should you update panel. this will solve your problem.

    Thursday, July 28, 2011 1:30 PM