I have some javascript that fires with the OnClientCheckChanged event of 2 radio buttons. It enables/disables the RadUpload control on the page depending on the radio button selected (see client code below). This code works fine until the page posts back to the server (see server code below), at which point I cannot enable the RadUpload control with the client code. I think I may need to enable/disable the individual buttons inside RadUpload (Select and Clear) on the server, but I'm not sure how to access them. Any help would be appreciated.
client code
var newDocButton = $find("<%= RadButton1.ClientID %>");
var newLinkButton = $find("<%= RadButton2.ClientID %>");
var upload = GetRadUpload("<%= RadUpload1.ClientID %>");
if (newDocButton.get_checked())
upload.Enabled = false;
else
upload.Enabled = true;
server code
if (RadButton1.Checked)
RadUpload1.Enabled = true;
else
RadUpload1.Enabled = false;