IE WebControls does not render proper XML and TSNS code

Discussion in 'ASP .Net' started by ist, Mar 13, 2008.

  1. ist

    ist Guest

    Hi,
    I have a Web Application that uses IE Web Controls for main
    navigation. However, the application fails to run on some servers
    because of IE Web Controls are not truely rendered.
    When I analysed the problem, I have seen that, failing servers somehow
    fail to create correct HTML output for IEWC. For example, on server
    side code we have:

    <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls"
    Assembly="Microsoft.Web.UI.WebControls" %>
    ...
    <iewc:TabStrip id="LeftMenuTabStrip" CssClass="psTabStripLeftMenu"
    runat="server" Width="100%" Orientation="Vertical">
    <iewc:Tab DefaultImageUrl="../Images/home7.gif" ID="Home"></iewc:Tab>
    </iewc:TabStrip>

    And on successful servers, it outputs:

    <?XML:NAMESPACE PREFIX="TSNS" />
    <?IMPORT NAMESPACE="TSNS" IMPLEMENTATION="/webctrl_client/1_0/
    tabstrip.htc" />
    <TSNS:TabStrip id="LeftMenuTabStrip" class="psTabStripLeftMenu" ......
    ......
    <TSNS:Tab ID="Home" defaultImageUrl="../Images/home7.gif">Ev</
    TSNS:Tab>
    </TSNS:TabStrip>

    However, on failing server the output is:

    <table cellspacing="0" cellpadding="0" border="0"
    id="LeftMenuTabStrip" class="psTabStripLeftMenu"
    onclick="fLoadSelection(LeftMenuTabStrip.selectedIndex)" style="width:
    100%;">
    <tr><td nowrap height="30" bgcolor="'#EEEEEE'" style="height:
    30px;border:none;background-color:'#EEEEEE';text-align:left;border-
    bottom-width:1px;border-bottom-style:solid;border-bottom-
    color:#FFFFFF;border-top-width:1px;border-top-style:solid;border-top-
    color:#FFFFFF;font-family:Verdana, Arial, Helvetica, sans-serif;font-
    size:11px;font-style:normal;color:#000000;clip:rect(auto auto auto
    auto);text-decoration:none;vertical-align:middle;font-
    weight:normal;"><font face="Verdana, Arial, Helvetica, sans-serif"
    color="#000000"><table border="0" cellspacing="0"
    cellpadding="0"><tr><td nowrap><font face="Verdana, Arial, Helvetica,
    sans-serif" color="#000000"><img src="../Images/home7.gif" border="0"
    align="absmiddle" /></font></td><td nowrap><font face="Verdana, Arial,
    Helvetica, sans-serif" color="#000000">Ev</font></td></tr></table></
    font></td>

    So there is no rendered buttons, only standart hyperlinks (and they
    fail since other JavaScript code depends on them)

    I have tried, compiling controls, installing precompiled controls,
    copying controls from working servers etc. etc. I have put files in
    both wwwroot and application root and still did not work.
    When I embed rendered HTML code it works fine, however since there are
    many files it is not a proper solution :)

    What more can I do?
     
    ist, Mar 13, 2008
    #1
    1. Advertising

  2. ist

    bruce barker Guest

    the rendering depends on browser detection (via the agent string). the
    browsercaps files are probably different on the servers

    -- bruce (sqlwork.com)


    "ist" wrote:

    > Hi,
    > I have a Web Application that uses IE Web Controls for main
    > navigation. However, the application fails to run on some servers
    > because of IE Web Controls are not truely rendered.
    > When I analysed the problem, I have seen that, failing servers somehow
    > fail to create correct HTML output for IEWC. For example, on server
    > side code we have:
    >
    > <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls"
    > Assembly="Microsoft.Web.UI.WebControls" %>
    > ...
    > <iewc:TabStrip id="LeftMenuTabStrip" CssClass="psTabStripLeftMenu"
    > runat="server" Width="100%" Orientation="Vertical">
    > <iewc:Tab DefaultImageUrl="../Images/home7.gif" ID="Home"></iewc:Tab>
    > </iewc:TabStrip>
    >
    > And on successful servers, it outputs:
    >
    > <?XML:NAMESPACE PREFIX="TSNS" />
    > <?IMPORT NAMESPACE="TSNS" IMPLEMENTATION="/webctrl_client/1_0/
    > tabstrip.htc" />
    > <TSNS:TabStrip id="LeftMenuTabStrip" class="psTabStripLeftMenu" ......
    > ......
    > <TSNS:Tab ID="Home" defaultImageUrl="../Images/home7.gif">Ev</
    > TSNS:Tab>
    > </TSNS:TabStrip>
    >
    > However, on failing server the output is:
    >
    > <table cellspacing="0" cellpadding="0" border="0"
    > id="LeftMenuTabStrip" class="psTabStripLeftMenu"
    > onclick="fLoadSelection(LeftMenuTabStrip.selectedIndex)" style="width:
    > 100%;">
    > <tr><td nowrap height="30" bgcolor="'#EEEEEE'" style="height:
    > 30px;border:none;background-color:'#EEEEEE';text-align:left;border-
    > bottom-width:1px;border-bottom-style:solid;border-bottom-
    > color:#FFFFFF;border-top-width:1px;border-top-style:solid;border-top-
    > color:#FFFFFF;font-family:Verdana, Arial, Helvetica, sans-serif;font-
    > size:11px;font-style:normal;color:#000000;clip:rect(auto auto auto
    > auto);text-decoration:none;vertical-align:middle;font-
    > weight:normal;"><font face="Verdana, Arial, Helvetica, sans-serif"
    > color="#000000"><table border="0" cellspacing="0"
    > cellpadding="0"><tr><td nowrap><font face="Verdana, Arial, Helvetica,
    > sans-serif" color="#000000"><img src="../Images/home7.gif" border="0"
    > align="absmiddle" /></font></td><td nowrap><font face="Verdana, Arial,
    > Helvetica, sans-serif" color="#000000">Ev</font></td></tr></table></
    > font></td>
    >
    > So there is no rendered buttons, only standart hyperlinks (and they
    > fail since other JavaScript code depends on them)
    >
    > I have tried, compiling controls, installing precompiled controls,
    > copying controls from working servers etc. etc. I have put files in
    > both wwwroot and application root and still did not work.
    > When I embed rendered HTML code it works fine, however since there are
    > many files it is not a proper solution :)
    >
    > What more can I do?
    >
    >
    >
     
    bruce barker, Mar 13, 2008
    #2
    1. Advertising

  3. ist

    ist Guest

    Hi, I have doubted that too but I have really a simple environment. A
    freshly installed server, and computers running IE6 :)

    However, can you suggest any specific tag that I have to look in
    machine.config?

    On 13 Mart, 21:24, bruce barker
    <> wrote:
    > the rendering depends on browser detection (via the agent string). the
    > browsercaps files are probably different on the servers
     
    ist, Mar 13, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lau Lei Cheong

    Page.Render do not render complete page

    Lau Lei Cheong, May 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,124
    Lau Lei Cheong
    May 15, 2004
  2. Bob Jones
    Replies:
    13
    Views:
    889
    Patrice
    Feb 21, 2007
  3. ist
    Replies:
    2
    Views:
    372
  4. Glenn Gillen
    Replies:
    0
    Views:
    325
    Glenn Gillen
    Nov 17, 2006
Loading...

Share This Page