Welcome Guest Search | Active Topics | Sign In | Register

Closing a dialog box with button in footer Options
Joe Roberts
Posted: Friday, August 3, 2012 3:27:22 PM
Rank: Member
Groups: Member

Joined: 5/12/2012
Posts: 11
I am building a dialog control in the code. I am trying to add a button to the footer that will close the control.

I tried adding the following line of code:
DialogPopup.FooterHtml = string.Format("<input type='button' value='OK' onclick='eo_GetObject('{0}').close();' />", DialogPopup.ClientID);

The button appears correctly but the click event doesn't close the control. Any ideas on what I am missing?
eo_support
Posted: Friday, August 3, 2012 4:44:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Your code looks fine. If you can post a full test page that we can run here to reproduce the problem we should be able to find out what's wrong for you.

Thanks!
Joe Roberts
Posted: Friday, August 3, 2012 6:56:01 PM
Rank: Member
Groups: Member

Joined: 5/12/2012
Posts: 11
Found it, there was nested apostrophes, should have been
onclick='eo_GetObject(\'{0}\').close();'
eo_support
Posted: Friday, August 3, 2012 7:56:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Great. Glad that you got it working!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.