c# - Maintaining Scroll Position and Selected Control on Postback -
c# - Maintaining Scroll Position and Selected Control on Postback -
back web based issue.
when command issues postback server page refreshes (fine). page scrolls top , loses command selected. if it's relevent after postback depending on changes have happened controls made visible or made hidden. focus lost , current scroll resets if nil changed on page visibility wise. info inputted in text fields kept , radiobutton/checkbox selections. problem tabbing reset index 0 , pages scroll sent top of page.
i using .net 4.0
i have tried adding maintainscrollpositiononpostback="true" both on asp page , in web.config no avail. have tried , without ajax updatepanel using conditional updating triggering off when textboxes text changed or radiobuttons changed , postback still causes scroll , index loss.
any ides fantastic. ta!
first of all, maintainscrollpositiononpostback="true"
has known bug in asp.net 2.0, see here.
also, right syntax maintainscrollpositiononpostback
. (lowercase m)
i used maintainscrollpositiononpostback
have many problems in ie, utilize asp.net ajax command toolkit updatepanel, solves problem (the page don't scroll top) , save bandwidth.
edit:
i think understand problem, it's mantain focus on element, can done using javascripts workarounds, se here.
hope helps.
c# asp.net postback
Comments
Post a Comment