【发布时间】:2013-04-12 16:23:07
【问题描述】:
我有一个网站,用户可以在其中选择不同的卡片。我需要一种方法,在选择新卡时,页面不会刷新。当我现在单击后退按钮时,它只是回到以前的选择。我需要它返回上一页。这是图像更改的代码
<div class="imgCard" style="padding-right: 50px">
<asp:ScriptManager ID="ScriptManager" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
<ContentTemplate>
<fieldset style="border-width: 150px; border-style: none">
<asp:Image ID="imgCardChoice1" runat="server" />
<br />
<br />
<a id="openChange1" href="#" style="color: Red">Change Card</a>
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
</div>
当用户单击“更改卡片”时,会打开一个 jquery 模式框并允许他们更改卡片。感谢您提供任何帮助/建议。如果需要,选择新卡的代码在 C# 中。
【问题讨论】:
-
由于您使用的是
UpdatePanel,您能否将该页面的PostBack设置为#?
标签: c# jquery html jquery-ui updatepanel