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

  • Home
  • SEARCH
  • 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 8692841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:24:17+00:00 2026-06-13T00:24:17+00:00

Using Visual Studio 2010 and SQL management Studio, I have created a page by

  • 0

Using Visual Studio 2010 and SQL management Studio, I have created a page by which admin can get detail of student’ result.

I have 7 drop downs in it.

  1. School
  2. Year
  3. Lesson
  4. Version
  5. Teacher
  6. Domain
  7. Learning Unit.

School and year is mandatory fields.

I have provided a button named Excel at the bottom of the page on clicking on which It dump the grid view made based on the selection into Excel.

right now I have done is on every dropdowns selected index change event I am binding the other dropdowns and also the gridview.

If the admin select any other dropdown in lower order it will reload the table according the changed selection.

So it takes a lot ot loading time for some selection.

Is It possible to make the code in button click event like on clicking on that it will first check which dropdowns are selected by admin and based on the only selected drop downs’ value I can make the gridview and dump it into Excel.

  • 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-13T00:24:18+00:00Added an answer on June 13, 2026 at 12:24 am

    Inside the button click event write like,

            string s1 = "";
            string s2 = "";
            if (dropdown1.SelectedIndex > -1)
               s2 = dropdown1.Text.Trim();
            else
               s2 = "";
            if (dropdown2.SelectedIndex > -1)
                s1 = dropdown2.Text.Trim();
            else
                s1 = "";
    

    based on this strings you can write query to get data from db and can bind this data to your gridview.

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

Sidebar

Related Questions

I have created SQL Server 2008 Database project using visual studio 2010. after build
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; N00b here, I have a GridView, but I want to
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; What I'm ultimately trying to do is update a sql
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; Kinda new at C# here.. I got the first row
I am using Microsoft Visual Studio Professional 2010. (Also SQL Management Studio for my
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studios.R2.Express; What I'm trying to do, is get a button to
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; N00b here, I've got the gridview to look the way
I'm using Visual Web Developer 2010 Express and SQL Server 2008 R2 Management Studio
I have already finished a desktop application using Visual Studio 2010 and SQL Server
I have developed an application using C# on Visual Studio 2010 and SQL Server

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.