11. July 2012
xhinker
ASPNET , Web
1. Get host URL
function getHostUrl() {
var protocol = window.location.protocol;
var host = window.location.host;
return protocol + "//" + host;
}
2.Timer fu...
[More]
6. July 2012
xhinker
DotNet
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]