Tuesday, February 17, 2015

displayformat

System.ComponentModel.DataAnnotations

Sunday, February 15, 2015

Date picker with sample code

http://www.codesprouts.com/post/Creating-A-DatePicker-Extension-In-ASPNet-MVC.aspx

Date picker

http://www.codeproject.com/Articles/62031/JQueryUI-Datepicker-in-ASP-NET-MVC.aspx

Html helper custom date picker

http://stackoverflow.com/questions/3700253/how-do-i-create-a-custom-date-picker-html-helper

html helper for date

http://stackoverflow.com/questions/133671/format-date-on-binding-asp-net-mvc

http://www.spaprogrammer.com/2014/01/mvc-datepicker-easiest-way.html?m=1

http://forums.asp.net/t/2012744.aspx?HTML+Helper+for+JQuery+DatePicker+using+ViewModel

Thursday, February 12, 2015

Asp.net Mvc profile

https://ashuthinks.wordpress.com/2012/01/08/asp-net-mvc-profile-provider/

http://www.codeproject.com/Articles/420052/Implementing-User-Profiles-in-ASP-NET-A-Beginners

Sunday, February 8, 2015

Add user script

mongo = new Mongo("localhost");
db = mongo.getDB("admin");
db.addUser( { user: "dbadmin",
              pwd: "test",
              roles: [ "readWriteAnyDatabase",
                       "dbAdminAnyDatabase",
                       "clusterAdmin" ] } );
db.addUser( { user: "useradmin",
              pwd: "test",
              roles: [ "userAdminAnyDatabase" ] } )

save above in add_user.js file

mongo add_user.js
db.auth("mswregUser","xxxxx")