How to set which security profile to load?

Last post 06-22-2009, 12:21 AM by CIC Web. 2 replies.
Sort Posts: Previous Next
  •  06-21-2009, 10:14 PM 53331

    How to set which security profile to load?

    How do I  set which security profile (default, admin, guest) to load programmatically?
     
    appreciate the help.
  •  06-21-2009, 11:58 PM 53335 in reply to 53331

    Re: How to set which security profile to load?

    Hi CIC,

    Try this way

     

    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>   
    4. <html>   
    5. <head>   
    6.     <title>SecurityPolicyFile</title>   
    7. </head>   
    8. <script runat=server>   
    9.     protected override void OnLoad(EventArgs e)   
    10.     {   
    11.         Editor1.SecurityPolicyFile = "Admin.config";   
    12.         base.OnLoad(e);   
    13.     }   
    14. </script>   
    15. <body>   
    16.     <form id="Form1" runat="server">   
    17.         <CE:Editor ID="Editor1" runat="server">   
    18.         </CE:Editor>   
    19.     </form>   
    20. </body>   
    21. </html>  

     

    Regards,
    ken
  •  06-22-2009, 12:21 AM 53338 in reply to 53335

    Re: How to set which security profile to load?

    That worked. Thanks!
View as RSS news feed in XML