function RadioEvent(Status,Button) {// var Button1='<%=btnAccept.ClientID %>';// aler(document.getElementById(Button1).Text); if(Status=="Request Accepted") { document.getElementById(Button).Enabled = true;// document.getElementById('btnAccept').disabled=true; //document.getElementById(Button1).setAttribute('Enabled','true'); //document.getElementById(Button).disabled = true; //alert(Status); //document.getElementById('btnDecline').Enabled=false; //document.getElementById('btnAccept').Enabled = true; } else document.form1.btnDecline.Enable=true; //document.getElementById(Button1).removeAttribute('Enabled'); //document.getElementById(btnDecline).disabled = false; }
MyRadioButton.Attributes.Add("onclick", "RadioEvent('" + Status + "','btnDecline');");