IIS doesn't load grid JS

Tony21

New member
Joined
Dec 13, 2021
Messages
3
Programming Experience
Beginner
I have my project worked on asp.net mvc

i am using jqxGrid but when i publish my project on IIS the grid does not load the data.
in my js grid i use URL with parameters.
as i have googled i must convert the URL to @url.action, but i don't know how to convert my URL because it has parameters.

the error is:
Failed to load resource: the server responded with a status of 503 (Service Unavailable)


C#:
           var config = {
                datatype: "json",
                datafields: [
                    { name: "ScopeId", type: "int" },
                    { name: "CompanyName", type: "string" },
                    { name: "StoreName", type: "string" },
                    { name: "ComputerName", type: "string" },
                    { name: "IP1", type: "string" },
                    { name: "logiPOS_Version", type: "string" },
                    { name: "BootTime", type: "string" },
                    { name: "LastLoginDate", type: "string" },
                    { name: "LastModifiedDate", type: "string" },                     
                    //{ name: "LocationId", type: "string" },
                    { name: "SynchronisedDate", type: "string" },
                    { name: "isActive", type: "int" }
                ],
                url: "/Home/GetIMScompinfo?CompanyName=" + $("#CompanyName").val() + "&StoreName=" + $("#StoreName").val() + "&ComputerName=" + $("#ComputerName").val() + params
            };
 
Last edited by a moderator:
IIS doesn't load any JavaScript. It is the server. It is not NodeJS.

JavaScript is loaded by the browser on the client side
 
as i have googled i must convert the URL to @url.action, but i don't know how to convert my URL because it has parameters.
You didn't Google enough. Try searching for "C# url action with parameters"
 
I suggest trying first with the information contained in some of those Google search results instead of asking someone to do your work for you.
 
Back
Top Bottom