Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Server Control and Component Development by Dr. Shahram Khosravi; ISBN: 9780471793502
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 13th, 2009, 03:05 AM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CreditCard Control Validators help

Hi
Even though I am developing using 3.5 I am using this book to learn about Server Controls.
Using Chapter 5 and 6

I am trying to implment validators and i keep getting an error
"Unable to find Control Id "creditCardNoTextBox " referenced by the controlToValidate property of my "reqCreditCardNoTextBox"

This is what I have done
Added a RequiredFieldValidator creditCardNoRequired
Added CreditCardControlContainer creditCardNoValidatorContainer
Added a ContainerType.CreditCardNoValidator
Added a case to CreateContainerChildControl to include CreditCardNoValidator
Added to ApplyContainerStyle
Added to RenderContents

case ContainerType.CreditCardNoValidator:
creditCardNoRequired.ID="reqCreditCardNo"
creditCardNoRequired.ControlToValidate="creditCard NoTextBox"
creditCardNoRequired.Text="Required"
creditCardNoRequired.Display=Validator.Display=Dyn amic

container.Controls.Add(creditCarNoRequired)


What Am I doing Wrong?
Can you help?
Thanks a lot
Reply With Quote
Reply


Thread Tools
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
requiredfield validators issue alienaheart ASP.NET 2.0 Professional 1 October 24th, 2008 01:29 PM
Javascipt and validators toma12 ASP.NET 2.0 Professional 0 October 3rd, 2006 12:06 PM
Error: 'Page Validators' is undefined camelia_flower C# 3 September 20th, 2004 08:20 PM
Two buttons, One page, + req~validators? developerz BOOK: ASP.NET Website Programming Problem-Design-Solution 4 October 1st, 2003 01:20 AM
Validators not working in DataGrid swanand VS.NET 2002/2003 0 September 9th, 2003 06:15 AM



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


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