473,666 Members | 2,237 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

display content based on membership question

hi,
we're building a site which will have common pages for different
users, but certain sections will show different content based on the
membership of the logged in user, like admin, manager, developer,
tester, etc... any advise on what's the best way to handle those
sections? basically we're going to show a gridview on data in them,
just different data depending on who's logged in. Is it better to
have a panel and populate that with the gridview we want, or better to
make a new control which will have different templates in it based on
the memberships. Or is there something already in .net 3.5 that can
help us separate out those roles better?

thanks.
Oct 21 '08 #1
1 1457
Login view is one way, if the content is fairly easy to set up in a page.
You can set up different views by user or role.

Otherwise, I would use roles and dynamically display data from a persistant
store (database?).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

*************** *************** **************
| Think outside the box! |
*************** *************** **************
<so******@yahoo .comwrote in message
news:e0******** *************** ***********@p58 g2000hsb.google groups.com...
hi,
we're building a site which will have common pages for different
users, but certain sections will show different content based on the
membership of the logged in user, like admin, manager, developer,
tester, etc... any advise on what's the best way to handle those
sections? basically we're going to show a gridview on data in them,
just different data depending on who's logged in. Is it better to
have a panel and populate that with the gridview we want, or better to
make a new control which will have different templates in it based on
the memberships. Or is there something already in .net 3.5 that can
help us separate out those roles better?

thanks.

Oct 24 '08 #2

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

Similar topics

11
3832
by: Bozo Schmozo | last post by:
Greetings! I've searched groups.google.com already to see if I can determine if using PHP/MySQL (if needed) for a web site I wish to develop. As the subject indicated, it will be a content based site with videos - NO, it's not a porn site though. I thought that I'd list the key requirements/specifications for my web site below and was wondering if some of you'd be so kind as to provide your thoughts on each and comment on them with...
1
2625
by: John Davis | last post by:
I want to display credit card fields when the user selects the option paid membership. If user selects the option free membership, then the credit card text field will disappear. Here's the code I did with JavaScript but didn't work. > <SCRIPT LANGUAGE="JavaScript"> > function generateCreditTextField() > { if (document.myform.membership.value == "1") > { alert('free');
1
1606
by: Matthew Loraditch | last post by:
I'd like to have a frequently used link page on our intranet that displays the urls' based on a users's ad group membership, i.e. if from accounting show general ledger reports, if from loans, show credit report. I'm not much worried about hiding from enterprising users, i'd just like to make it simpler rather than having people have to scroll through pages of links. Thanks for any help Matthew Loraditch -Baltimore County Savings Bank
4
3564
by: Ken Post | last post by:
Hello- I'm fairly new to writing SQL statements and would greatly appreciate some help on this one. I'm working on a project for a non-profit that I volunteer for. Part of the database tracks membership using tables like this: PersonInfo -------------------
3
2984
by: | last post by:
One thing I did a lot of in Classic ASP involved showing page elements conditionally based on whether a user was logged in or not. Logged in users or "superusers" would get more content and/or more controls if my pages detected their login. Non-logged in users would also get some page content at a given URL, but the protected content was hidden from them. I would like to know generally how this is done in ASP.NET. I'm particularly...
2
1343
by: John | last post by:
Hi I am using the sql server based built-in membership/roles system. How can I choose which links appear on a page based on what roles the current user belongs to? Thanks Regards
5
5030
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page that calls the web service to render a vertical strip of images. After doing some research I am unable to find some vb.net code that can assist in what I want to achieve. The closest thing I found was
1
1494
by: Marek Sukiennik | last post by:
I am a newbie so sorry if thsi is too simple a question ... I have a SQL table with an IMAGE type col that contains images. I want to be able to display the image on a web page along with other data from teh table that I am showing in text boxes etc. How do I go about doing this?? -- Marek Sukiennik
2
1902
by: Erik Lautier | last post by:
Hi, I have a table that I insert a member's country into every time someone signs up. What I'd like to do is pull information from the DB such that I can see each country and the number of users from each. For example: Argentina 10 Brazil 5 Canada 3 I'm having trouble writing the SQL for this...any suggestions?
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8866
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4365
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.