Search

You searched for the word(s): userid:1467

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
  • 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
  • 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.
  • 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
  • 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
  • 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
  • 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 >