Click here to Skip to main content
15,915,160 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How do we call a function in code behind on a Div OnMouseOver Pin
RichardGrimmer22-Jan-07 7:16
RichardGrimmer22-Jan-07 7:16 
QuestionCauses Validation Pin
Dayekh22-Jan-07 4:13
Dayekh22-Jan-07 4:13 
QuestionListing Folder Content and managing permissions Pin
just3ala222-Jan-07 4:04
just3ala222-Jan-07 4:04 
AnswerRe: Listing Folder Content and managing permissions Pin
Dayekh22-Jan-07 4:38
Dayekh22-Jan-07 4:38 
GeneralRe: Listing Folder Content and managing permissions Pin
just3ala222-Jan-07 20:24
just3ala222-Jan-07 20:24 
GeneralRe: Listing Folder Content and managing permissions Pin
Dayekh22-Jan-07 22:37
Dayekh22-Jan-07 22:37 
GeneralRe: Listing Folder Content and managing permissions Pin
just3ala223-Jan-07 2:38
just3ala223-Jan-07 2:38 
GeneralRe: Listing Folder Content and managing permissions [modified] Pin
Dayekh23-Jan-07 3:03
Dayekh23-Jan-07 3:03 
I'll explain what I did:

In addition to the above post, I had a webform which had a datagrid that displayed ALL the records for the different permissions which I have defined(recall Permission Table). Remember that EACH Permission represents a Webform, so there is no need to list the page. You can make the Datagrid entries hyperlinks to the weforms if you like.

You can add/edit/delete all the Permissions which you have on that particular webform, just like you can add/edit/delete user records and such, BUT.. EACH webform, EVEN the Permissions webform, will have hard code which will give different users access/denial.

for instance, lets say that in the Permissions table, you have the following record:

PermissionID = 9
PermissionDescription = Permission Webform

and the Admin User Record is:

UserID = 1
Username = Admin
UserGroup = 2(i.e. Admin)

and the UserGroupPermissions Record(in the LINK table) is:

UserGroupPermissionsID = 3
UserGroupID = 2(Admin)
PermissionID = 9

This means, logically, that the admin is linked to PermissionID number 9.

Now lets go back to the webforms. In the PageLoad even of the Permission Webform(which is what you are asking about), you will HARD CODE the following:

After creating a VIEW of the tables which show a link between Admin and the Appropriate PermissionID for the Current page, you will pass the UserID which should be stored as a Session variable as soon as any user logs in. Pass that ID through a SQL query and check whether the UserID in the Session variable HAS the Permission ID of the link table... IF YES, then Load the page, IF NO, then redirect.

You are asking about the webform itself I think. The Webform itself for this will be the same as any other webform for adding/editing/deleting records. Use a datagrid which should be bound with the information from the appropriate TABLES or VIEWS.

When you create a New Permission, like SiteMap Page Permission, you will HAVE TO HARD CODE the permission authorisation as described above, but this time for the SiteMap page.

I hope this answered your question. Smile | :)


-- modified at 9:24 Tuesday 23rd January, 2007
GeneralRe: Listing Folder Content and managing permissions Pin
just3ala223-Jan-07 20:41
just3ala223-Jan-07 20:41 
GeneralRe: Listing Folder Content and managing permissions Pin
Dayekh23-Jan-07 23:00
Dayekh23-Jan-07 23:00 
Questionchart in report Pin
Mohammed Elkholy22-Jan-07 2:57
Mohammed Elkholy22-Jan-07 2:57 
QuestionHow to recover UI Issues when browser Page using MoZilla FireFox? Pin
pubududilena22-Jan-07 2:46
pubududilena22-Jan-07 2:46 
AnswerRe: How to recover UI Issues when browser Page using MoZilla FireFox? Pin
Paddy Boyd22-Jan-07 3:32
Paddy Boyd22-Jan-07 3:32 
AnswerRe: How to recover UI Issues when browser Page using MoZilla FireFox? Pin
Guffa22-Jan-07 4:33
Guffa22-Jan-07 4:33 
GeneralRe: How to recover UI Issues when browser Page using MoZilla FireFox? Pin
pubududilena22-Jan-07 4:48
pubududilena22-Jan-07 4:48 
GeneralRe: How to recover UI Issues when browser Page using MoZilla FireFox? Pin
Guffa22-Jan-07 9:37
Guffa22-Jan-07 9:37 
Questionsending state of one page on another page Pin
Member 374936322-Jan-07 2:18
Member 374936322-Jan-07 2:18 
AnswerRe: sending state of one page on another page Pin
Elina Blank22-Jan-07 5:08
sitebuilderElina Blank22-Jan-07 5:08 
AnswerRe: sending state of one page on another page Pin
RichardGrimmer22-Jan-07 7:17
RichardGrimmer22-Jan-07 7:17 
Questiondownload an exe file. Pin
srinandan..22-Jan-07 1:57
srinandan..22-Jan-07 1:57 
AnswerRe: download an exe file. Pin
Sebastien Lachance22-Jan-07 2:07
Sebastien Lachance22-Jan-07 2:07 
Questionconvert any web page like [ php or asp or aspx ] to html page Pin
tandurkar22-Jan-07 1:11
tandurkar22-Jan-07 1:11 
AnswerRe: convert any web page like [ php or asp or aspx ] to html page Pin
PSK_22-Jan-07 1:25
PSK_22-Jan-07 1:25 
QuestionProblem of ViewState Pin
Abhishek Joshi22-Jan-07 1:08
Abhishek Joshi22-Jan-07 1:08 
QuestionHow do I get the value from a particular cell in the gridview? Pin
blurMember22-Jan-07 1:07
blurMember22-Jan-07 1:07 

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.