Académique Documents
Professionnel Documents
Culture Documents
NET
SI LA SIGUIENTE LINEA ESTA COMO COMENTARIO QUITO EL COMENTARIO PARA PODER FUNCIONAR
[System.Web.Script.Services.ScriptService] [WebMethod] public string[] obtenerCedula(string prefixText, int count) { List<string> items = new List<string>(count);
// esto en el webservice
EN EL TEXTBOX COLOCAR AUTOPOSTBACK=TRUE PARA QUE EL NOMBRE DEL AUTOCOMPLETAR QUE SE SELECCIONA INMEDIATAMENTE SI ES EL CASO PONGA LOS DATOS EN EL GRIDVIEW
POR WEBFORM
EN LA CLASE DEL WEBFORM CREO EL WEBMETHOD E IMPORTO LAS SIGUIENTES LIBRERIAS
using Entidades; using Reglas; using System.Data; using System.Web.Services; using System.Web.Script.Services; [WebMethod] [ScriptMethod] public static string[] GetCustomerList(string prefixText, int count) { cEClientes oEP = new cEClientes(); cR_Cliente oRP = new cR_Cliente(); List<string> list = new List<string>(count); ; //DataTable ds = new DataTable(); DataSet ds = new DataSet(); oEP.Id = prefixText; ds = oRP.ConsultarCompletar(oEP);
EN EL TEXTBOX COLOCAR AUTOPOSTBACK=TRUE PARA QUE EL NOMBRE DEL AUTOCOMPLETAR QUE SE SELECCIONA INMEDIATAMENTE SI ES EL CASO PONGA LOS DATOS EN EL GRIDVIEW
SI LA SIGUIENTE LINEA ESTA COMO COMENTARIO QUITO EL COMENTARIO PARA PODER FUNCIONAR
[System.Web.Script.Services.ScriptService]
[WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string[] GetCustomers(string prefix) { List<string> customers = new List<string>(); cEClientes oEP = new cEClientes(); cR_Cliente oRP = new cR_Cliente(); List<string> list = new List<string>(); ; //DataTable ds = new DataTable(); DataSet ds = new DataSet(); oEP.Id = prefix; ds = oRP.ConsultarCompletar(oEP);