Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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

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?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.