public static void AddOnKeyDown(System.Web.UI.WebControls.TextBox tb, String strButtonID)
{
tb.Attributes.Add("onkeydown ", String.Format("if(event.keyCode==13 || event.keyCode==10) {{document.getElementById( '{0} ').click();return false;}} ", strButtonID));
}