0
這是我的Default.aspx使用的UpdatePanel加載子頁無刷新頁面
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html>
<script runat="server">
Protected Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs)
ScriptManager1.RegisterAsyncPostBackControl(HyperLink1)
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Panel Created"></asp:Label>
<asp:HyperLink NavigateUrl="Default2.aspx" ID="HyperLink1" runat="server">HyperLink</asp:HyperLink>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
我想,當超鏈接,用戶點擊,從另一個.aspx頁面中的內容被加載在Default.aspx的無整頁刷新
發佈您的代碼,請 –