tmashley
Jan 21st, 2003, 08:25 AM
Hi all,
as you can't display a message box using vb.net, i have had to use javascript...
i am using a Popup Calendar that sent the value of text boxes to the dates selected
i need to make sure that the end date is after the start date.
this is what i am doing at the moment...
function CheckTime(){
if (document.CRC.txtStartDate.value >= document.CRC.txtEndDate.value){
var ErrMsg = "End Date Must be later than Start Date";
alert(ErrMsg);
return false;
}
}
the problem is; example
StartDate = 23/12/2003
EndDate = 13/11/2003
the code thinks that beacuse the first number is greater, then the whole number is, so it doesn't work.
please help.
Thanks
Tom
as you can't display a message box using vb.net, i have had to use javascript...
i am using a Popup Calendar that sent the value of text boxes to the dates selected
i need to make sure that the end date is after the start date.
this is what i am doing at the moment...
function CheckTime(){
if (document.CRC.txtStartDate.value >= document.CRC.txtEndDate.value){
var ErrMsg = "End Date Must be later than Start Date";
alert(ErrMsg);
return false;
}
}
the problem is; example
StartDate = 23/12/2003
EndDate = 13/11/2003
the code thinks that beacuse the first number is greater, then the whole number is, so it doesn't work.
please help.
Thanks
Tom