public static string AjaxCallToUpdateGrid(string value) { string returnValue = ""; Valuation val = new Valuation(); try { val.RegistrationValidate(value); val.updateGrid(); }catch(Exception ex) { returnValue = ex.Message.ToString(); } return returnValue + " Val" + value; }