PC Review


Reply
Thread Tools Rate Thread

How do I do this with the menu control?

 
 
Bernard
Guest
Posts: n/a
 
      11th Mar 2008
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?
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      11th Mar 2008
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)


"Bernard" wrote:

> 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?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu Control and Sitemap, eliminate the home column on the menu display empire5 Microsoft VB .NET 1 11th Jan 2007 03:30 AM
Menu Control and Sitemap, eliminate the home column on the menu display empire5 Microsoft ASP .NET 1 11th Jan 2007 03:30 AM
Menu Control and Sitemap, eliminate the home column on the menu display empire5 Microsoft C# .NET 1 11th Jan 2007 03:30 AM
Re: Free Menu Control Supporting Tabled PC Ink on Menu Items Rhy Mednick Microsoft Dot NET Framework Forms 0 19th Jun 2004 04:19 AM
Rebar control, chevron menu, wrapping native menu jwallison Microsoft Dot NET Framework Forms 2 3rd Nov 2003 01:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.