Try the following:
function openAdresYeni(p) {
document.getElementById('hdnAdresIndex').value = p;
}
NOTE. . By the way, if your hdnAdresIndexis a server control, you should use the ClientID property to get the client side identifier:
function openAdresYeni(p) {
document.getElementById('<%= hdnAdresIndex.ClientID %>').value = p;
}
source
share