Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 3rd, 2010, 09:10 AM
Registered User
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Panel Default Button Error


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?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Panel Default Button Error MarieRaye Visual Basic 2008 Professionals 0 March 2nd, 2010 08:41 AM
Update Panel & Button Control Harjinder ASP.NET 2.0 Professional 0 January 28th, 2008 06:13 AM
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
Default Submit Button alyeng2000 ASP.NET 1.x and 2.0 Application Design 5 March 18th, 2005 08:51 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.