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.
- School
- Year
- Lesson
- Version
- Teacher
- Domain
- 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.
Inside the button click event write like,
based on this strings you can write query to get data from db and can bind this data to your gridview.