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>                   

 

HOW TO Auto-populate field in custom SharePoint List Form using value from SQL database

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