Click here to Skip to main content
15,885,855 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using this code to login in my site CMS by writing the following in web.config

XML
<authentication mode="Forms">
   <forms name="MYWEBAPP.ASPXAUTH" loginUrl="~/manager/LogIn.aspx" defaultUrl="~/manager/LogIn.aspx" protection="All" path="/" />
 </authentication>
 <authorization>
   <allow users="*" />
   <deny users="?" />
 </authorization>



XML
<location path="manager">
  <system.web>
    <authorization>
      <allow roles="admin" />
      <deny users="*" />
    </authorization>
  </system.web>
</location>


folder manager Contain web.config with the following code

XML
<configuration>
   <appSettings/>
   <connectionStrings/>
   <system.web>
     <pages theme="admin" />
     <authorization>
       <allow roles="Admin" />
       <deny users="*" />
     </authorization>
   </system.web>
 </configuration>



but when run this in my hosting(godady) did'nt work can help me
Posted
Comments
[no name] 16-Jul-14 18:27pm    
What does "did'nt work" mean?
Member 3178544 17-Jul-14 14:02pm    
no login in CMS
ZurdoDev 16-Jul-14 21:47pm    
Those are windows groups which go daddy wont' have. You'll have to write code to do what you want.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900