Solved

Problems with required field validator

Posted on 2006-10-20
3
183 Views
Last Modified: 2012-05-05
Hi:
    I have a required field validator to validate a textbox on a web form. When the page loads the textbox is defaulted to todays date. If i delete the date the required field validator fires correctly and pops up a message saying "Please enter a date". If I manually enter a date in the correct format the required field validators disappears which is right. Now I also have a date picker which inputs the selected date into the textbox. However if i delete the date in the textbox and select the date from the date picker the required field validator message stays there when it should actually disappear since I have chosen a date from the date picker.

Any help would be appreciated.
Thanks,
Aditya
0
Comment
Question by:lyptus
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 17781752
Ah, the question is then:

  How does the "date picker" update the textbox?

From the description, it sounds like it is not using a pure assignment (i.e., txtbox.value = datePicker() ).
I would check how the datePicker is attempting to update the texbox, and have it be a pure assigment.
Be careful though.  If the user cancels out of the datePicker routine/mechanism, you want to leave the
"Please enter a date" message alone
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
strCopies  challenge 17 82
listing all functions in JavaScript 19 178
move one pixel 4 58
Adding Namespace to the second node of the xml 16 64
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now