Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Design
I am working on a timetabling application that allows students to choose classes from Monday to Saturday and there are three different time slots like MORNING, AFTERNOON and EVENING. That leads to 18 different combination for Day and Time. Student will be allowed to choose one subject per time slot and any subject can only be selected once during the week period. To implement this I used 18 gridviews and populate them with subjects run by college which is at the most 3 subjects during one time slot (e.g. MONDAY MORNING ). I am using mutually exclusive checkboxes to implement subject selection only once during the week.
 
Implementation is working fine but I am worried about performance as there are lot of postbacks during the time slot selection and deselection as every single time student check or uncheck a chekcbox the postback occur to make certain business logic to execute.
 
1> Are having that many gridviews on a page is a sing bad design ?
2> Is there a way to improve this ? Any alternative to this design ?
Posted 1-Nov-10 15:53pm
virang_219.6K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Gridviews are one of the heaviest controls provided by the ASP.NET.
 
So if at a single point of time, you are showing 18 gridviews then it would cause performance issue.
 
I would suggest, group your girdviews properly, might be day wise, and show 2 to 3 gridview at a time. when a user with these selection, then move to the next selections.You can use multiview.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can make first combobox of Monday to Saturday.
 
After that selection you can make another combobox of MORNING, AFTERNOON and EVENING.
 
After this filter crieteria, you can show your gridview and Brij is also correct that show 2 to 3 gridview at a time then give the next-prev functionality to show it.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 210
1 Richard MacCutchan 100
2 kbrandwijk 90
3 ProgramFOX 80
4 Sandeep Singh Shekhawat 70
0 Sergey Alexandrovich Kryukov 9,050
1 OriginalGriff 8,151
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 2 Nov 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100