程序页面运行报错:使用主题 css 文件要求页上有标头控件。(例如 <head runat="server" />)。 代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frameLeft.aspx.cs" Inherits="frameLeft" %><%@ Register tagprefix="iglbar" namespace="Infragistics.WebUI.UltraWebListbar" Assembly="Infragistics35.WebUI.UltraWebListbar.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>菜单列表</title>
<style type="text/css">
html{
SCROLLBAR-FACE-COLOR: #E2EDEF;
SCROLLBAR-HIGHLIGHT-COLOR:#E2EDEF;
SCROLLBAR-SHADOW-COLOR: #E2EDEF;
SCROLLBAR-3DLIGHT-COLOR: #A5CDDE;
SCROLLBAR-ARROW-COLOR: #A5CDDE;
SCROLLBAR-TRACK-COLOR: #A5CDDE;
SCROLLBAR-DARKSHADOW-COLOR: #A5CDDE;
SCROLLBAR-BASE-COLOR: #000000;
}
.table1{
border-spacing:0px;
border:1px solid #9db3c5;
width:100%;
}
.table1 th,.table1 td{
padding:0px;
border:1px solid #9db3c5;
}
</style><script id="Infragistics" type="text/javascript">
<!--
function UListbar_InitializeListbar(oListbar, oEvent){
var i=0;
while(oListbar.Groups[i]!=null){
document.getElementById(oListbar.Id+"_Items_"+i.toString()).style.overflowX="hidden";
i++;
}
}
// -->
</script>
</head>
<body style="background-image:url(App_Themes/BlueTheme/images/rline.jpg); background-repeat:repeat-y;">
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width:100%; height:100%">
<tr style="height:34px;">
<td>
<table class="table1">
<tr align="center" style="height:34px;">
<td title="主页" style="cursor:hand;width:50%;background-image:url(App_Themes/BlueTheme/images/MenuB.gif);"
onmouseover="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB2.gif)';"
onmouseout="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB.gif)';"
onclick="parent.Content.location.href='ListTopic.aspx'">
<img alt="" src="App_Themes/BlueTheme/images/home.gif" style="vertical-align:middle" /><b style="margin-left:8px">主 页</b>
</td>
<td title="刷新" style="cursor:hand;width:50%;background-image:url(App_Themes/BlueTheme/images/MenuB.gif);"
onmouseover="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB2.gif)';"
onmouseout="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB.gif)';"
onclick="window.parent.Content.location.reload()">
<img alt="" src="App_Themes/BlueTheme/images/msn.gif" style="vertical-align:middle" /><b style="margin-left:8px">刷新</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<iglbar:UltraWebListbar ID="UListbar" runat="server" BorderWidth=""
Font-Names="宋体" Font-Size="9pt" Height="100%" MergeStyles="True"
Width="178px" JavaScriptFilename="ig_weblistbar2_2.js">
<DefaultItemHoverStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuItem.gif"
Cursor="Hand">
</DefaultItemHoverStyle>
<Groups>
<iglbar:Group Text="Group" TextAlign="Left">
<Labels Collapsed="" Expanded="" Selected="" />
</iglbar:Group>
</Groups>
<DefaultGroupButtonHoverStyle Cursor="Hand">
</DefaultGroupButtonHoverStyle>
<DefaultItemStyle Height="19px" Width="167px">
<Margin Bottom="2px" Left="10px" Top="1px" />
<Padding Bottom="3px" Top="5px" />
</DefaultItemStyle>
<DefaultGroupStyle Height="100%">
</DefaultGroupStyle>
<ClientSideEvents InitializeListbar="UListbar_InitializeListbar" />
<DefaultItemSelectedStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuItem.gif"
Cursor="Hand">
</DefaultItemSelectedStyle>
<DefaultGroupButtonSelectedStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuG.gif"
CustomRules="background-repeat:no-repeat">
</DefaultGroupButtonSelectedStyle>
<DefaultGroupButtonStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuG2.gif"
Height="36px" CustomRules="background-repeat:no-repeat">
<Padding Left="20px" Top="12px" />
</DefaultGroupButtonStyle>
</iglbar:UltraWebListbar>
</td>
</tr>
</table>
</form>
</body>
</html>就算把html全部清空,放一个空aspx页面,一样报错。之前运行正常。只是把第三方控件从10.1版本替换成了10.3就这样了,急求解
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frameLeft.aspx.cs" Inherits="frameLeft" %><%@ Register tagprefix="iglbar" namespace="Infragistics.WebUI.UltraWebListbar" Assembly="Infragistics35.WebUI.UltraWebListbar.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>菜单列表</title>
<style type="text/css">
html{
SCROLLBAR-FACE-COLOR: #E2EDEF;
SCROLLBAR-HIGHLIGHT-COLOR:#E2EDEF;
SCROLLBAR-SHADOW-COLOR: #E2EDEF;
SCROLLBAR-3DLIGHT-COLOR: #A5CDDE;
SCROLLBAR-ARROW-COLOR: #A5CDDE;
SCROLLBAR-TRACK-COLOR: #A5CDDE;
SCROLLBAR-DARKSHADOW-COLOR: #A5CDDE;
SCROLLBAR-BASE-COLOR: #000000;
}
.table1{
border-spacing:0px;
border:1px solid #9db3c5;
width:100%;
}
.table1 th,.table1 td{
padding:0px;
border:1px solid #9db3c5;
}
</style><script id="Infragistics" type="text/javascript">
<!--
function UListbar_InitializeListbar(oListbar, oEvent){
var i=0;
while(oListbar.Groups[i]!=null){
document.getElementById(oListbar.Id+"_Items_"+i.toString()).style.overflowX="hidden";
i++;
}
}
// -->
</script>
</head>
<body style="background-image:url(App_Themes/BlueTheme/images/rline.jpg); background-repeat:repeat-y;">
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width:100%; height:100%">
<tr style="height:34px;">
<td>
<table class="table1">
<tr align="center" style="height:34px;">
<td title="主页" style="cursor:hand;width:50%;background-image:url(App_Themes/BlueTheme/images/MenuB.gif);"
onmouseover="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB2.gif)';"
onmouseout="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB.gif)';"
onclick="parent.Content.location.href='ListTopic.aspx'">
<img alt="" src="App_Themes/BlueTheme/images/home.gif" style="vertical-align:middle" /><b style="margin-left:8px">主 页</b>
</td>
<td title="刷新" style="cursor:hand;width:50%;background-image:url(App_Themes/BlueTheme/images/MenuB.gif);"
onmouseover="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB2.gif)';"
onmouseout="this.style.backgroundImage='url(App_Themes/BlueTheme/images/MenuB.gif)';"
onclick="window.parent.Content.location.reload()">
<img alt="" src="App_Themes/BlueTheme/images/msn.gif" style="vertical-align:middle" /><b style="margin-left:8px">刷新</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<iglbar:UltraWebListbar ID="UListbar" runat="server" BorderWidth=""
Font-Names="宋体" Font-Size="9pt" Height="100%" MergeStyles="True"
Width="178px" JavaScriptFilename="ig_weblistbar2_2.js">
<DefaultItemHoverStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuItem.gif"
Cursor="Hand">
</DefaultItemHoverStyle>
<Groups>
<iglbar:Group Text="Group" TextAlign="Left">
<Labels Collapsed="" Expanded="" Selected="" />
</iglbar:Group>
</Groups>
<DefaultGroupButtonHoverStyle Cursor="Hand">
</DefaultGroupButtonHoverStyle>
<DefaultItemStyle Height="19px" Width="167px">
<Margin Bottom="2px" Left="10px" Top="1px" />
<Padding Bottom="3px" Top="5px" />
</DefaultItemStyle>
<DefaultGroupStyle Height="100%">
</DefaultGroupStyle>
<ClientSideEvents InitializeListbar="UListbar_InitializeListbar" />
<DefaultItemSelectedStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuItem.gif"
Cursor="Hand">
</DefaultItemSelectedStyle>
<DefaultGroupButtonSelectedStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuG.gif"
CustomRules="background-repeat:no-repeat">
</DefaultGroupButtonSelectedStyle>
<DefaultGroupButtonStyle BackgroundImage="./App_Themes/BlueTheme/images/MenuG2.gif"
Height="36px" CustomRules="background-repeat:no-repeat">
<Padding Left="20px" Top="12px" />
</DefaultGroupButtonStyle>
</iglbar:UltraWebListbar>
</td>
</tr>
</table>
</form>
</body>
</html>就算把html全部清空,放一个空aspx页面,一样报错。之前运行正常。只是把第三方控件从10.1版本替换成了10.3就这样了,急求解
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货