I have yet another strange need. I have a jQuery dialog that has a dynamic button (
My Button that will be "fired":
<asp:Button ID="RenewSubscriptionButton" runat="server" Visible="false" />
My Hidden input with the postback val:
<input type="hidden" id="RenewSubscriptionPostBackValue" runat="server" />
In my page_load:
Me.RenewSubscriptionPostBackValue.Value = _
Me.Parent.Page.ClientScript.GetPostBackEventReference _
(Me.RenewSubscriptionButton, String.Empty)
AddHandler Me.RenewSubscriptionButton.Click, AddressOf RenewSubscription
In my Asp.net control I have a js function that is called and evaluates the __doPostBack that is generated:
$('#mgrSubPanel').dialog('destroy');
// cause postback and have it run the workflow...
eval($("#<%= RenewSubscriptionPostBackValue.ClientID %>").val());
It causes postback but doesn't call my function RenewSubscription that's in my code behind. Not sure if the addressing is failing or what but maybe one of you can see my fault and correct me...
Thanks in advance...