This is a migrated thread and some comments may be shown as answers.

RadAjaxManager removes HTML if statements?

1 Answer 60 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Jesse asked on 28 Mar 2009, 07:05 PM
Hello,

On my aspx page I have these styles in the header:

<link href="Styles/layout.css" rel="Stylesheet" type="text/css" /> 
 
<!--[if lte IE 7]> 
    <link href="Styles/ie7.css" media="screen" rel="Stylesheet" type="text/css" /> 
<![endif]--> 
     
<!--[if IE 6]> 
    <link href="Styles/ie6.css" media="screen" rel="Stylesheet" type="text/css" /> 
<![endif]--> 
 

The body background color is supposed to be white, as it is declared in layout.css. In my ie6.css I placed a declaration for "body { background: #000; }" so IE6 would have the black background for testing.

In firefox and Safari, everything is fine until there is an ajax call that adds a html form to the page as its response. In that response, in both firefox and safari and IE7, the black background appears from the IE6 style.

Why after the ajax call is the IE6 if statement being removed, yet when I view the source of the page, the statement is still there, just being ignored?

Poking around with firebug, I see that RadAjaxManager creates some sort of array that holds those three <links> from the page. Does it then write that array back after the ajax is successful? Therefore removing the if statements? What the ajax call loads doesn't contain any css declarations itself, just html web forms.

- Jesse Thomson

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 31 Mar 2009, 02:39 PM
Hi Jesse,

Please refer to the following help article for more information:

http://www.telerik.com/help/aspnet-ajax/ajxconditionalcomments.html

Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Jesse
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or