Here is how method of button search looks like now, but nothing changes, by the way this method is in another controller, cause CartaGarantiaController have one method register thats builds and call the actual aspx, but methods for searchs or list are in
respective controllers like medicController, so are these could be a problem?, another cue, how can i send javascript functions from controller to views?
public JsonResult Busqueda()
{
string url1 = this.Request.Url.ToString();
string url2 = Convert.ToString(Request.Url);
MedicoData data = new MedicoData();
MedicoService scv = new MedicoService(_repository);
string datoMedico = this.ReadFromRequest("txtMedQueryString");
data.Medicos = scv.getMedicos(datoMedico).ToList();
return Json(data.Medicos, "medicos");
}
Thanks for response!
Please dont forget mark as an answer, if this post helped you... Thanks!
JProgrammer
Member
133 Points
175 Posts
Re: JsonResult and Extjs
Jul 24, 2008 03:27 PM|LINK
Here is how method of button search looks like now, but nothing changes, by the way this method is in another controller, cause CartaGarantiaController have one method register thats builds and call the actual aspx, but methods for searchs or list are in respective controllers like medicController, so are these could be a problem?, another cue, how can i send javascript functions from controller to views?
public JsonResult Busqueda() { string url1 = this.Request.Url.ToString(); string url2 = Convert.ToString(Request.Url); MedicoData data = new MedicoData(); MedicoService scv = new MedicoService(_repository); string datoMedico = this.ReadFromRequest("txtMedQueryString"); data.Medicos = scv.getMedicos(datoMedico).ToList(); return Json(data.Medicos, "medicos"); }Thanks for response!
C# my main PL in .NET