Rank: Member Groups: Member
Joined: 4/29/2009 Posts: 13
|
Hi,
I have a simple modal dialog with an asp button in the content area. My objective is to close the dialog once the button is clicked.
I have wired to AcceptButton property to reference the asp button id (btnApplyRules).
The dialog is launched when another button on the page is clicked.
Should I move the button to the Footer of the dialog for it to work?
Thanks, Chris
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
AcceptButton should work, so we do not know for sure why it's not working for you without seeing your code. If you can post a test page that duplicates the error, we should be able to tell you what's wrong.
Whether the button is in footer or content region does not matter. However if you use AcceptButton, you may also want to check whether you have AcceptButtonPostBack set to true. I believe the default value is false, which often is not the desired behavior.
Thanks!
|