Mitchel's Forums

Subject: How do I set 'Read Only' for Non-admin users?
Prev Next
You are not authorized to post a reply.

AuthorMessages
Shiho ShihoUser is Offline
Regular User
Regular User
Posts:25

08/14/2008 5:13 PM  

Hello,

My environment is VS2005 using VB.

We are trying to display our customer's inventory data on a website.

We want to provide user ids and password to our customers
so that they can use them as they login to the website.

After login to our website with valid user id and password, 
each customer can check his/her own inventory data.
This is 'READ-ONLY' page.

However, if admin people login to the inventory page,
all customers data will be displayed and admin people are able to 
change the data.

That's what we want to do.
By using GridView Control, I think we can display/edit/delete data.
But how/where do I set 'READ-ONLY' for non-admin people and
all privilages for admin people?

I was adivsed to check "Roles Class" and "Membership Class", but not sure what that means.

I very appreciate your advice on this.

Regards,

Shiho

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

08/18/2008 12:56 AM  
Based on the users role, you can set the read only attribute of your controls to prevent edits.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Shiho ShihoUser is Offline
Regular User
Regular User
Posts:25

08/19/2008 12:49 PM  

Hi Mitchel,

Thank you for your reply.
I found the site http://www.asp.net/learn/security/ and it had what I wanted to do.

Thank you,

shiho

You are not authorized to post a reply.
Forums >Development Discussion >.NET Development > How do I set 'Read Only' for Non-admin users?



ActiveForums 3.7