Hello again
I have two drop-down lists on my web application.
#1. Country list
#2. US states list
By default #2 is disabled
protected void Page_Load(object sender, EventArgs e)
{
State.Enabled = false;
}
I need to enable it only if user will choose "United States".
My trial was as such:
private void CheckIfAmerican()
{
if (Country.Text == "United States") //Country is the name of #1 ddlist
{
State.Enabled = true; //State is the name of 2# ddlist
}
}
How to implement this case?