i am showing ajax modal popup window in that i have 2 imgeButtons(save, clear) when in save dialog is disappear but the save_click event cod is not fired what is the problem i am use following code.
In MASTER Page:-
function ok(sender, e)
{
$find('ModalPopupExtenderLogin').hide();
alert("for postBack");
__doPostBack('btnImgSave', e);
}
inClientPage:-
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="users.aspx.cs" Inherits="users" Title="Untitled Page" EnableEventValidation="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
| | style="margin-left: 0px; margin-bottom: 0px;" ToolTip="Add New User" AlternateText="Add New User"/> | |
GridLines="Horizontal" AllowPaging="true" PageSize="10" AutoGenerateColumns="false" DataKeyNames="UserId" Width="100%" onrowcommand="grdUsers_RowCommand" onrowediting="grdUsers_RowEditing" > | ||
PopupControlID="LoginPanel"
BackgroundCssClass="modalBackground"
DropShadow="true"
OkControlID="ImgBtnSave"
OnOkScript="ok()"
CancelControlID="imgBtnClose" />
Suthish NairPosted Aug 20, 2010, 7:29 AM
{
$find('ModalPopupExtenderLogin').hide();
document.getElementById('<%=imgBtnSave.ClientID%>').click();
}