I am working on a web site project.
I have created custom control for the Time entry which will be similar as that of the widows Time control (Present below the windows clock) and which should accepts hours, minutes, seconds.
Validation for this control is provided in the Java Script by calling some of functions ValidateHours(), ValidateMinutes(), ValidateSeconds() etc.
I added this control in the web page twice one for start time and one for end time then the java scripts methods are also added twice with same names. Which causes validation for only one control.
Please find the code below;
<%@ Control Language="C#" AutoEventWireup="true" %>
| onchange="ValidateHours()">00 | onchange="ValidateMinutes()">00 | onchange="ValidateSeconds()">00 |
Replies
Know the answer? Post it — somebody with the same question will find it here.