Friday, March 16, 2012

Modal pop up like window.confirm

Below is the javascript code i am using
function confirmDelete()
{
var returnValue = window.confirm("Deleting the current
page. Continue?");
return returnValue;
// var returnValue = $find('mdlPopUpExt').show();
// return returnValue;
}
I like to do the same thing using modal popup. I like to return true
or false according to the button clicked in the panel for modal popup.
Thanks,
ArnabOn Mar 24, 8:06=A0am, Arnab das <arna...@.gmail.com> wrote:
> Below is the javascript =A0code i am using
> =A0function confirmDelete()
> =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 var returnValue =3D window.confirm("Deleting the c=[/color
]
urrent
> page. Continue?");
> =A0 =A0 =A0 =A0 =A0 =A0 return returnValue;
> // =A0 =A0 =A0 =A0 =A0 =A0var returnValue =3D $find('mdlPopUpExt').show();=[/color
]
> // =A0 =A0 =A0 =A0 =A0 =A0return returnValue;
> =A0 =A0 =A0 =A0 }
> I like to do the same thing using modal popup. I like to return true
> or false according to the button clicked in the panel for modal popup.
> Thanks,
> Arnab
I think OnClientClick may help here.
<ajaxControlToolkit:ModalPopupExtender...
=2E..
<asp:Panel...
<asp:Button ID=3D"Cancel" OnClientClick=3D"return false;"
On Mar 24, 2:34=A0pm, Alexey Smirnov <alexey.smir...@.gmail.com> wrote:
> On Mar 24, 8:06=A0am, Arnab das <arna...@.gmail.com> wrote:
>
>
>
>
current
>
);
>
>
> I think OnClientClick may help here.
> <ajaxControlToolkit:ModalPopupExtender...
> ...
> <asp:Panel...
> <asp:Button ID=3D"Cancel" OnClientClick=3D"return false;"- Hide quoted tex=[/color
]
t -
> - Show quoted text -
I need to return false or true. I am using OnClientClick to call this
javascript function from a linkbutton which is inside a listview. But
modal pop does no return a value.
On Mar 24, 10:44=A0am, Arnab das <arna...@.gmail.com> wrote:
> On Mar 24, 2:34=A0pm, Alexey Smirnov <alexey.smir...@.gmail.com> wrote:
>
>
>
>
>
he current
>
w();
>
>
>
>
ext -
>
> I need to return false or true. I am using OnClientClick to call this
> javascript function from a linkbutton which is inside a listview. But
> modal pop does no return a value.- Hide quoted text -
> - Show quoted text -
Something like this?
http://mattberseth.com/blog/2007/10...irm_dialog.html

0 comments:

Post a Comment