![]() |
usercontrol and clientside validation
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 |
Re: usercontrol and clientside validation
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" <anonymous@discussions.microsoft.com> wrote in message news:01c101c3d6de$8fe773e0$a301280a@phx.gbl... > 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 |
| All times are GMT. The time now is 03:41 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.