hi,
i want code for first dropdownlist selected related values dispaly second dropdownlist like first dropdownlist values are listitem1=friuts selected related values dispaly second dropdownlist listitem1=apple,orange the same for first dropdownlist values are listitem2=game selected related values dispaly second dropdownlist listitem2=football,golf coding for aspxpage&aspx.cs page using c# language

hi,

design 
<asp:dropdownlist id="drop1" runat="server"/>
<asp:dropdownlist id="drop2" runat="server"/>
code
  protected void drop1_SelectedIndexChanged(object sender, EventArgs e)
    {
       drop2.datasource=table;
       drop2.databind();
   }

where table is the sql query u needed based on the selectedvalue of drop1.This is a just a 
example to show u how it works
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.