<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript">
...
$(function () {
$("#Panel3").dialog({
autoOpen: false,
autoResize: true,
resizable: false,
title: "Confirmation",
open: function (event, ui) {
$(this).parent().appendTo("form"); //allow .Net buttons to post back
}
});
});
function closePopup3() {
$("#Panel3").dialog("close");
}
function openPopup3() {
$("#Panel3").dialog("open");
}
...
</script>
<script language="C#" runat="server">
...
private void clickMe3(object sender, EventArgs e)
{
...
}
private void clickNo3(object sender, EventArgs e)
{
...
}
</script>
...
<div id="Panel3" runat="server">
Testing message
<br /><br />
<asp:Button id="Button3" OnClick="clickMe3" runat="server" Text="Yes"/>
<asp:Button id="Button4" OnClick="clickNo3" runat="server" Text="No"/>
</div>
...
no Panel has been shown by these codes. why? protected void Page_Load(object sender, EventArgs e)
{
...
if (!IsPostBack)
{
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "CallEvent", "openPopup3();return false;", true);
...
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE