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

192
Vistas
converting URL to Action Link @url.action

I have problem with IIS does not read the URL. Failed to load resource: the server responded with a status of 503 (Service Unavailable)

My project is on Asp.net MVC I have used a Jqx grid on my project but the grid does not load data on IIS.

How can I convert the URL to Action Link @url.action, so the IIS can read?

My URL on my grid.

url: "/Home/GetIMScompinfo?CompanyName=" + $("#CompanyName").val() + "&StoreName=" + $("#StoreName").val() + "&ComputerName=" + $("#ComputerName").val() + params

url: "/Home/GetSubItems?scopeId=" + id

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

url: "/Home/GetIMScompinfo?CompanyName=" + $("#CompanyName").val() + "&StoreName=" + $("#StoreName").val() + "&ComputerName=" + $("#ComputerName").val() + params url: "/Home/GetSubItems?scopeId=" + id

I don't know what is the difference between the two getting the value. So I give the sample script for the first url.

<button class="btn-class" id="press" type="button" onclick="changeHref1()">Genrate first url</button>



<script type="text/javascript">
function changeHref1() {
    var url = '@Url.Action("About","Home")';
    var company = $('#CompanyName').val();
    var store = $('#StoreName').val();
    var computer = $('#ComputerName').val();
    window.location.href = url + '?CompanyName=' + company + '&StoreName=' + store + '&ComputerName=' + computer;
}

</script>

enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar
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