locked
Intranet and Extranet within SharePoint 2010 RRS feed

  • Question

  • Hi,

    I have a sharepoint publishing site that is configured within a share point farm. It can be accessible by employees within the Intranet and by customers within the internet.

    We have zones configured for this. Intranet - For Employees and Extranet - For customers.

    Now i need to identify the zone grammatically within my web part to do some operations within my site.

    How can i identify whether the user is a customer / employee by using the zones?

    Is there any way i can get it through SharePoint Object model program?

    Thanks.


    Kathir

    Friday, May 11, 2012 5:53 AM

Answers

  • Hey,

    You can try with

    SPContext.Current.Site.Zone
    

    You can get the current context zone through this

    Let me know if you have any queries :)


    "The Only Way To Get Smarter Is By Playing A Smarter Opponent"

    • Proposed as answer by Dmitry Kaloshin Friday, May 11, 2012 9:39 AM
    • Marked as answer by Qiao Wei Thursday, May 17, 2012 9:39 AM
    Friday, May 11, 2012 6:24 AM