使用 IE web controls toolbar控件显示图片时,显示空白页面。
我在如下ASP .NET页面中使用了IE WEB CONTROLS控件来制作工具栏,但在IE中运行时显示空白页面。
代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Web_Test" %>
<%@ Register Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="Microsoft.Web.UI.WebControls" TagPrefix="iewc" %>
<!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>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<iewc:Toolbar ID="Toolbar1" runat="server" Height="100px" Width="300px">
<iewc:ToolbarButton ImageUrl="~/Images/form/top.gif" />
<iewc:ToolbarButton ImageUrl="~/Images/form/prev.gif" />
<iewc:ToolbarButton ImageUrl="~/Images/form/next.gif" />
<iewc:ToolbarButton ImageUrl="~/Images/form/end.gif" />
</iewc:Toolbar>
</form>
</body>
</html>