ASP.NET colorbox not refreshing destination page -
i have asp.net page has hyperlink opens asp.net page in colorbox jquery window.
<asp:hyperlink id="hl1" runat="server" cssclass="info_colorbox"> then have javascript open jquery colorbox:
<script> $(document).ready(function () { $(".info_colorbox").colorbox({ width: "900px", height: "600px" }); }); function pageload(sender, args) { if (args.get_ispartialload()) { $(".info_inscriptions").colorbox({ width: "900px", height: "600px" }); } } </script> i set navigation page in codebehind because changes depending on other controls.
the colorbox window works fine, problem destination page not refreshing contents. destination page has formview info reads database. if load page separately works fine , loads latest info database. problem when open in colorbox window not reading latest info.
you opening page, sure shouldn't using iframe display it? if opening html snippet, can turn off jquery's ajax caching. example:
$.ajaxsetup ({ cache: false });
Comments
Post a Comment