Role-based file access and menu security

0

Posted on : 04-05-2006 | By : caroline | In : ASP.Net

Show certain menu items and certain files to members of Administrators role. All else see basic site.

ASP.Net Web Site Administration Tool
Set one user to Administrators
Have another user that is in no role.

web.config, deny all but Administrators access to admin directory:

‹location path=”admin”›
‹system.web›
‹authorization›
‹allow roles=”Administrators” /›
‹deny users=”*”/›
‹/authorization›
‹/system.web›

‹/location›

web.config, system.web, roleManager enabled=”true”
web.config, membership, providers add defaultProvider:
‹siteMap defaultProvider=”AspNetXmlSiteMapProvider” enabled=”true”›
‹providers›
‹remove name=”AspNetXmlSiteMapProvider”/›
‹add name=”AspNetXmlSiteMapProvider” description=”SiteMap provider which reads in .sitemap XML files.” type=”System.Web.XmlSiteMapProvider” securityTrimmingEnabled=”true” siteMapFile=”Web.sitemap”/›
‹/providers›
‹/siteMap›

web.sitemap, add roles attribute to menu items to be masked:

‹siteMapNode url=”admin/admin.aspx” title=”Admin” Description=”Edit Functions” roles=”Administrators” ›
‹siteMapNode url=”admin/shelters_edit.aspx” title=”Shelters” description=”Edit Shelters/Rescues” roles=”Administrators” /›

Remote roles database and smtp setup for “forgot password” control web application failure scenarios

0

Posted on : 04-05-2006 | By : caroline | In : ASP.Net

Which is more helpful:
1. “An error was encountered. Please return to the previous page and try again.”
2. A blank web page.
3. A DNS error while running on localhost

Scenario: setup “forgot password” smtp email for site being built on localhost but whose database is on remote server.

Web application
Click ASP.Net configuration icon
Configure SMTP Email Settings
Reply: DNS error, page cannot be found, or,a blank web page

troubleshooting
1: remove system.net and mailsettings from web.config
2. remove and replace remote database via aspnet_regsql

Photoshop vertical sideways type

0

Posted on : 02-05-2006 | By : caroline | In : PhotoShop


*diversion: photoshop/imageready post*

To create vertical and sideways Photoshop type, so that when you use the Type Tool the letters flow upwards and the bottom of each letter is to the right…

Actually I’m using ImageReady.

Rectangle tool, color #39B54A
New layer
Type tool: verdana bold, 10px, #ffffff
Type a couple of normal horizontal characters
Selection tool: select the characters
Edit menu, Transform, 90 CCW