Weird problem

Page 1 of 2 12 LastLast
  1. #1

    Weird problem

    Hello everyone,

    I'm not sure if anyone can help me here, but perhaps someone has bumped into this. Check out the following:

        <style type="text/css">
        <!--//
        .N { font-size: medium; font-weight: bold; margin: 2px 0px 20px 0px; }
        .N .S { background-color: #ffff99; border: 1px solid #ffcc00; color: #333; padding: 10px; }
        -->
        </style>
        <ExtJS:ScriptManager ID="ScriptManager2" runat="server" StateProvider="PostBack" Theme="Gray" />
        <ExtJS:ViewPort ID="ViewPort" runat="server" Stateful="True">
            <Content>
                <ExtJS:AnchorLayout runat="server">
                    <ExtJS:Anchor>
                        <ExtJS:Panel runat="server">
                            <Content>
                                <div class="N"><div class="S">Example works in IE7/FF not IE6
    
    
                            </Content>
                        </ExtJS:Panel>
                    </ExtJS:Anchor>
                </ExtJS:AnchorLayout>
            </Content>
        </ExtJS:ViewPort>
    Works in IE7/FF but not IE6, like the styles of N and S get stripped.

    Any help or insight would be greatly appreciated!

    Cheers,
    Timothy
  2. #2

    RE: Weird problem

    Anyone?
  3. #3

    RE: Weird problem

    Try this.. The ExtJS:Panel must be wrapped in a form tag and since your doctype is xhtml, you shouldn't need the comment tags around the css in your style tags.

    
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ExtJS" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        <style type="text/css">
            .N { font-size: medium; font-weight: bold; margin: 2px 0px 20px 0px; }
            .N .S { background-color: #ffff99; border: 1px solid #ffcc00; color: #333; padding: 10px; }
        </style>
    </head>
    <body>
        <ExtJS:ScriptManager ID="ScriptManager2" runat="server" StateProvider="PostBack" Theme="Gray" />
        <form runat="server">
        <ExtJS:ViewPort ID="ViewPort" runat="server" Stateful="True">
            <Content>
                <ExtJS:AnchorLayout runat="server">
                    <ExtJS:Anchor>
                        <ExtJS:Panel runat="server">
                            <Content>
                                <div class="N"><div class="S">Example works in IE7/FF not IE6
    
    
                            </Content>
                        </ExtJS:Panel>
                    </ExtJS:Anchor>
                </ExtJS:AnchorLayout>
            </Content>
        </ExtJS:ViewPort>
        </form>
    </body>
    </html>
  4. #4

    RE: Weird problem

    Thanks for the response, I took your suggestions and it still doesn't work right in IE6. Can you confirm that your example works in that browser?

    Cheers,
    Timothy
  5. #5

    RE: Weird problem



    Unfortunately I don't have a copy of IE6 on my machine. Just to clarify, when you say the CSS gets stripped, are the styles still in the page source and being ignored, or does it appear that ASP.NET is stripping the styles out before sending the page to the browser?

    Thanks
    MindCore
  6. #6

    RE: Weird problem

    mindcore1 (6/14/2008)

    Unfortunately I don't have a copy of IE6 on my machine. Just to clarify, when you say the CSS gets stripped, are the styles still in the page source and being ignored, or does it appear that ASP.NET is stripping the styles out before sending the page to the browser?

    Thanks
    MindCore
    Attached is an example, to the left is FF3.0 (same with IE7) on the right is IE6.

    Cheers,
    Timothy
  7. #7

    RE: Weird problem

    The styles are being forwarded in the view source with IE6 they are not being stripped by ASP.NET.

    You can actually see the styles render if you delay the render of the ViewPort, but once it is rendered it strips the styles away.

    Sincerely,
    Timothy
  8. #8

    RE: Weird problem

    Your Vesion is .net 3.0?

    why is my code like ?<ext:ScriptManager??
  9. #9

    RE: Weird problem

    Microsoft .NET 2.0 and Coolite Ext 0.5.1

    Cheers,
    Timothy
  10. #10

    RE: Weird problem

    aha,I know what happended!
    you renamed "TagPrefix"!
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Weird date formatting issue
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 25, 2011, 1:07 PM
  2. [CLOSED] Weird error since update from SVN
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 18, 2011, 8:09 AM
  3. Replies: 2
    Last Post: Sep 28, 2010, 6:12 PM
  4. Replies: 3
    Last Post: Mar 16, 2010, 1:50 PM
  5. Very weird problem in IE
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Mar 10, 2009, 7:02 PM

Posting Permissions