Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 22, 2012 03:15 PM by adharbert
Apr 24, 2007 12:03 AM|LINK
When the checkbox and CustomValidator are inside The "CreateUserWizard" form It won't work.
Outside it, there's no problems. My code is:
Text=" I agree to the Detelli Property Network"
args.IsValid = document.getElementById(
I've been trying to write some Visual Basic in the code behind that I can use,
but it's not working, no matter what I do it pulls up the error as though the checkbox is unchecked.
Protected Sub ValTermsCheckBox_ServerValidate(ByVal source
ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs)
As CheckBox = CreateUserWizardStep1.Controls(0).FindControl("AcceptTermsCheckBox")
If AcceptTermsCheckBox.Checked =
This is really leaving me stumped, any ideas would be greatly appreciated.
Thank you in advance
Apr 25, 2007 02:50 PM|LINK
I have now figured it out, and for anyone having the same concern, here's what I did.
do was give it a proper location.
function AcceptTermsCheckBoxValidation(source, args)
args.IsValid = document.getElementById('<%= CType(CreateUserWizardStep1.ContentTemplateContainer.FindControl("AcceptTermsCheckBox"), CheckBox).ClientID %>')
I haven't tested this on anything other than IE but I'm sure it's fine.
It took forever but it feels so good to beat that code.
Good Luck to all.
May 17, 2007 09:39 PM|LINK
May 19, 2007 01:44 AM|LINK
I had errors when I put it in a .js file, mainly because I'm using MasterPages, try just putting the code in your page outside of the CreateUserWizard section. If you're still having errors, post your code and errors.
Jan 18, 2008 03:56 AM|LINK
This is exactly what i needed.
But it doesn't work with Firefox :-(
And i need it with Firefox.
Someone have an idea why it is not working with Firefox?
N.B. Dont works for me with IE 6 in a .js external file.
Jan 18, 2008 05:04 PM|LINK
Jan 18, 2008 05:06 PM|LINK
What is ValTerms.Validate;
Jan 18, 2008 05:17 PM|LINK
Jan 19, 2008 12:09 AM|LINK
Check it on my site on the register page in firefox.
I am still using the same code, and it works great.
Jan 19, 2008 12:51 AM|LINK
Hummm, can you show me your actual code please...