<a id="ap" runat="server" οnclick="ap()" href="javascript:void(0);">局部刷新链接</a>
<asp:Button ID="btnhd" runat="server" οnclick="btnhd_Click" style="display:none"/>
<script>
function ap() {
document.getElementById("<%=btnhd.ClientID %>").click();
}
</script>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="up" runat="server">
<ContentTemplate>
<!--这里放你要刷新的数据内容-->
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="hd" EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
</form>
记得按钮btnhd先双击出后台click事件再加上style="display:none"隐藏按钮,然后在后台click事件写查询数据库