CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 12/11/2006 10:04:12 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 31 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"jesibl" <>
NewsGroup User
site maps roles and query strings12/11/2006 10:04:12 PM

0

hi all,

The issue I've come across is that my sitemap needs to be a bit dynamic.  For example, my website is accessed from another one and passes in via the query string a value which I use to determine the content on the site.  For example, the variable in the query string might be ID and the values are A, B or C.  I store the value in a session variable.

I have roles:

For A:

AdminA, UserA, ReadOnlyA

For B:

AdminB, UserB, ReadOnlyB

For C:

AdminC, UserC, ReadOnlyC

So if Joe is in UserC and accesses the page when Session["ID"] is B, Joe doesn't have access to the page.

So to authorise the user to particular sections of a page, I use the code:

Session["ID"] = Response.QueryString["ID"]

If (User.IsInRole("Admin" + Session["ID"].ToString())

{ //allow acess }

However, I can't do this with the sitemap because a sitemap requires you to enter the authorised roles at the beginning, but I don't know which "role" to allow access to until runtime, when the session variable is set.

Does this make sense?

So do I need to dynamically generate my sitemap at runtime?

"moredotnet" <>
NewsGroup User
Re: site maps roles and query strings12/12/2006 6:33:18 AM

0

Hi

Try using another XML file that you may structure yourself as per your requirement. Coz the .sitemap file has its own structural limitations. And then you may pick up data from your XML file using XPathSelect & XPath commands within your ASP.NET control's XML code. Oh ya you have to use XMLDataSource Control in tandem with this.

Within the ASP.NET control's XML code, you may pass the current user id for access to the page.

Cheers

moredotnet

http://moredotnet.googlepages.com


Cheers
Vishal Khanna | MCAD.NET | Intersoft Data Labs
(Please mark as answer if reply helps)


.NET Interviews & FAQs @ www.dotnetUncle.com



Search & Post Free Ads

"jesibl" <>
NewsGroup User
Re: site maps roles and query strings12/15/2006 1:40:49 AM

0

by doing this can i still use the attribute

role = "AdminA"

in the site map node element and thus enable security trimming in the web.config?

that's pretty much what i'm trying to get at.  if this can't be done, then i might as well scrap the sitemap and just create the side bar menu on the fly using regular hyperlinks.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













hierarchy of master pages and user controls

access master page subroutines

problem: vs2005 pro, personal web site starter kit, masterpage, css, rendering

multiple web.sitemap files?

why my theme is not applied in the editor?

treeview sitemap, control expand / collapse

master page???

content place holder

treeview mouseover

query regarding menu control in master page

how to rotate text on an asp.net page

display external page in content1 ?

get more themes?

hideing menu item in menu control

menu control: error 0.cells is null or not an object

white line under header

newbie: navigation pointer needed

javascript in content page

master page compiling

obout tree control

image used in skin not always available

issus with web sitemap control

css background-image url location outside theme directory??

vs.net designer support or ease of maintenance, not both?

how could a master page control call a content page's function?

menu control is adding \\ before the child path

master page navigation 2 issues

2.0 menu control target property not working in ie7

where is my vwd master page ??

asp label control render problem to firefox

display all child nodes on current page

pages with fixed width centered in the browser window

setting the width of a menuitem

using ddrivetip script with masterpages

dynamically customize the look and feel of my website

sitemap navigation and images?

hierarchical menu control

contentplaceholder problem

conditional display of sitemapnode

programatically refresh treeview web control?

looking for menu control style examples

css styles and skins

session variable

masterpage & iscrosspagepostback

button on master page doesn't fire

menu styling problems

adding css link tags

how do i "create a full featured customer login portal" tutorial.. sitemap doesn't appear?

dynamically adding attributes to body tag of masterpage

creating page specific menus from site nodes

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT