Maintain Scroll Position of EVERY Element on PostBacks(en.hasheminezhad.com)

submitted by hasheminezhadhasheminezhad(5) 2 years, 9 months ago

On of the nice little features in ASP.NET 2 is a page property called 'MaintainScrollPositionOnPostback' which does what its name suggests in a way that just can't get any easier! But the problem here is that, there may be other scroll bars in page (other than main scroll of the window) which there's no simple way to maintain their positions on PostBacks. Here's a really simple solution for this problem.

add a comment |category: |Views: 68

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story