B
Bob Schroeder
I want to conditionally disable/enable a link button based on what row
a user has selected in a grid.
I have some javascript that is called as a user selects different
rows in the grid.
I conditionally call this code in a javascript function
document.getElementById('btnChangeLot').disabled = true;
The button appears disabled (grayed out) as expected but it still
posts back...because .net's OnClick javascript:__DoPostBack
('btnChangeLot', '') attribute is still on the button? Is there anyway
to remove this attribute using javascript?
Is there other ways to get this to work?
Thanks!
a user has selected in a grid.
I have some javascript that is called as a user selects different
rows in the grid.
I conditionally call this code in a javascript function
document.getElementById('btnChangeLot').disabled = true;
The button appears disabled (grayed out) as expected but it still
posts back...because .net's OnClick javascript:__DoPostBack
('btnChangeLot', '') attribute is still on the button? Is there anyway
to remove this attribute using javascript?
Is there other ways to get this to work?
Thanks!