Re: Need help with website

Re: Need help with website

Old forum URL: forums.lhotka.net/forums/t/4011.aspx


ozitraveller posted on Sunday, December 09, 2007

Hi

I have 4 issues I'm hoping some can help with:

1. I have an Admin subfolder with some admin pages that I can't get access to. I'm using roles the same as Ptracker. I've add roles="Administrator" to the items in the sitemap, so when I logon the the extrage items appear in the menu, and when I logoff they disappear. But when I select an item in admin on the menu I get the logonbox page displaying. I have a web.config file in the admin folder.

  <system.web>
    <authorization>
      <allow roles="Administrator" />
      <deny users="*" />
    </authorization>
  </system.web>

  <location path="Default.aspx">
    <system.web>
      <authorization>
        <allow roles="Administrator" />
        <deny users="*" />
      </authorization>
    </system.web>
  </location>
 
  <location path="Downloads.aspx">
    <system.web>
      <authorization>
        <allow roles="Administrator" />
        <deny users="*" />
      </authorization>
    </system.web>
  </location>

2. Since I have shifted over to using IIS 5.1 from the localhost (casini) I have no code debugging. I seem to have all the right things on.

3. If I have more than 1 datasource on a page do I need items in the session collection?

            if (!IsPostBack)
            {
                Session["currentObject"] = null;
                ApplyAuthorizationRules();
            }
            else
                ErrorLabel.Text = string.Empty;

4.   Do I need to implement Identity and Principal objects if I only have a few roles?

Thanks

Copyright (c) Marimer LLC