Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8203635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:37:32+00:00 2026-06-07T07:37:32+00:00

I have two dropdownlist. In first dropdownlist have to pass only static values as

  • 0

I have two dropdownlist. In first dropdownlist have to pass only static values as mentioned below.Based on first dropdownlist value the second dropdownlist should automatically list corresponding values. After that Gridview should load.

<asp:DropDownList ID="DDL1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL1_SelectedIndexChanged">
<asp:ListItem Value="%">All</asp:ListItem>
<asp:ListItem Value="Test1">Test1</asp:ListItem>
<asp:ListItem Value="Test2">Test2</asp:ListItem>
<asp:ListItem Value="Test3">Test3</asp:ListItem>
</asp:DropDownList>                                                                                         
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:37:36+00:00Added an answer on June 7, 2026 at 7:37 am

    Follow these steps.

    1. Create an event handler for first dropdownlist
      Example:

      Private void DDL1_SelectedIndexChanged(object sender,EventArgs e)
      {
          // Here you bind your second dropdownlist 
      }
      
    2. Then in the second dropdownlist event handler, Let it’s name is DDL2

      Private void DDL2_SelectedIndexChanged(object sender,EventArgs e)
      {
         // Here you bind your Grid View
        // Put your logic here
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two dropdownlist. The selected value from the first one loads the other.
I am using MVC3, EF Model first. I have a form with two DropDownList
I have a dropdownlist that has the value of two columns in it... One
I have two dropdownlist which shows places in my asp.net MVC(C#) application. The First
I have two dropdownlistfor , and the second of them should be filled with
I have two dropdownlists, the first is State & the second is City. I
I have two dropdownlists ,selecting the first dropdown causes postback and second dropdown gets
i have two dropdown list. first drop down:1 enter code here <form:select path=custName id=custName>
I have two DropDownList <asp:DropDownList ID=ddl1 runat=server Width=173px CssClass=ddl > </asp:DropDownList> <asp:DropDownList ID=ddl2 runat=server
I have created two dropdownlist, what i am trying to do is make them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.