Hello All,
I have a tree view control and i want to attach a client side event to the tree view control.
When ever any node is changed the javascript should fire.
Here is what i have written:
function CheckSaved(hdChange) {
alert('hello world');
if (document.getElementById(hdChange).value == 1) {
var res = alert("You have not Saved your changes. Continue ?");
if (res)
return true;
else
return false;
}
}
tvRequirements.Attributes.Add("onselectedindexchange", "return CheckSaved('" + hdChange.ClientID + "');");
Here i am attaching the javascipt in the PreRender of my Page.
Kindly, help me. My javascript is not firing.
Regards,
Behroz Sikander
...
Go to the complete details ...