J
James Radke
Hello,
I have a datagrid, which contains data, as well as a linkbutton column and a
button column. I have added attributes to the button like:
button.attributes.add("OnClick", "javascript: funcname('" &
linkbutton.UniqueID & "');")
*NOTE: this code is taking place in the OnItemDataBound function, and
after I have the valid reference to the correct linkbutton......
This should then run the client side javascript function as follows:
function funca(linkID) {
document.getElementById(linkID).disabled = false
}
For all other controls, and even standard buttons, the getElementById
function works perfectly like this. However, for the linkbutton, it does
not return an object so I cannot disable the linkbutton from the client side
code.
Can someone tell me how I can accomplish this?
Why doesn't the above code work?
Thanks!
Jim
I have a datagrid, which contains data, as well as a linkbutton column and a
button column. I have added attributes to the button like:
button.attributes.add("OnClick", "javascript: funcname('" &
linkbutton.UniqueID & "');")
*NOTE: this code is taking place in the OnItemDataBound function, and
after I have the valid reference to the correct linkbutton......
This should then run the client side javascript function as follows:
function funca(linkID) {
document.getElementById(linkID).disabled = false
}
For all other controls, and even standard buttons, the getElementById
function works perfectly like this. However, for the linkbutton, it does
not return an object so I cannot disable the linkbutton from the client side
code.
Can someone tell me how I can accomplish this?
Why doesn't the above code work?
Thanks!
Jim