I have a client side java script funtion that I am creating from the code behind page using RegisterStartupScript.
I also have a control on my page, that has a SelectedDate property that gives me the date the user selected.
What I am wanting to do is some more validation, so I want to call my JS passing in the control.
How can I do this?
function ValidateForm(strDate) {
var dt = strDate;
//var dt=document.frmSample.txtDate
if(!isDate(dt.SelectedDate)){
//if (isDate(dt.value)==false){
dt.focus()
return false
}
return true
}
Thanks,
KSS
Ordinary Programmer
I also have a control on my page, that has a SelectedDate property that gives me the date the user selected.
What I am wanting to do is some more validation, so I want to call my JS passing in the control.
How can I do this?
function ValidateForm(strDate) {
var dt = strDate;
//var dt=document.frmSample.txtDate
if(!isDate(dt.SelectedDate)){
//if (isDate(dt.value)==false){
dt.focus()
return false
}
return true
}
Thanks,
KSS
Ordinary Programmer