Il tutto utilizzando JQuery.
Il tag html Radionbutton list.
asp:RadioButtonList ID="RblAbilitadisabilita" runat="server" AutoPostBack="false"
CssClass="tblLabel" RepeatDirection="Horizontal">
Il tag html textbox
asp:TextBox ID="txtCasella" runat="server" MaxLength="200" Columns="10" > /asp:TextBox
Lo script Jquery
$(function() {
$('[id*=RblAbilitadisabilita] input').unbind().click(function(e) {
var val = $('[id*=RblAbilitadisabilita]').find('input:checked').val();
if (val == "d") {
$('#<%=txtCasella.ClientID%>').attr("disabled", "disabled");
}
else {
$('#<%=txtCasella.ClientID%>').removeAttr("disabled");
}
});
});