コード例 #1
0
    public void GetSiguienteByIdPuesto(string IdPuesto)
    {
        EstadoBL        EstadoBL = new EstadoBL();
        List <EstadoBE> oLista   = new List <EstadoBE>();

        int idPues = string.IsNullOrEmpty(IdPuesto) ? -1 : Convert.ToInt32(IdPuesto);

        oLista = EstadoBL.GetSiguienteByIdPuesto(connstring, idPues);

        // Return JSON data
        JavaScriptSerializer js = new JavaScriptSerializer();
        string strJSON          = js.Serialize(oLista);

        Context.Response.Clear();
        Context.Response.ContentType = "application/json";
        Context.Response.Flush();
        Context.Response.Write(strJSON);
    }