Panel Default Button Error
Hello,
I have a page that is based on a Master Page. The page has AJAX contolled tabs and on one tab I have 2 panels, each with 1 button. Only 1 panel is visible at a time. I am trying to get the button on the visible panel to be the DefaultButton so that when Enter is pressed the click event is fired off. The issue that I am having is that I get this error no matter what I try: The DefaultButton of 'form1' must be the ID of a control of type IButtonControl.
I have tried setting the Default Button property of the panel to the buttons client id and to its unique id.
The Source Code shows this:
<button onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); __doPostBack('ctl00$mainContent$tcIndex$tpSearch$b tnAdvancedSearch','')" id="ctl00_mainContent_tcIndex_tpSearch_btnAdvance d Search">Advanced Search</button>
I also tried setting the Default Button property of the panel to
ctl00$mainContent$tcIndex$tpSearch$btnAdvancedSear ch and
ctl00_mainContent_tcIndex_tpSearch_btnAdvancedSear ch but these results were the same error as above.
Any other ideas?
|