What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 17634 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Creating Dynamic Menus with Rights ...
Raj.Trivedi

Creating Dynamic Menus with Rights

Replies: 0 | Posted by: Raj.Trivedi on 10/4/2012 | Category: ASP.NET Forums | Views: 389 | Status: [Member] | Points: 10  


Hello Team,

I am trying to create dynamic menus from database and then when user logs in i want that user should be able to access on those menus that he has given rights to,i have made to two table one for user and for user rights but i want to know how can i map the user to rights and then implement it in front end,and also how can i assign rights from front end i am using a checkbox to bind rights i am able to bind rights to checkbox but the only problem is to map the rights and get rights when user logs in.

I am pasting table that i have created for user and rights

***************User Table***************************

CREATE TABLE [dbo].[tbl_User](
[User_ID] [uniqueidentifier] NOT NULL,
[Name] [varchar](100) NULL,
[User_Name] [varchar](100) NOT NULL,
[Password] [varchar](100) NOT NULL,
[Email_ID] [varchar](100) NULL,
[Contact_Number] [varchar](15) NULL,
[Location] [varchar](100) NULL,
[Status] [tinyint] NULL,
[RowDeleted] [tinyint] NULL,
[Created_by] [uniqueidentifier] NULL,
[Creation_date] [datetime] NULL,
[Modified_by] [uniqueidentifier] NULL,
[Modification_date] [datetime] NULL
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[tbl_User] ADD CONSTRAINT [DF_tbl_User_User_ID] DEFAULT (newid()) FOR [User_ID]
GO


************Rights Table**************************

CREATE TABLE [dbo].[tbl_User_Rights](
[UserId] [uniqueidentifier] NOT NULL,
[RightId] [uniqueidentifier] NOT NULL,
[Created_by] [uniqueidentifier] NULL,
[Creation_date] [datetime] NULL
) ON [PRIMARY]



Regards
Raj.Trivedi

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

  No reply found.


Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 2:52:01 AM