Wrox Programmer Forums
|
Visual Basic 2008 Professionals For advanced Visual Basic coders working in version 2008. Beginning-level questions will be redirected to other forums,
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 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
 
Old March 2nd, 2010, 08:41 AM
Registered User
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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_btnAdvanced 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
Update Panel & Button Control Harjinder ASP.NET 2.0 Professional 0 January 28th, 2008 06:13 AM
make html button default sansircar ASP.NET 1.0 and 1.1 Professional 1 October 23rd, 2006 04:25 PM
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.