Showing posts with label ASP.NET Repeater control. Show all posts
Showing posts with label ASP.NET Repeater control. Show all posts

Monday, July 27, 2009

Repeater Control scroll to top on post back

There is an issue in the repeater control reset on a post back.

here is my solution ..



// Hidden field to store the last scrolled posistion























// Make sure we register our script is excuted when scrolling event is fired on wrapped DIV

protected void Page_Init(object sender, EventArgs e)
{
this.divChatRepeaterContent.Attributes.Add("onscroll", "javascript:storeScrollValue(this)");
}