enter code hereMy jquery ui dialog contains an iframe and has the option of two buttons, apply and close.
Here is my javascript generating this:
$(function () {
$(".btn").click(function() {
var $this = $(this);
$('<iframe id="PDFDialog" frameborder="0" src="' + this.href + '" />').dialog({
title: ($this.attr('title')) ? $this.attr('title') : 'External Site',
autoOpen: true,
width: 700,
height: 600,
modal: true,
resizable: true,
buttons: {
Apply: function () {
$("#<%= applyHiddenBtn%>").click();
$(this).dialog("close");
},
Close: function () {
$(this).dialog("close");
}
}
}).width(650).height(550);
return false;
});
});
Im not sure how to execute my code behind that i have prepared for the dialog button “Apply”. As an attempt i have this other server button <asp:Button runat="server" ID="applyHiddenBtn" OnClick="applyHiddenBtn_Click"/> that i try firing at the same time.
The goal is to fire this:
Sub applyHiddenBtn_Click(sender As Object, e As EventArgs)
lblTest1.Text = "HelloWorld!!!1!"
End Sub
Any help please?
The following will execute a
POSTto the server executing the handler for yourapplyHiddenBtn:http://weblogs.asp.net/yousefjadallah/archive/2010/06/27/insure-that-dopostback-function-implemented-on-the-page.aspx