Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
Cómo ejecutar correctamente el backend usando la publicación http o get

Usando asp mvc, tengo un script C # simple en el controlador que simplemente abrirá el navegador IE. Pero mi objetivo es ejecutar esto cuando la página se carga en Chrome.

Aquí está el script del controlador:

 public async Task<JsonResult> Test() { Process.Start("IExplore.exe", "www.google.com"); using (var client = new HttpClient()) { var link = "www.google.com"; return Json(await client.GetStringAsync(link)); } }

Y aquí está mi llamada insegura para que funcione:

 $(document).ready(function () { $.get("/MyController/Test", {}, function (res) { let msg = JSON.parse(res); console.log(msg) }); });

Si lo hago en un proyecto de consola simple usando solo C #, funcionará sin ningún problema y abrirá el IE como era de esperar, solo necesito transferir esta función a mi página web usando Chrome:

 Process.Start("IExplore.exe", "www.google.com");

Cualquier sugerencia/comentario TIA.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!