Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:1467
More Search Options
RSS Available
Matching Posts
Export Template problem
Hi! Trying to create a item template using "export template ..." from the file menu. Select "item template" and the file to export, but nothing happens. No errormessages, no files on disc, no template imported to vs. What am I doing wrong? Thanks In advance / Steve
Posted to
Visual Studio 2005
(Forum)
by
test
on 9/19/2005
UrlAuthorizationModule.CheckUrlAccessForPrincipal ?
Hi! I wonder if it´s possible to check if a user has access to a certain page. The reason for this is cause´ I want to modify the items in a menu depending on if the user is authorized to its url or not. I.e. I want to add a imageurl (an image of a padlock) to each menuitem which the user doesn´t have access to. Want to write code which looks something like this: Protected Sub Menu1_MenuItemDataBound( ByVal sender As Object , _ ByVal e As System.Web.UI.WebControls.MenuEventArgs) _ Handles Menu1.MenuItemDataBound
Posted to
Security
(Forum)
by
test
on 9/15/2005
Sv: Re: Sv: Re: Hiding MenuItems depending on roles using sitemap
Hi! Found what caused the problem, thanks to another thread you posted: http://forums.asp.net/936269/ShowPost.aspx I had to put in a url for the "top-node" in the sitemap even though I do not use it. ShowStartingNode=False i SiteMapDatasource´n. Now it works exactly like I wanted it to. Another solution I found is to write some code for this in code behing for the page containing the menu. First you have to specify roles for the nodes in the sitemap like roles="somerole". The code goes like. Protected
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
test
on 9/13/2005
Sv: Re: A Tip about how you can bind a resource to a control's property.
Hi and thanks for the tip. I want to use exlicit resource expression, but is it possible to set somewhere in the page that the same global resource file/class is used for all controls on that page. So you can write something like this instead: < asp : Label ID ="Label1" runat ="server" Text =' <%$resourceKey%> '> so you don´t have to set the classname on each control? One more question: The defaultvalue property isn´t available anymore but is it possible to set some "defaulttext" which
Posted to
Tips & Tricks
(Forum)
by
test
on 9/13/2005
Sv: Re: Sv: Re: Hiding MenuItems depending on roles using sitemap
Thanks for the reply Dave. Unfortunaly it doesn´t work now either. The sitemap section in web.config now looks like this: < siteMap > < providers > < add name = " HeaderMenuProvider " type = " System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a " siteMapFile = " HeaderMenu.sitemap " securityTrimmingEnabled = " true " /> </ providers > </ siteMap > No menuitems are displayed when using securityTrimminEnabled=true
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
test
on 9/13/2005
Sv: Re: Hiding MenuItems depending on roles using sitemap
Hi MorningZ! I have read that thread, but I don´t understand what I´m doing wrong and what to change in my code above.
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
test
on 9/13/2005
Sv: Re: Menu using sitemap, where to specify imageurl?
Thanks a lot Danny! Works great. My code goes like this: Protected Sub Menu1_MenuItemDataBound( ByVal sender As Object , _ ByVal e As System.Web.UI.WebControls.MenuEventArgs) _ Handles Menu1.MenuItemDataBound e.Item.ImageUrl = CType (e.Item.DataItem, SiteMapNode)( "ImageUrl" ) End Sub ... and in sitemap ... < siteMapNode url = " startpage.aspx " ImageUrl = " ~/Images/StartPng8.png " title = "mytitle " description =" ... " > / Steve
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
test
on 9/13/2005
Menu using sitemap, where to specify imageurl?
Hi! I´m using a sitemap to specify links in a menu. Where do I specify the imageurl for images to be placed along with the menuitems? I don´t want to assign it in code and can´t find a way to do it in the sitemap. Thanks in advance! / Steve
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
test
on 9/12/2005
Hiding MenuItems depending on roles using sitemap
Hi! I want to hide items in a menu based on if the user belongs to a certain role or not. How can I do this? My code goes like this: Sitemap (HeaderMenu.sitemap) <? xml version = " 1.0 " encoding = " utf-8 " ?> < siteMap xmlns = " http://schemas.microsoft.com/AspNet/SiteMap-File-1.0 " > < siteMapNode > < siteMapNode url = " Page.aspx " title = " Page " description =" ... " > </ siteMapNode > < siteMapNode url = " SecurePage .aspx " title = " Secure " description
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
test
on 9/12/2005
SetAuthCookie() requires extra postback problem!
Hi! I´m using formsauthentication and when the user first comes to the website I use the SetAuthCookie(userLogedInToWindows, false) to log in the user. The site is to be used in an intranet-environment. Because he/she has already logged in to windows I set the authenication cookie to that user (I use formsauthenication cause´ it should be possible to change user without relogin to windows and because I want to be able to create my own loginpage). Directly after setting the authenication-cookie I
Posted to
Security
(Forum)
by
test
on 9/6/2005
Page 1 of 3 (22 items) 1
2
3
Next >
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
Channel 9:
Channel 9 Live at PDC09 Kurt DelBene
Channel 9:
Channel 9 Live at PDC09 Mike Anguilo
Channel 9:
Channel 9 Live at PDC09: Dean Hachamovitch
Channel 9:
Channel 9 Live at PDC09: Gary Flake
Channel 9:
Channel 9 Live at PDC09: Mark Russinovich and Patrick Dussud
Channel 9:
Ping 40: Black screen claims- retracted, Windows 7, Bing Maps, Office 2010
WindowsClient:
WPF Touch Basics
WindowsClient:
WPF Touch Basics
TechNet Edge:
AlignIT IT Manager Podcast #32: Agile Application Lifecycle Management
Channel 9:
Bharat Shah: Microsoft Online Services Overview
WindowsClient:
Holland America adds Surface to several ships in it’s new Mix lounge
ASP.NET:
RIA Services Link Listing #1
Channel 9:
Reactive Extensions API in depth: Merge
TechNet Edge:
Forefront Protection for Exchange customer story
WindowsClient:
Windows Client Developer Roundup for 12/7/2009
WindowsClient:
Introducing the new Bing Maps beta
ASP.NET:
My Presentations in Europe (December 2009)
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online