public void ScrollToMyFavouriteControl(System.Web.UI.Control ctrl)
{
System.Text.StringBuilder script = new System.Text.StringBuilder();
string clientID = ctrl.ClientID;
script.Append("<script type='text/javascript'>");
script.Append("try {");
script.Append("document.getElementById('" + clientID + "').scrollIntoView(true);");
script.Append("document.getElementById('" + clientID + "').focus();");
script.Append("} catch (e) {}");
script.Append("</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(),"setScrollAndFocus", script.ToString());