> Server is Win2K3/IIS6.
>
[quoted text clipped - 24 lines]
>
> Thanks.
Hello coconet
I have reproduced the issue with your code. I also tried Milosz's
suggestion, but the problem still exists.
Based on my test, the style sheet works as expected both in Firefox and IE
only when the href attribute of the link tag points to a css file. A
possible reason is that Firefox does not support a server page as a style
sheet. It depends on how Firefox is coded for it. Therefore, my suggestion
is to contact Firefox for further support. (e.g.
http://forums.mozillazine.org/viewforum.php?f=38)
Another workaround is to extract the styles in the apsx file into a
separate css file, and link to the css in your page. Hope it helps.
If you have any other concern or need anything else, please feel free to
let me know.
Happy New Year!
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Jialiang Ge [MSFT] - 04 Jan 2008 02:58 GMT
Hi coconet,
Would you mind letting me know the result of the suggestions? If you need
further assistance, feel free to let me know. I will be more than happy to
be of assistance.
Have a great day!
Sincerely,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Suba - 06 Mar 2008 14:37 GMT
I am facing a similar problem
I am using a asp page to dynamically create a stylesheet
my asp page creates the following css element when i call the asp page my
typing the url in the browser. My asp page works fine............
body {
font-family : Arial, Helvetica, Sans-Serif, Verdana ;
margin : 0 ;
padding : 0 ;
}
.portal_nav {
margin-right : 30px ;
margin-top : 3px ;
}
#white_bar_1 {
height : 6px ;
width : 985px ;
background-color : #B32B3F ;
}
#white_bar_2 {
height : 8px ;
width : 985px ;
background-color : #B32B3F ;
}
my code goes like this for setting the stylesheet in ASP.NET master page
HtmlLink link1 = new HtmlLink();
if (null != Request.QueryString["CID"])
{
clientId = Request.QueryString["CID"];
Session["CID"] = clientId;
link1.Href = "~/NewClientPortal/stylesheet.asp?CID=" + clientId;
}
else if (Session["CID"] != null)
{
clientId = Session["CID"].ToString();
link1.Href = "~/NewClientPortal/stylesheet.asp?CID=" + clientId;
}
else
{
//Going to default CSS
}
link1.Attributes["text"] = "text/css";
link1.Attributes["rel"] = "stylesheet";
Page.Header.Controls.Add(link1);
my stylesheet setup in web.config is <pages theme=""> </page>
when i see the view source code when the page is rendered i see the <link>
element with the proper url............ but none of the style settings are
set to any of the controls................
Anyone has any idea....why this is happening.............need help badly
> Hello coconet
>
[quoted text clipped - 43 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.