Hi mandi224,
You could achieve the same functionality via using AJAX but lets try with JavaScript for now.
at the end of the page add this script
<script language="JavaScript">
function ValidateUI(sourceCheckBox, targetTextBox)
{
document.getElementById(targetTextBox).focus();
if(sourceCheckBox == "radCityState")
{
document.getElementById("txtOrgName").disabled=true;
document.getElementById("txtZip").disabled=true;
}
}
</script>
Now to call this function
<asp:RadioButton ID="radOrgName" Text="Search by Organization Name:" Checked="true" GroupName="radOrgSearchType" runat="server" onClick="ValidateUI(this.id, "txtCity");" />
Repeat the if loop as per your requirements.
Let me know if you need help with it.
Regards,
Chinmay