Hi All,
When the RAdToolBar Button is clicked , i need to invoke the javascript function. I tried to do in the below method but javascript function is not getting called!! pls help
this is ascx(since I'm using an user ctrl)
When the RAdToolBar Button is clicked , i need to invoke the javascript function. I tried to do in the below method but javascript function is not getting called!! pls help
this is ascx(since I'm using an user ctrl)
<
script type="text/javascript">
function DateValid()
{
alert(
"End Date cannot be lesser than the Start Date");
}
and in ascx.cs, I have the below lines to call the js function.
if (obDoSchedule.DtStartDate >= obDoSchedule.DtEndDate)
{
ctlButtonBar.Attributes.Add(
"onClick", "return DateValid();");
}
Is this correct? I'm not getting the javascript alert msg even if DtStartDate >=DtEndDate.Pls help!!