Server-side validation of HTML Placeholder Controls
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Server-side validation of HTML Placeholder Controls

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Mei Ying [MVP]
Guest





Posted: Fri Jan 07, 2005 3:34 pm    Post subject: Server-side validation of HTML Placeholder Controls Reply with quote

Hi

Does anyone know if it is possible to implement
validation on a HTML Placeholder Control?

regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---
Back to top
Stefan [MSFT]
Guest





Posted: Fri Jan 07, 2005 5:31 pm    Post subject: Re: Server-side validation of HTML Placeholder Controls Reply with quote

Hi Mei Ying,

thats a little bit more complicated as the content is hosted inside the
ActiveX control dom.
The validation code either has to retrieve the content from there to
validate (not sure if this can be configured with the ASP.NET validators) -
or you would need to implement the validation code on your own.
Most checks are simple to implement like is numeric or is not empty or such
stuff.

Cheers,
Stefan.


"Mei Ying [MVP]" <anonymous@discussions.microsoft.com> wrote in message
news:099301c4f49c$26f718e0$a301280a@phx.gbl...
Quote:
Hi

Does anyone know if it is possible to implement
validation on a HTML Placeholder Control?

regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---
Back to top
Mei Ying [MVP]
Guest





Posted: Fri Jan 07, 2005 6:15 pm    Post subject: Re: Server-side validation of HTML Placeholder Controls Reply with quote

Thanks, Stefan

Yeah, I kinda figured that server-side validation, even if possible, would
go against the grain of the way the template file works... some console
buttons have to be re-programmed to work with postbacks, placeholders have
to be customized so that they "remember" the unsaved values, the page and
all placeholder values should not be saved and so on... that's a lot of work
to be done in order to achieve this one thing.

I think I may have found something - it may be possible to do it with
client-side javascripts instead. The available ASP.NET validators don't work
with the HTML Placeholder control so I've got to built one from the
BaseValidator class. Let's see how it goes :-)

--
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:%23WmHRyK9EHA.4028@TK2MSFTNGP15.phx.gbl...
Quote:
Hi Mei Ying,

thats a little bit more complicated as the content is hosted inside the
ActiveX control dom.
The validation code either has to retrieve the content from there to
validate (not sure if this can be configured with the ASP.NET
validators) -
or you would need to implement the validation code on your own.
Most checks are simple to implement like is numeric or is not empty or
such
stuff.

Cheers,
Stefan.


"Mei Ying [MVP]" <anonymous@discussions.microsoft.com> wrote in message
news:099301c4f49c$26f718e0$a301280a@phx.gbl...
Hi

Does anyone know if it is possible to implement
validation on a HTML Placeholder Control?

regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---

Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB