I
ist
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?
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?