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
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
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