rpm
asked on
The DefaultButton of 'panEdCrit' must be the ID of a control of type IButtonControl ???
Hi,
I have an ASP.Net project that contains the following line:
panEdCrit.DefaultButton = butType1Search.UniqueID
On my development PC this works fine, and the default button within the panel panEdCrit is set to butType1Search
When I upload this to the web server I get the following error:
The DefaultButton of 'panEdCrit' must be the ID of a control of type IButtonControl.
What's going on, and how do I fix this?
Thanks,
Richard
I have an ASP.Net project that contains the following line:
panEdCrit.DefaultButton = butType1Search.UniqueID
On my development PC this works fine, and the default button within the panel panEdCrit is set to butType1Search
When I upload this to the web server I get the following error:
The DefaultButton of 'panEdCrit' must be the ID of a control of type IButtonControl.
What's going on, and how do I fix this?
Thanks,
Richard
Which type of control is butType1Search?
ASKER
<asp:Button ID="butType1Search" runat="server" Text="Search" />
Is panEdCrit inside another panel? I remember seeing there was a problem with nested containers and default buttons.
ASKER
The panel isn't inside anything else, but there is a multiview inside the panel, and the button is inside that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Based on that article, I tried setting the DefaultButton for the root form, rather than the panel, and that worked.
Thanks for your help.
Thanks for your help.