Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- btn.OnClientClick = string.Format("{0}; dlg.close();",
- ClientScript.GetPostBackEventReference(btn, null));
- private void CloseDialog()
- {
- string script = string.Format(@"closeDialog()");
- ScriptManager.RegisterClientScriptBlock(this, typeof(Page), UniqueID, script, true);
- }
- function closeDialog() {
- $.modal.close();
- }
- function modalShow(dialog) {
- // if the user clicks "Save" in dialog
- dialog.data.find('#ButtonSave').click(function(ev) {
- ev.preventDefault();
- //Perfom validation
- // close the dialog
- $.modal.close();
- //Fire the click event of the hidden button to cause a postback
- dialog.data.find('#ButtonSaveTask').click();
- });
- dialog.data.find("#ButtonCancel").click(function(ev) {
- ev.preventDefault();
- $.modal.close();
- });
- }
- $('#myJQselector').modal({onClose: mynewClose});
- function myNewClose (dialog)
- {
- dialog.close();
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
- {appendTo:'form'}
Add Comment
Please, Sign In to add comment