|
Home > Archive > Microsoft Content Management Server > July 2006 > Validating custom placeholder controls
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Validating custom placeholder controls
|
|
| J Foreman 2006-07-18, 1: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
| |
| Stefan [MSFT] 2006-07-18, 1: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
| |
| J Foreman 2006-07-18, 1: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 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...
>
>
>
| |
| Stefan [MSFT] 2006-07-19, 7:50 am |
| 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:
>
|
|
|
|
|