http://bootswatch.com/
https://wrapbootstrap.com
http://fontawesome.io/
Wednesday, June 17, 2015
Tuesday, June 09, 2015
MVC bootstrap Modal Dialog
starts with: http://www.codeproject.com/Tips/826002/Bootstrap-Modal-Dialog-Loading-Content-from-MVC-Pa
Replacing Html.BeginForm with Ajax.BeginForm: http://blogs.msmvps.com/craigber/?p=41
Fix the cache issue with Ajax.BeginForm: http://www.leniel.net/2013/09/detecting-fixing-ajax-beginform-partial-view-stale-data.html
Replacing Html.BeginForm with Ajax.BeginForm: http://blogs.msmvps.com/craigber/?p=41
Fix the cache issue with Ajax.BeginForm: http://www.leniel.net/2013/09/detecting-fixing-ajax-beginform-partial-view-stale-data.html
Monday, June 01, 2015
MVC data annotation on Password field
Below is the cheat sheet for the password field:
[Required]
[StringLength(255, MinimumLength=8)]
[DataType(DataType.Password)]
[RegularExpression(@"^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^\da-zA-Z])(.{8,15})$", ErrorMessage = "Password must contain at least 1 number, 1 uppercase letter, and 1 special character.")]
public string Password { get; set; }
^ #Beginning of expression (?=.*\d) #At least one digit (?=.*[a-z]) #At least one lower case (?=.*[A-Z]) #At least one upper case (?=.*[^\da-zA-Z]) #A non-alphanumeric character (.{8,15}) #Allow between 8 and 15 characters $ #End of expression
Good website to find a starting point for Regular Expression: http://regexlib.com/
Subscribe to:
Posts (Atom)