Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > usercontrol and clientside validation

Reply
Thread Tools

usercontrol and clientside validation

 
 
Ken
Guest
Posts: n/a
 
      01-09-2004
Hi there,
I have a usercontrol and i have written sone clientside
validation script associated along with it. Now when i
register this usercontrol in the mainwebform, how can i
access the clientside validation to validate the
usercontrol?

Thanks in advance

-K
 
Reply With Quote
 
 
 
 
psb
Guest
Posts: n/a
 
      01-14-2004
if i know I will never add any more controls to the page I will let the page
render. then I will look at the source. your elements will have id's like
"_ctl45_txbZipCode" or "_ctl45_txbName". I would then use these as the name
to validate against...

if (document.Form1['_ctl45_txbName'].value.length == 0) return false;

**NOTE: if you add controls to the page the "ctl45" may change to "ctl46"
and so on. so when updateing the page, make sure the javascript validation
code works.

whatever. sorry if this is not what you are talking about....

-psb

"Ken" <(E-Mail Removed)> wrote in message
news:01c101c3d6de$8fe773e0$(E-Mail Removed)...
> Hi there,
> I have a usercontrol and i have written sone clientside
> validation script associated along with it. Now when i
> register this usercontrol in the mainwebform, how can i
> access the clientside validation to validate the
> usercontrol?
>
> Thanks in advance
>
> -K



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clientside validation for DataGrid's text boxes Kris ASP .Net 1 06-30-2005 04:39 PM
Clientside Validation and Page.IsValid Paul ASP .Net 1 05-25-2005 03:14 PM
Clientside validation not working. Dennis Calla ASP .Net 1 01-13-2005 05:05 PM
Clientside validation not working Eddie Dodd ASP .Net 4 05-27-2004 07:31 AM
Clientside validation with .NET Validator classes and Opera Roger Kjærnsrød ASP .Net Web Controls 2 05-01-2004 05:52 AM



Advertisments