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

188
Views
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 answers
Answer question

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 Report
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!