Robert L,
This function doesn't exist in the real world. That code example just tell you how to do Personalization and Programmatic Security
after detect the current user security role.
If you are using ASP.NET membership, it's very easy to detect the current user security role.
For example:
public bool IsAdministrator(string useruniquename)
{
return System.Web.Security.Roles.IsUserInRole(useruniquename, "Administrators");
}
if(IsAdministrator)
{
Editor1.SecurityPolicyFile = "Admin.config";
SetUploadsFolder("~/Uploads/");
}
else
{
Editor1.SecurityPolicyFile = "default.config";
SetUploadsFolder("~/Uploads/Member/");
}
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx