Click here to Skip to main content
13,148,503 members (50,360 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hey guys, Im having trouble with a few parts of MVC and could do with some help.

I want the program to load a grid of folders onto the main page each either the modules name, ID and a button in each which acts similar to how windows explorer displays folders and subfolders. Users can rearrange the folders on the grid and click them to go to sub folders if it has any.

The database is set up like this:
FolderID, FolderName, ParentID, ClientID

GroupID, GroupName,IsGlobalAdmin, ClientID

Group permissions
ID, GroupID, FolderID, HasRead

Folder Positions
ID, FolderID, UserID, Position

I need a statement that using LINQ to Sql loads the grid based off what the group is allowed to see based off the HasRead column and if they have the same ClientID and in the order of positions that user set in the Folder positions table.

If they are a global admin the database loads all folders for that ClientID

Any links or code for me to play with? I'm struggling to find anything that covers this kind of thing in MVC, I managed it in webforms fine but this is so different I need the advise.

Thanks in advance
Posted 12-Mar-12 6:13am
Updated 12-Mar-12 6:20am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Phoenix234 13-Mar-12 6:19am
Its good reading material but wont work for this system.

Also im trying to load 1 level in a grid not the entire list in a tree view

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170924.2 | Last Updated 12 Mar 2012
Copyright © CodeProject, 1999-2017
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