How do I do this with the menu control?

B

Bernard

We have a web app that calls a Java web service to get a token. This token is
then used as an input parameter to authenticate any further web service
calls. The web service handles the usual session stuff (no access if no
activity for 20mins, etc)
The web service then hands back the username and a list of products that the
user has purchased.
We have a fairly complex menu system that hides and displays items based on
the product that a user has bought.

What I was hoping I could do was use the menu control in ASP.Net 2.0 and
create a role for each product and use security trimming to handle the menu
display.
However in order to do that I somehow have to programatically log a user in
(based on getting a valid token back from the web service)
Then I could programatically add the user to a role based on the product
list coming back from the web service.

If not, is there some other way of manipulating the menu so that I can
configure it based on some attribute in the sitemap and then dynamically
alter the menu based on the user's product?
 
B

bruce barker

you shoudl be supplying a roleprovider and perhaps a membership provider.
then all the role logic in all the controls will work.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top