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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:15:07+00:00 2026-06-14T13:15:07+00:00

I just started working with ASP.NET and Visual Studio 2008. I want to create

  • 0

I just started working with ASP.NET and Visual Studio 2008. I want to create something fairly straightforward, yet I don’t know how to approach it yet.

I have access to an Oracle table that I’d like to leverage to create a report interface. For simplicity’s sake, let’s assume that this table only has three columns:

  1. REPORT_DATE
  2. SUCCESSES
  3. FAILURES

Now, the proposed ASP.NET interface will only have two components:

  1. DropDownList
  2. GridView (or table, whichever is simpler)

The DropDownList will allow the user to select a date (e.g. 11/8/2012). The GridView will then populate based on the user selection. It will display all columns except “REPORT_DATE”. In this hypothetical scenario, the GridView will display “SUCCESSES” and “FAILURES”. Essentially, it would follow this SQL statement:

SELECT * FROM MyTable WHERE REPORT_DATE=insertSelectedReportDateHere;

So far, I have successfully populated the DropDownList with REPORT_DATE using Visual Studio’s GUI to connect to my database and table. However, I’m unsure how to implement the population of the GridView based on my selection. I assume this will require hard-coding AJAX, but I wasn’t sure how powerful Visual Studio’s GUI was.

Is there a way to do this using the GUI? Or do I have to do it programmatically? Any suggestions or resources that I should reference?

Thank you!

  • 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-14T13:15:09+00:00Added an answer on June 14, 2026 at 1:15 pm

    This can most certainly be done without resorting to doing it programatically:

            <asp:SqlDataSource
                ID="dropDownDS"
                runat="server"
                ConnectionString="<%$ ConnectionStrings:connectionString %>"
                SelectCommand="select distinct reportdate from reports"></asp:SqlDataSource>
            <asp:DropDownList ID="ddlReports" runat="server"
                AutoPostBack="True"
                DataSourceID="dropDownDS"
                DataTextField="reportdate"
                DataValueField="reportdate" />
            <asp:SqlDataSource ID="gridDS"
                runat="server"
                ConnectionString="<%$ ConnectionStrings:connectionString %>"
                SelectCommand="SELECT * FROM Reports WHERE ReportDate = @ReportDate">
                <SelectParameters>
                    <asp:ControlParameter ControlID="ddlReports" Name="reportdate" PropertyName="SelectedValue" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="gvReports"
                runat="server"
                AutoGenerateColumns="False"
                DataKeyNames="ReportId"
                DataSourceID="gridDS">
                <Columns>
                    <asp:BoundField DataField="ReportId" HeaderText="ReportId" Visible="False" />
                    <asp:BoundField DataField="ReportDate" HeaderText="ReportDate" />
                    <asp:BoundField DataField="Successes" HeaderText="Successes" />
                    <asp:BoundField DataField="Failures" HeaderText="Failures" />
                </Columns>
            </asp:GridView>
    

    Welcome to the wrold of ASP.NEt and to stackoverflow!

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

Sidebar

Related Questions

I've been making my first ASP.NET Visual Studio website and I have just started
I have just started working in jQuery and ASP.NET MVC. I want the same
I just started working on an asp.net / C#.net application that is going to
Just started working with Mercurial a few days ago and there's something I don't
I just started working on my first Visual Studio project, and I imported all
I've just started working on a brownfield ASP.NET 2.0 Web Application. As with a
can anyone help? I have just started asp.net mvc and its all working.. entering
I've just started working with Visual Studio and C#, and am trying to solve
I've just started working with ASP.NET MVC now that it's in beta. In my
I've just started working on an ASP.NET project which I hope to open source

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.