N
Nish
I have the following code in my text box blur event.
function MakeYearComplete(frmName,ctlName,EntTxt)
{
_eval('var txtObj = document.' + frmName + '.' + ctlName + ';');
var s = EntTxt.lastIndexOf("/");
var YearPart = EntTxt.substring((s + 1));
var ObjDate =new Date(EntTxt);
var ObjMMPart = ObjDate.getMonth() + 1;
var ObjDDPart = ObjDate.getDate();
if (YearPart.toString().length == 2)
txtObj.value = ObjMMPart + "/" + ObjDDPart + "/" + "20" +
YearPart.toString()
}
How to achieve the same effect on data grid templete column which has text
box? Only the problem here I am facing is I could not set the processed data
back to the text box control inside the grid.
Thanks for your advice.
-Nish
function MakeYearComplete(frmName,ctlName,EntTxt)
{
_eval('var txtObj = document.' + frmName + '.' + ctlName + ';');
var s = EntTxt.lastIndexOf("/");
var YearPart = EntTxt.substring((s + 1));
var ObjDate =new Date(EntTxt);
var ObjMMPart = ObjDate.getMonth() + 1;
var ObjDDPart = ObjDate.getDate();
if (YearPart.toString().length == 2)
txtObj.value = ObjMMPart + "/" + ObjDDPart + "/" + "20" +
YearPart.toString()
}
How to achieve the same effect on data grid templete column which has text
box? Only the problem here I am facing is I could not set the processed data
back to the text box control inside the grid.
Thanks for your advice.
-Nish