Example #1
0
    protected void CloseServiceCallHiddenBTN_Click(object sender, EventArgs e)
    {
        int         scID        = Convert.ToInt32(ServiceCallsGV.SelectedRow.Cells[1].Text);
        ServiceCall sc          = new ServiceCall();
        int         RowAffected = sc.CloseServiceCall(scID);

        if (RowAffected > 0)
        {
            ServiceCallsGV.DataBind();
        }
    }
Example #2
0
    public string CloseServiceCall(int scID)
    {
        ServiceCall sc          = new ServiceCall();
        int         RowAffected = sc.CloseServiceCall(scID);

        // create a json serializer object
        JavaScriptSerializer js = new JavaScriptSerializer();
        // serialize to string
        string jsonString = js.Serialize(RowAffected);

        return(jsonString);
    }