I have a listview in my Asp.net 3.5 web page. The list view is tied to a datapager control. I also have image buttons in the listview rows that can submit the page and do some backend processing. Here is the issue: I want to enable the MaintainScrollPositionOnPostback for the page, but I don't want it to be active (or true) when the datapager pager links are clicked. I only want it to be active when the image buttons are clicked. Is this possible?
I tried to control the property by setting this.MaintainScrollPositionOnPostBack = false in my listview pageproperties change event. And then to set it to true in my image button click events. But once it is turned off (by using the data pager links), then the image button event does not seem to turn it on, even though the listview page properties event does not fire.
Is it really possible to control scrolllock page property through .cs code?