protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { dbPlaceHolder.Controls.Add(new Literal { Text = cityManager.BindDataforViewCitiesPageTable().ToString() }); LoadCountryDropDown(); } if (countryRadioButton.Checked) { countryDropDownList.Enabled = true; searchCityTextBox.Disabled = true; } else if (cityRadioButton.Checked) { searchCityTextBox.Disabled = false; countryDropDownList.Enabled = false; } }