Validating custom placeholder controls
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Validating custom placeholder controls




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Validating custom placeholder controls  
J Foreman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-18-06 06:24 PM

How can I validate custom placeholder controls using the custom placeholder
validation? I want to validate the DateTimePickerPlaceholderControl and a
custom dropdownlist placeholder control I created that lists values from a
database.

Accessing the textbox.text (DateTimePicker) and the
dropdownlist.selectedvalue properties is the problem.

Any code you can provide as well would be greatly appreciated.

Thanks in advance,
JForeman





[ Post a follow-up to this message ]



    Re: Validating custom placeholder controls  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-18-06 06:24 PM

Hi J,

placeholder validation requires a lot of stuff: custom placeholder controls,
custom validator controls, custom console actions, ....
We have covered this in depth in a dedicated chapter in the following book:
http://tinyurl.com/8ugwj

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"J Foreman" <JForeman@discussions.microsoft.com> wrote in message
news:F5EEAA91-AF53-4EBE-8B34-FBF8D85F67C7@microsoft.com...
> How can I validate custom placeholder controls using the custom
> placeholder
> validation? I want to validate the DateTimePickerPlaceholderControl and a
> custom dropdownlist placeholder control I created that lists values from a
> database.
>
> Accessing the textbox.text (DateTimePicker) and the
> dropdownlist.selectedvalue properties is the problem.
>
> Any code you can provide as well would be greatly appreciated.
>
> Thanks in advance,
> JForeman







[ Post a follow-up to this message ]



    Re: Validating custom placeholder controls  
J Foreman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-18-06 06:24 PM

Hi Stefan,

I have both of your books (Building and Advanced). I successfully created a
radHtmlPHWithValidation object.

I took the same approach as the HTMLPlaceholderControl with Validation, and
tried to access the textbox.text (DateTimePicker) and the
dropdownlist.selectedvalue properties of the associated controls
(ctrl.FindControl()). I created new RequiredDropDownPHValidator and
DropDownPHWithValidation objects within the MCMSValidators project and still
no success.

I can validate both the Html and ToolTip properties of the
HTMLPlaceholderWithValidation control, but this doesn't work for the other
custom controls; no error and the ErrorMessage is never displayed.

"Stefan [MSFT]" wrote:

> Hi J,
>
> placeholder validation requires a lot of stuff: custom placeholder control
s,
> custom validator controls, custom console actions, ....
> We have covered this in depth in a dedicated chapter in the following book
:
> http://tinyurl.com/8ugwj
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44[/url...nyurl.com/8ugwj
> ----------------------
>
>
> "J Foreman" <JForeman@discussions.microsoft.com> wrote in message
> news:F5EEAA91-AF53-4EBE-8B34-FBF8D85F67C7@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: Validating custom placeholder controls  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-06 12:50 PM

Hi J,

I would suggest to debug your validator controls to see what's going on.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"J Foreman" <JForeman@discussions.microsoft.com> wrote in message
news:281183A6-2D69-4B93-BE99-E461471D5F88@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> I have both of your books (Building and Advanced). I successfully created
> a
> radHtmlPHWithValidation object.
>
> I took the same approach as the HTMLPlaceholderControl with Validation,
> and
> tried to access the textbox.text (DateTimePicker) and the
> dropdownlist.selectedvalue properties of the associated controls
> (ctrl.FindControl()). I created new RequiredDropDownPHValidator and
> DropDownPHWithValidation objects within the MCMSValidators project and
> still
> no success.
>
> I can validate both the Html and ToolTip properties of the
> HTMLPlaceholderWithValidation control, but this doesn't work for the other
> custom controls; no error and the ErrorMessage is never displayed.
>
> "Stefan [MSFT]" wrote:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:50 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register