0
使用花式框我建了一个photgallery。当用户点击一个缩略图时,一个全尺寸的图像打开在一个漂亮的盒子里。在那个漂亮的box popu中,用户可以提交评论,并可以回复评论,同意/不同意评论(类似于facebook相册)。 所有这些工作正常。 我的问题是,当用户点击提交按钮后发生后弹出关闭。我不想让弹出窗口关闭,但只需要更新内容。我尝试使用asp:UpdatePanel AJAX控件,但页面仍然回发,关闭弹出窗口。我不确定idf这是因为更新面板是在fancybox弹出窗口内。下面是我使用的代码。任何在解决这个问题上的建议都会很有帮助。asp:updatePanel内fancybox - 不工作
谢谢!
<asp:TextBox ID="txtComment" runat="server" Height="40" Width="400" TextMode="MultiLine"></asp:TextBox>
<asp:ImageButton ID="commentSubmitButton" runat="server" Text="Submit" OnClick="SubmitComment" ImageUrl="~/imgs/section/submit.jpg" />
<asp:UpdatePanel runat="server" id="commentsRepeaterUpdatePanel">
<Triggers>
<asp:AsyncPostBackTrigger controlid="commentSubmitButton" eventname="Click" />
</Triggers>
<ContentTemplate>
<asp:Repeater ID="rptComments" runat="server" OnItemDataBound="rptComments_ItemDataBound">
<ItemTemplate>
//Code that Loads the comments, upon OnItemDataBound
</ItemTemplate>
</asp:Repeater>
</ContentTemplate>