setfocus on control

Posted by Venkat | Labels:

Here is the code to set focus on some control , while we use the Master page

ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Focus", String.Format("window.setTimeout('$get(""{0}"").focus()', 300);", ControlToFocus.ClientID), True)

or Refer this article

http://www.dotnetcurry.com/ShowArticle.aspx?ID=275

0 comments:

Post a Comment

Thanks for the Comments.

PayOffers.in