On calling javascript function only one value pops
Please help me here I want to pass the values from the asp to the java script function, only one value is passed instead of three on calling javascript. I will appreciate your help
<tr>
<td><input type="text" Name="DateFromOld(i)" value="<%=strDateFrom%>" size="12" maxlength="10" onclick="checkOldFromToDate();"></td>
<td><input type="text" Name="DateToOld(i)" value="<%=strDateUntil%>" size="12" maxlength="10" onclick="checkOldFromToDate();"></td>
<td><input type="text" Name="HourlyRateOld(i)" value="<%=intHourlyRate%>"></td><td><img type="button" name="btnDelete" src="images/xDel1.gif" onClick="javascript:DeleteConfirm('<%=strDateFrom% >','<%=strDateUntil%>','<%=intHourlyRate%>');"></td>
function DeleteConfirm(dt1, dt2, dt3){
alert(dt1,dt2,dt3)
var Msg=("Do want to delete the record" );
if (confirm(Msg)){
DateFromOld=dt1
document.thisForm.submit();
return true;
}
else {
alert("Records not Deleted");
return false;
}
}
|