[Web]My Javascript function snippets

1. Get host URL function getHostUrl() {     var protocol = window.location.protocol;     var host = window.location.host;     return protocol + "//" + host; } 2.Timer fu... [More]

[DotNet]Sql Server connection string format

I found myself always forget the connection string format. this is a memo for it. 1. User Id and password style Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword; Initial Catalog can also be replaced by database 2. User Id and password with Trusted_Con... [More]