/// <summary> /// Handle search button click /// Get results from webservice and display certain properties /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSearch_Click(object sender, EventArgs e) { RgWsBasStoixEpitRtUser result = ServiceInvoker.InvokeggpsService2(txtAfm.Text.Trim()); lblResultsOnomasia.Text = result.onomasia; lblResultsOnomasia.Text = result.onomasia; lblResultsActLongDescr.Text = result.actLongDescr; }
public static string GetAfmInfo(string afm) { RgWsBasStoixEpitRtUser result = ServiceInvoker.InvokeggpsService2(afm.Trim()); JavaScriptSerializer jss = new JavaScriptSerializer(); string json = jss.Serialize(result); //fix date serialization in Json json = json.Replace("\"\\/Date(", "new Date(").Replace(")\\/\"", ")"); return(json); }