Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problems with required field validator

Posted on 2006-10-20
3
Medium Priority
?
191 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 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes

885 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