473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How should I solve this?

Hey

asp.net 2.0

I'm developing a webportal. Some info within the portal is available for
anonymous users, but most info is available to logged in members...

So I uses LoginView to show different info to users that are anonymous or
logged in...

BUT now I'm facing another problem:
I want to restrict some of the info that can be accessed by members also...
I had a very quick look at role management in asp.net 2.0 and I don't think
I can use it. Lets say I'm developing a webshop and I want to restrict some
info about the products to the loggedin members - not all the logged in
members have access to all the info. Some members (logged in members) have
access to all the info about one product, and some (logged in members) have
restricted access to the info... I cannot AFAIK put all these members with
restricted acccess to info in a separate user group, because maybe one day
later some of them should have access to all the info.. And a member might
have restricted access to info about one product, BUT at the same time have
full access to info about other products....

Any ideas how to solve this?

Should I just do a test when the webpage opens and programmatically
hide/show controls (labels/textboxes showing product info) or are there a
much better way of solving this problem???... (I admit I'm still a newbie)

Jeff
Jul 9 '06 #1
1 1061
Take a look at how Windows manages this sort of thing. You have users and
groups. Permissions can be assigned on a user-by-user basis, or on a group
basis. You can assign permissions to a user individually, or by giving that
user membership in one or more groups.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:uF**************@TK2MSFTNGP04.phx.gbl...
Hey

asp.net 2.0

I'm developing a webportal. Some info within the portal is available for
anonymous users, but most info is available to logged in members...

So I uses LoginView to show different info to users that are anonymous or
logged in...

BUT now I'm facing another problem:
I want to restrict some of the info that can be accessed by members
also... I had a very quick look at role management in asp.net 2.0 and I
don't think I can use it. Lets say I'm developing a webshop and I want to
restrict some info about the products to the loggedin members - not all
the logged in members have access to all the info. Some members (logged in
members) have access to all the info about one product, and some (logged
in members) have restricted access to the info... I cannot AFAIK put all
these members with restricted acccess to info in a separate user group,
because maybe one day later some of them should have access to all the
info.. And a member might have restricted access to info about one
product, BUT at the same time have full access to info about other
products....

Any ideas how to solve this?

Should I just do a test when the webpage opens and programmatically
hide/show controls (labels/textboxes showing product info) or are there a
much better way of solving this problem???... (I admit I'm still a newbie)

Jeff

Jul 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Oracle3001 | last post by:
Hi All, I am looking to use SVD to solve an equation of the form Aa = B, where a is 1 row x 11 col A is 2 rows x 11 col B is 2 rows x 1 col I know from the information I am reading I need...
17
by: Just | last post by:
While googling for a non-linear equation solver, I found Math::Polynomial::Solve in CPAN. It seems a great little module, except it's not Python... I'm especially looking for its poly_root()...
27
by: Alf P. Steinbach | last post by:
I'm writing a little piece on pointers, to be "bundled" with my attempted correct C++ tutorial (see FAQ item 29.20, yes, I've finally started to at least think about that again), and while thinking...
0
by: Jitesh | last post by:
I am facing a problem in webservice, I want to know what will be the exact procedure to solve the problem............. What I want to do............ I have a table named order in SQL Server....
8
by: vj | last post by:
Hi all, I want to solve the two equations u*tan(u)=w and u^2 + w^2=V^2, where V is a known constant, and u and w are the two unknowns to be determined. Please can someone suggest me how to...
1
by: arun | last post by:
Query is too complex -------------------------------------------------------------------------------- Hi, I was trying to solve this problem since last two days but couldn't find any solution. ...
17
by: Michael Reichenbach | last post by:
Here is the example code. int main(int argc, char *argv) { string Result; WIN32_FIND_DATA daten; HANDLE h = FindFirstFile(TEXT("c://test"), &daten); system("PAUSE"); return EXIT_SUCCESS; }
2
by: beambohus | last post by:
please how do i solve this........ To write an algorithm to solve quadratic equation using almighty formular. please your respond will very much appreciated
7
by: akmaRudiliyn | last post by:
Hai everybody :). I have problem and need help. ERROR: ERROR Violation of PRIMARY KEY constraint 'PK_Table1_01'. Cannot insert duplicate key in object 'dbo.table1'. ERROR The statement has...
4
by: Kelie | last post by:
Hello group, Is there any packages in Python that will help me solve functions similar to this: x = a*(1+bx)**2.5-c where a, b, c is known and the task to solve x? Thank you, Kelie
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.