I have a page with an ASP.Net menu that also uses the CSS Friendly Adapter. WHen viewing the page on Localhost, it displays fine. When viewing the page on a remote webhost, it doesn't display properly. The Page source for both pages looks the same and the
CSS file is viewable on the remote webhost. Here is what the menu looks like on localhost:
Here is what the menu looks like on remote webhost:
Page source for both pages looks the same and the CSS file is viewable on the remote webhost
Looks like you webpage cannot find the CSS file. If ou say the CSS file is viewable, you mean that you can enter the url to the CS file and then you see it?
Show us the link to the CSS file in your web page, Most likely this link isn't right?
dec_obrien
Member
332 Points
106 Posts
ASP.Net MEnu Problem
Sep 25, 2010 03:23 PM|LINK
Hi,
I have a page with an ASP.Net menu that also uses the CSS Friendly Adapter. WHen viewing the page on Localhost, it displays fine. When viewing the page on a remote webhost, it doesn't display properly. The Page source for both pages looks the same and the CSS file is viewable on the remote webhost. Here is what the menu looks like on localhost:
Here is what the menu looks like on remote webhost:
ANy ideas?
hans_v
All-Star
35986 Points
6550 Posts
Re: ASP.Net MEnu Problem
Sep 25, 2010 05:02 PM|LINK
Looks like you webpage cannot find the CSS file. If ou say the CSS file is viewable, you mean that you can enter the url to the CS file and then you see it?
Show us the link to the CSS file in your web page, Most likely this link isn't right?
dec_obrien
Member
332 Points
106 Posts
Re: ASP.Net MEnu Problem
Sep 25, 2010 05:49 PM|LINK
WHen I enter the url for the CSS file, it works i.e. it displays the CSS
THese are the three files linked in the head section of the page (which is a master page):
As I said in the previous post though, it works on the Localhost so I can't figure out why it would be different on the remote one.
hans_v
All-Star
35986 Points
6550 Posts
Re: ASP.Net MEnu Problem
Sep 25, 2010 06:03 PM|LINK
So your css files are located in the Main_Template_files folder in the root of your website?
and you can see them when you enter?
http://www.yourwebsite.com/Main_Template_files/aldolex.css
Is the webpage located in the root of the website or inside a folder?
Next look in the rendered HTML when opening the page. if your webpage is inside the root, is the href attribute
href="Main_Template_files/Aldolex.css"
Or when it is located in a folder
href="../Main_Template_files/Aldolex.css"
dec_obrien
Member
332 Points
106 Posts
Re: ASP.Net MEnu Problem
Sep 25, 2010 06:21 PM|LINK
Here is the structure of the site:
And here is the rendered page:
so I think it looks right (but there's obviously something wrong!)
2eloto
Member
2 Points
1 Post
Re: ASP.Net MEnu Problem
Sep 27, 2010 08:29 AM|LINK
really nice share ;)