Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have use these code as follow these codes are working on localhost but not working after live server no link is working for internet explore. plzz help me how to use it.
please help me.

C#
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">


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

      <!--[if IE 8]>

	
     <link rel="stylesheet" type="text/css" media="screen, projection" href="css/forie8.css"/>
  
<![endif]-->

    <!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="css/forie7.css" />
  
<![endif]-->


    <link href="css/js-image-slider.css" rel="stylesheet" type="text/css" />
    <link href="themes/js-image-slider.css" rel="stylesheet" type="text/css" />
    <script src="themes/js-image-slider.js" type="text/javascript"></script>
</asp:Content>
Posted
Comments
vijay__p 22-May-13 7:23am    
Have you checked css path by viewing rendered html source?
kuberg 22-May-13 8:16am    
yes path is right. but its working on ie tester but not live.

try replacing with



link href="../css/Homepage.css" rel="stylesheet" type="text/css" />

or

link href="../../css/Homepage.css" rel="stylesheet" type="text/css" />

or


link href="~/css/Homepage.css" rel="stylesheet" type="text/css" />
 
Share this answer
 
try this
on head part
link href="%# ResolveUrl("~/") %>css/Homepage.css" rel="stylesheet" type="text/css" />

In .cs page add following code in page load event..
Page.Header.DataBind();
 
Share this answer
 
v2
It seems like that your page is not able to refer css file in server. Please trouble shoots this way.

1. Type complete server URL of css file in address bar of browser and check if you’re getting CSS file for download.

2. Once you have confirm the complete URL of CSS file, now for confirm this problem instead of giving relative path in web page i.e. href="css/forie8.css" give complete CSS URL i.e href=http://YourURLcss/forie8.css.
 
Share this answer
 
v2
Comments
kuberg 22-May-13 8:19am    
these full path (Url) also not working.
Mahesh Bailwal 22-May-13 8:33am    
Please use IE developer tool bar to trouble shoot the problem. It will give you all details. Please let me know if you need more information
kuberg 22-May-13 11:55am    
please sir tell me everything about this.
Mahesh Bailwal 23-May-13 1:03am    
Please go to below link to get information about IE developer toolbar.

http://msdn.microsoft.com/en-us/library/gg589507%28v=vs.85%29.aspx

All the best

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