|
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?
|
|
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!
|
|
Rank: Member Groups: Member
Joined: 5/12/2012 Posts: 11
|
Found it, there was nested apostrophes, should have been onclick='eo_GetObject(\'{0}\').close();'
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Great. Glad that you got it working!
|
|