Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

124
Vistas
How to properly execute backend using http post or get

Using asp mvc, I have simple c# script in the controller that will simply open IE browser. But my aim is to execute this when the page is loaded in chrome.

Here is the controller script:

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));
            }
        }

And here is my unsure call to make it work:

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

If I do it in plain console project using c# only, it will work without any problem and will open the IE expectedly, I just need to transfer this feature to my web page using chrome:

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

Any suggestion/comments TIA.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda