Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I need your help in telling me what I did wrong when calling a javascript from. My web application does not call the javascript that I wrote on the external JS file. Here is how linked my js file to the master page.

XML
<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="<%= ResolveClientUrl("~/Scripts/SiteScripts.js")%>" type="text/javascript"></script>
    <script src="<%= ResolveClientUrl("~/Scripts/progress.js")%>" type="text/javascript"></script>
    <link href="~/Styles/loadingbox.css" rel="stylesheet" type="text/css" />

    <asp:ContentPlaceHolder ID="HeadContent" runat="server">

    </asp:ContentPlaceHolder>
</head>
Posted
Comments
bbirajdar 12-Dec-12 10:10am    
You dont need to use <%= ResolveClientUrl(

<script src="~/Scripts/SiteScripts.js" type="text/javascript"></script>
should work fine

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900