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)");
}

No comments: