Hi, Debranjan.
I saw from one of your other posts that you would like the second drop down list to disappear if they select the second option in the first drop down list. THen you'd like it to reappear if they choose the first option again.
In your click event handler in the *.aspx.cs code, just change the second drop down list's
visible property to either true or false. Like this:
protected void ddl_Activity1_SelectedIndexChanged(object sender, EventArgs e)
{
ddl_SubActivity1.Visible = !ddl_SubActivity1.Visible;
}
If you add more options to the drop down lists with more rules, then you will will next to add if/else blocks to the code.
This is the Microsoft certification and Learning forum.
This question would best be answered on the ASP.NET Web Forms forum, located here:
http://forums.asp.net/18.aspx/1?Web+Forms
Good luck!
Best wishes, Davin Mickelson