我有一个WebParts.aspx页面,看起来像这样 - <%@ Page Language =“C#”AutoEventWireup =“true”CodeBehind =“WebParts.aspx.cs”Inherits =“e.WebParts”%>
<!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">
<div>
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
</div>
<div>
<table>
<tr>
<td>
<asp:WebPartZone ID="WebPartZone1" runat="server" HeaderText="News">
<ZoneTemplate>
<asp:Label ID="Label1" runat="server" Text="Label" Title="News" ></asp:Label>
</ZoneTemplate>
</asp:WebPartZone>
</td><td>
<asp:WebPartZone ID="WebPartZone2" runat="server">
</asp:WebPartZone>
</td><td>
<asp:WebPartZone ID="WebPartZone3" runat="server">
<ZoneTemplate>
<asp:ListBox ID="ListBox1" runat="server" Title="Sponsors"></asp:ListBox>
</ZoneTemplate>
</asp:WebPartZone>
</td>
</tr>
<tr>
<td>
<asp:WebPartZone ID="WebPartZone4" runat="server">
</asp:WebPartZone>
</td><td>
<asp:WebPartZone ID="WebPartZone5" runat="server">
</asp:WebPartZone>
</td><td>
<asp:WebPartZone ID="WebPartZone6" runat="server">
</asp:WebPartZone>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
当我在本地主机上直接从VS2008运行它时,这个页面运行得很好,但当我将它发布到我的远程IIS网络服务器时,它只是挂起而没有HTTP响应。
答案 0 :(得分:1)
检查服务器的防火墙。我使用AJAX工具包经历过相同的行为。