我有一个数据列表,其中超链接将填充文章名称列表。单击任何文章链接时,我会在其中加载内容
ID =“POST”的标签
问题是,当我单击数据列表中的链接时,页面会刷新以加载内容。我该如何解决这个问题?谢谢
<asp:ScriptManager ID="scm" runat="server">
</asp:ScriptManager>
<table>
<tr>
<td>
<asp:Panel ID="Panel1" runat="server" Width="800">
<div id="divContent" runat="server" class="post">
<table id="tblPost" style="float" border="1" style="border-style: outset; border-width: thin"
width="250" height="200" align="right">
<tr>
<td class="style2">
<asp:Label ID="Label1" runat="server" Width="200" Font-Bold="True" Text="Article Sections"></asp:Label>
</td>
</tr>
<tr>
<td align="left">
<asp:DataList ID="DLArticles" runat="server">
<ItemTemplate>
<table id="Table2" visible="true" align="left">
<tr align="left">
<td>
<asp:HyperLink ID="hypSubSections" runat="server" NavigateUrl='<%# "~/News.aspx?FID=" + DataBinder.Eval(Container.DataItem,"FID") + "&CID=" + DataBinder.Eval(Container.DataItem,"CID") %>'
Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>'></asp:HyperLink>
</td>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
<tr>
<td align="right">
<asp:HyperLink ID="HypViewALL" runat="server">View All</asp:HyperLink>
</td>
</tr>
</table>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<p id="POST" runat="server">
</p>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="DLArticles" />
</Triggers>
</asp:UpdatePanel>
</div>
</asp:Panel>
</td>
</tr>
</table>