Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Give Anonymous access to the sharepoint 2010 application page

$
0
0

Hi All,

My current application is FBA sharepoint 2010 site. Now i have to add one verification  application page. User will get this link on there email id, and once they will click on this link they should redirect to the verification page. But in my case user is redirected to the login page when they click on mentioned link.

Following are the changes which i have did in my application.

1) Created one Application page and added following code :-

protected override bool AllowAnonymousAccess
        {
            get
            {
                return true;
            }
        }

2) Inherited from UnsecuredLayoutsPageBase

3) In web.cofig added following lines :-

 <location path="_layouts/VerficationPage.aspx">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>

Please let me know what other changes i have to do to complete this activity.

Thanks


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>