Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4272778
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:37:25+00:00 2026-05-21T07:37:25+00:00

I developed a web application and all my web pages were on root. here

  • 0

I developed a web application and all my web pages were on root. here is my folder structure.

-Solution
…..js
…….xyz.js
…..css
…….abc.css
Page1.aspx
Page2.aspx
Page3.aspx
AppMaster.Master

Page4.aspx (please note they are lying on root)
Page5.aspx (please note they are lying on root)

I have referenced my css and js in masterpage like this.

<script src="js/jquery-1.3.2.js" type="text/javascript"></script>  
<link href="css/sprystylesheet.css" rel="stylesheet" type="text/css" /> 

<link href="css/jquery.datepick.css" rel="stylesheet" type="text/css" />

<script src="js/jquery.tools.min.js" type="text/javascript"></script>
<link href="css/scrollable-wizard.css" rel="stylesheet" type="text/css" />
<script src="js/livevalidation.js" type="text/javascript"></script>
<script src="js/qTip.js" type="text/javascript"></script>

<script src="js/jquery.contactable.packed.js" type="text/javascript"></script>

<script src="js/autoLoader.js" type="text/javascript"></script>
<script src="js/jquery.metadata.js" type="text/javascript"></script>
<script src="js/autoNumeric-1.6.2.js" type="text/javascript"></script>
<script src="js/jquery.blockUI.js" type="text/javascript"></script>

Now when i implemented roles to implement page access security via web.config deny users I have placed the pages like this.

-Solution
…..js
…..css
-Admin
….Page1.aspx
….Page2.aspx
-Users
….Page3.aspx
Page4.aspx
Page5.aspx

But since I’ve changed the folder structure I am keep getting object expected due to javascript and css is not working either. What should I do now as I am not referencing css and js specifically in every content page. Some pages will be inside specific folders and some will be on root so in this scenario how should I change the css and js location references.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:37:26+00:00Added an answer on May 21, 2026 at 7:37 am

    Just put a slash in front of each URL to reference them relative to the root:

    <link href="/css/sprystylesheet.css" rel="stylesheet" type="text/css" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i developed small web application, in that all the functionality working fine but
I have a web-application developed with jQuery with a web2.0 look & feel. All
I developed a web application Using java EE 6, its a very small web
I've never developed a web application that uses distributed memory. Is it common practice
I've developed a web application that worked fine in JBoss 4. Now, I need
i have developed an web application[ERP FOR A SCHOOL].i have given the build for
I have developed a web application and various clients can store records to that
I have developed a web application with fields Keyword,Latitude and Longitude. I want to
I've developed a web application. It needs to be translated to languages other than
I have developed a web application using Netbeans 6.7 and Ant. The webapp works,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.