I need help with asp.net?

Shorty2

New member
I am trying to get my checkbox to hide once the user selected something from the drop down list. I have this code that I need to use. I have tried null, true, false where the ?? are in the code below, but I can't get the check box to disappear when someone selects a state from my drop down list. And when the page is cleared or they select the blank field in the drop down list the check box for add new state is supposed to reappear. Can someone please help.

Fill in the ?? below

if(ddlState.SelectedIndex==??){
cbNST.Visible = false;
}
if(ddlState.SelectedIndex==??){
cbNST.Visible = true;
}
 
Back
Top