<a id="various" runat="server" href="#inline" style="visibility: hidden"></a> <asp:Literal ID="fancyLtr" runat="server"></asp:Literal> <asp:UpdatePanel ID="UpdatePanel6" runat="server"> <ContentTemplate> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> </ContentTemplate> </asp:UpdatePanel>
$(document).ready(function () { $("#ContentPlaceHolder1_various").fancybox(); });
protected void Button1_Click(object sender, EventArgs e) { various.Attributes["href"] = "#inline"; fancyLtr.Text = "<script>jQuery(document).ready(function() {$(\"#ContentPlaceHolder1_various\").trigger('click');});</script>"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)