Solved

The DefaultButton of 'panEdCrit' must be the ID of a control of type IButtonControl ???

Posted on 2014-10-17
6
218 Views
Last Modified: 2014-10-17
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
0
Comment
Question by:rpm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:louisfr
ID: 40386626
Which type of control is butType1Search?
0
 
LVL 1

Author Comment

by:rpm
ID: 40386636
<asp:Button ID="butType1Search" runat="server" Text="Search" />
0
 
LVL 11

Expert Comment

by:louisfr
ID: 40386645
Is panEdCrit inside another panel? I remember seeing there was a problem with nested containers and default buttons.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 1

Author Comment

by:rpm
ID: 40386651
The panel isn't inside anything else, but there is a multiview inside the panel, and the button is inside that.
0
 
LVL 11

Accepted Solution

by:
louisfr earned 500 total points
ID: 40386661
0
 
LVL 1

Author Comment

by:rpm
ID: 40386677
Based on that article, I tried setting the DefaultButton for the root form, rather than the panel, and that worked.

Thanks for your help.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question