Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Modal pop up like window.confirm

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arnab das - 24 Mar 2008 08:06 GMT
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,
Arnab
Alexey Smirnov - 24 Mar 2008 10:34 GMT
> Below is the javascript  code i am using
>
[quoted text clipped - 13 lines]
> Thanks,
> Arnab

I think OnClientClick may help here.

<ajaxControlToolkit:ModalPopupExtender....
...
<asp:Panel...
<asp:Button ID="Cancel" OnClientClick="return false;"
Arnab das - 24 Mar 2008 10:44 GMT
> > Below is the javascript  code i am using
>
[quoted text clipped - 22 lines]
>
> - 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.
Alexey Smirnov - 24 Mar 2008 10:59 GMT
> > > Below is the javascript  code i am using
>
[quoted text clipped - 28 lines]
>
> - Show quoted text -

Something like this?
http://mattberseth.com/blog/2007/10/yui_style_yesno_confirm_dialog.html
Arnab das - 24 Mar 2008 11:32 GMT
> > > > Below is the javascript  code i am using
>
[quoted text clipped - 32 lines]
>
> - Show quoted text -

Yes something like this.
Actualy I have resolved the issue by using confirm button extender
with a modal popup.
But I am now running into a different issue. i can not set the
behaviour id for modal popup.When I am giving the behaviour id a
javascript error occurs saying 'two behavioud id is there' ,while if i
donot use the behavoir id still a javascript error occurs saying 'null
in null or not an object'

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.