Anything wrong with this code?

If DropDownList1.SelectedItem.Text = "xxxxxxx" && RadioButton1.Checked == True Then.....

problem solved, however, how can i make the radio button can only be checked once, and then unchecked? Because once i already checked it, it cant be uncheck again..help..thanks

You need to set the AutoPostBack property for RadioButton1 to TRUE. Double click on it (VB will set you up with the sub that handles a change), write the code

RadioButton1.enabled = False

You will probably on pageload want to do a maintainscrollpositiononpostback = true

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.