TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shahid
NA
13
0
problem in custome validaion
Aug 31 2008 9:01 AM
hi
my problem is, i want to validation two controls in custom validation
please any body tell me how i am perform this thing.
--------------------------------------------------------------------------------
my code in javascript is
<script language="javascript" type="text/javascript">
function validate_CheckInOutTime(source, arguments)
{
var check_in_hour = document.aspnetForm.<%=dpl_check_in_hour.ClientID%>;
var check_in_minute = document.aspnetForm.<%=dpl_check_in_minute.ClientID%>;
var zero = "0";
alert(check_in_minute.value);
if(check_in_hour == zero && check_in_minute == zero)
{
alert(zero.value);
arguments.IsValid = false;
return;
}
else
{
arguments.IsValid = true;
return;
}
document.aspnetForm.dpl_check_in_hour.focus();
}
</script>
but this does not validate
Reply
Answers (
1
)
sub report problem
Public lists?