Click here to Skip to main content
15,887,397 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Templates Pin
Abhijit Jana28-Mar-10 11:18
professionalAbhijit Jana28-Mar-10 11:18 
GeneralRe: Templates Pin
Mike65432128-Mar-10 11:20
Mike65432128-Mar-10 11:20 
QuestionAjax Control Pin
future383928-Mar-10 3:09
future383928-Mar-10 3:09 
AnswerRe: Ajax Control Pin
Brij28-Mar-10 3:17
mentorBrij28-Mar-10 3:17 
GeneralRe: Ajax Control Pin
Narayanan chidambaram28-Mar-10 21:23
Narayanan chidambaram28-Mar-10 21:23 
QuestionUnable to Load client print control Pin
Deb_2628-Mar-10 1:37
Deb_2628-Mar-10 1:37 
AnswerRe: Unable to Load client print control Pin
PSK_28-Mar-10 2:54
PSK_28-Mar-10 2:54 
QuestionForm minimum groups Pin
Roshan P Mohammed28-Mar-10 1:24
Roshan P Mohammed28-Mar-10 1:24 
Hi All -

I have a problem. I want to arrange n number of items in the minimum group. There is maximum upper range for the group. I will explain in detail

Assume database contains below values
Emp1 10
Emp2 2
Emp3 4
Emp4 3
Emp5 11
Emp6 1
Emp7 4
Emp8 9
Emp9 5
Emp10 7
Emp11 14
Emp12 1
Emp13 4


Now I want to create minimum number of groups, where sum of the elements should not exceed say 15 like below
Group 1
Emp1 10
Emp2 2
Emp4 3

Group 2

Emp3 4
Emp5 11

Group 3
Emp6 1
Emp8 9
Emp9 5

Group 4
Emp7 4
Emp10 7
Emp13 4

Group 5
Emp11 14
Emp12 1

Application is ASP .net with C#. Is there any predefined algorithm for achieving this?

Thanks in advance
Roshan
AnswerRe: Form minimum groups Pin
Not Active28-Mar-10 1:40
mentorNot Active28-Mar-10 1:40 
GeneralRe: Form minimum groups Pin
Roshan P Mohammed28-Mar-10 2:50
Roshan P Mohammed28-Mar-10 2:50 
GeneralRe: Form minimum groups Pin
Not Active28-Mar-10 3:55
mentorNot Active28-Mar-10 3:55 
AnswerRe: Form minimum groups Pin
Brij28-Mar-10 2:55
mentorBrij28-Mar-10 2:55 
QuestionDynamic buttons ID retrieval Pin
greendragons28-Mar-10 1:11
greendragons28-Mar-10 1:11 
AnswerRe: Dynamic buttons ID retrieval Pin
Brij28-Mar-10 1:32
mentorBrij28-Mar-10 1:32 
AnswerRe: Dynamic buttons ID retrieval Pin
Sandeep Mewara28-Mar-10 1:46
mveSandeep Mewara28-Mar-10 1:46 
QuestionAdd javascript Function in MenuItem Click event Pin
Abdul Rahman Hamidy28-Mar-10 1:04
Abdul Rahman Hamidy28-Mar-10 1:04 
AnswerRe: Add javascript Function in MenuItem Click event Pin
Not Active28-Mar-10 1:42
mentorNot Active28-Mar-10 1:42 
AnswerRe: Add javascript Function in MenuItem Click event Pin
Sandeep Mewara28-Mar-10 2:00
mveSandeep Mewara28-Mar-10 2:00 
GeneralRe: Add javascript Function in MenuItem Click event Pin
Abdul Rahman Hamidy28-Mar-10 21:35
Abdul Rahman Hamidy28-Mar-10 21:35 
AnswerRe: Add javascript Function in MenuItem Click event Pin
MyDevBank31-Mar-10 12:31
MyDevBank31-Mar-10 12:31 
Questionimagebutton in placeholder Pin
kunjumonu27-Mar-10 23:29
kunjumonu27-Mar-10 23:29 
AnswerRe: imagebutton in placeholder Pin
Brij28-Mar-10 2:53
mentorBrij28-Mar-10 2:53 
GeneralRe: imagebutton in placeholder Pin
kunjumonu28-Mar-10 6:32
kunjumonu28-Mar-10 6:32 
Questiongetting data for no of records Pin
inayat basha27-Mar-10 10:16
inayat basha27-Mar-10 10:16 
AnswerRe: getting data for no of records Pin
PSK_27-Mar-10 18:50
PSK_27-Mar-10 18:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.