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 8443547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:10:05+00:00 2026-06-10T09:10:05+00:00

I have to load the data in asp:grid after filtering from two asp:dropdown list.

  • 0

I have to load the data in asp:grid after filtering from two asp:dropdown list. For example following is the dropdown lists:

<asp:DropDownList ID="ddlb" runat="server" AutoPostBack="True" 
                    CssClass="ddlb" Width="100px" DataSourceID="SqlDataSource3" 
                    DataTextField="MonthYearName" DataValueField="MonthYear" 
                    onselectedindexchanged="Changed">
                </asp:DropDownList>

                <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ProdDB %>" SelectCommand="# some sql query">
                </asp:SqlDataSource>

<asp:DropDownList ID="asd" runat="server" AutoPostBack="True" 
                    CssClass="ddlb" Width="100px" DataSourceID="SqlDataSource4" 
                    DataTextField="MonthYearName" DataValueField="MonthYear" 
                    onselectedindexchanged="SelectedIndexChanged">
                </asp:DropDownList>

                <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ProdDB %>" SelectCommand="# some queries">
                </asp:SqlDataSource>

Now, When i am loading the page. It shows the above defined dropdown list. What i want to know is “how should i load the data in aspx grid using the above two dropdown filter ?”.

For example i choose A option from the first dropdown then it filter the result on the basis of it and the data will display on grid and so on…

Please tell me how should i connect the grid with these two dropdown list ?

How should i filter it ?

  • 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-10T09:10:07+00:00Added an answer on June 10, 2026 at 9:10 am

    Place a grid and two drop down on the page.
    Place an SQL Data Source

    Provide two parameters to the sql datasource select command

    Attached that sqldatasource to the gridview

    Bind the two parameters of the SQLDataSource to the the two Dropdown boxes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this simple code to load data from other php page using get
I have a form with a DataGridView and I want to load data from
I have two swfs: application swf p2p client swf that allows to load data
I have a grid table, which I do data binding on page load if
I have an asp.net-mvc site. I have a page with a grid of data
I have a web form in asp.net. I load the data on the page
I hava an activity which might have to load data when it's starting up.
I have to load the data shown in the below image into my database.
I have a simple web.py program to load data. In the server I don't
I have a table with composite primary key. I am trying to load data

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.