Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problems with required field validator

Posted on 2006-10-20
3
Medium Priority
?
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…
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…
Starting up a Project

662 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