Thursday, April 22, 2010

SharePoint Anonymouse Access Web Part Targeting

LoginView Control
This control can be used to show content based upon if a users is anonymous or logged in.    In the case below the word “test” would be shown for anonymous users.

-This would just need to be added to the layout page which is being used for the main portal page.

-You cannot put a web part or webpart zone within the control only html which mean you could not use to target web parts to users only html code.
-You cannot edit the content within the browser any updates to your content need to be done in a text editor and pushed to the server during a release.
<tr ID="TopRow" style="padding-top: 6px;padding-right: 6px;padding-left:6px;padding-bottom: 18px;">
 <td valign="top" ID="TopCell" width="100%" colspan="3">
  <asp:LoginView id="LoginView1" runat="server">               
    <div>Show to Anonymous User</div>
    <div>Show to Logged In User</div>

SP Security Trimmed Control
This control is great for hiding webparts from anonymous users but not from hiding them from logged in users.

-This would just need to be added to the layout page which is being used for the main portal page.

-Does not hide webparts from logged in users.
<sharepoint:spsecuritytrimmedcontrol runat="server" permissionsstring="CreateSSCSite">
<webpartpages:webpartzone runat="server" frametype="TitleBarOnly" id="Left" title="loc:Left">
<webpartpages:imagewebpart runat="server" verticalalignment="Middle" allowedit="True" allowconnect="True" connectionid="00000000-0000-0000-0000-000000000000" title="Site Image" isincluded="True" dir="Default" backgroundcolor="transparent" isvisible="True" alternativetext="Microsoft Windows SharePoint Services Logo" allowminimize="True" exportcontrolledproperties="True" zoneid="Left" id="g_60b6aa26_dd7b_4973_aaa0_ece2f2110920" horizontalalignment="Center" imagelink="/_layouts/images/thumbsup.jpg" exportmode="All" allowhide="True" suppresswebpartchrome="False" chrometype="None" framestate="Normal" missingassembly="Cannot import this Web Part." allowremove="True" helpmode="Modeless" frametype="None" allowzonechange="True" partorder="1" description="Use to display pictures and photos." __markuptype="vsattributemarkup" __webpartid="{60B6AA26-DD7B-4973-AAA0-ECE2F2110920}" webpart="true"></webpartpages:imagewebpart>

SharePoint Anonymous Audience Feature
This is a feature build for SharePoint which adds a check box under the audience settings in all webparts to allow you to directly target them to anonymous users.

-Is automatically integrated into all webparts so it can be used everywhere.
-Web part configuration is done through the browser which means changing a webpart does not require a redeployment.
-When you are logged in and viewing the page in design mode you can still see the webparts that are targeted to anonymous which you are unable to do with the other solutions.

Because it is a coded solution it may require review by a Change Control Board before deploying to server.

Thursday, April 8, 2010

Cannot Access SharePoint From The Server

Accessing sharepoint using the FQDN while on the server.

There is a registry setting to disable the Loopback Adapter that is present in Windows Server.  I have found this to cause a lot of errors not only with accessing the SharePoint site but also with indexing and searching.  I typicaly suggestion making the following registry settings after installing any instance of Microsoft SharePoint or Microsoft SQL server.

To set the DisableLoopbackCheck registry key, follow these steps:

1. Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:

281308 ( ) Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name

2. Click Start, click Run, type regedit, and then click OK.

3. In Registry Editor, locate and then click the following registry key:


4. Right-click Lsa, point to New, and then click DWORD Value.

5. Type DisableLoopbackCheck, and then press ENTER.

6. Right-click DisableLoopbackCheck, and then click Modify.

7. In the Value data box, type 1, and then click OK.

8. Quit Registry Editor, and then restart your computer.

Anne Marie in The Producers

My wonderful wife Anne Marie is going to be performing in an upcoming production of The Producers. This is musical written by Mel Brooks, so you know it has to be funny. Anne Marie plays the role of a tall, blond, and super hot Swedish secretary name Ula a role also played by Uma Thurman in the movie version. I will be attending the performance this Saturday, April 10th, and mostly likely some other dates as well. I would love if you could come out and help support Anne Marie in her theatre endeavors. If you are looking for something to do before the show there is a great place called Eat Bar just down the street, . Also if you get to the show and are wondering who the heck is Anne Marie Pinto??? Pinto is her stage name, and also a really awful model of care that Ford put out in the 70's.

Book by Mel Brooks & Thomas Meehan
Music and Lyrics by Mel Brooks

Performance dates:
April 9, 10, 11(m), 16, 17, 18(m), 23 & 24, 2010
(Fridays and Saturdays at 8:00 PM, Sundays at 2:30 PM)

About the Show:
It’s 1959 and perennially unsuccessful Broadway producer, Max Bialystock has opened his latest theater flop. When going over the accounting with his nerdy, young accountant, Leo Bloom, he dreams up a scheme to raise millions of dollars from his rich old lady backers and then put on a flop of a show. With all the money that will be leftover when the show closes after opening night, the pair will be rich. All they need is a bad script, a bad director and the scheme is sure to work. They find what they need: a musical about Adolf Hitler directed by an overblown hack. Only one thing goes wrong: the show is a hit!

Click here to see a clip from the movie:


Ticket prices for The Producers will be:
Adults: $20.00
Seniors (60+) $15.00
Juniors (18-) $15.00
Click here to order:

If you don't have any cash but still want to see the show they are looking for people to usher some of the performances. So no excuses about being poor or too cheap :)