Sunday, March 14, 2010
HOW TO Hide links using SPSecurityTrimmedControl
Check out these posts for more details:
http://www.etechplanet.com/post/2009/02/27/Hide-View-All-Site-Content-Recycle-Bin-and-Site-Actions-link-in-SharePoint-website-for-non-admin-users.aspx
http://www.trinkit.co.nz/blog/archive/2007/05/31/spsecuritytrimmedcontrol-possible-values-for-permissionsstring.aspx
Tuesday, March 9, 2010
ASPNET Regular Expression for validating Password field
Shown below is the Regular Expression to validate the following Password requirements:
· Password is at least 7 characters in length
· Password contains at least one non-alphanumeric character
<asp:RegularExpressionValidator ID="revValidatePwd" runat="server" ControlToValidate="txtNewPwd"
ErrorMessage="Password must be 7 characters in length and include one non-alphanumeric character."
ToolTip="Password must be 7 characters in length and include one non-alphanumeric character."
ValidationGroup="ChangePwdValidation" ValidationExpression="^(?=.*(\W)).{7,}$">*</asp:RegularExpressionValidator>
Monday, March 8, 2010
SharePoint Ghosted vs Unghosted pages
An excellent post that demystifies SharePoint’s Ghosted and Unghosted pages:
http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=4