Solved

Problems with required field validator

Posted on 2006-10-20
3
182 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
wefewf 2 42
countPairs challenge 7 57
What is Python programming? 3 62
Program to display an alert on Windows Toolbar 2 65
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

708 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

19 Experts available now in Live!

Get 1:1 Help Now