跳到主要內容

發表文章

目前顯示的是 1月, 2017的文章

[Bootstrap] Bootstrap suppor IE8

使用 html5shiv.js 可以讓 IE6 IE7 IE8 支援 HTML5 標籤的 JavaScript,下載網址: https://github.com/aFarkas/html5shiv 使用 css3-mediaqueries.js 可以讓不支援 Media Queries 的瀏覽器透過 Javascript 的方式也能支援。 https://code.google.com/p/css3-mediaqueries-js/ Bootstrap的官網提到,IE8 和 IE9 是有支援的,但是,很多CSS3属性和HTML5元素 -- 例如,圓角矩形和投影 -- 卻是沒有支援的。因此,IE8 需要Respond.js的配合才能實現對媒體查詢(media query)的支持。 http://getbootstrap.com/getting-started/#support-ie8-ie9 https://github.com/scottjehl/Respond

[Azure] asp.net upload file to Azure

Dim connstr As String = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1};", accountName, accountKey) Dim storageAccount As CloudStorageAccount = CloudStorageAccount.Parse(connstr) '//建立 Blob 服務用戶端 '//CloudBlobClient 類別可擷取 Blob 儲存體中儲存的容器和 Blob Dim blobClient As CloudBlobClient = storageAccount.CreateCloudBlobClient() '//依照名稱找尋容器 Dim container As CloudBlobContainer = blobClient.GetContainerReference(containerName) '//如果容器不存在就建立 container.CreateIfNotExists() '//設定容器權限權限 container.SetPermissions(New BlobContainerPermissions With {.PublicAccess = access}) Dim tempF as new HttpPostedFileBase Dim blockBlob As CloudBlockBlob = container.GetBlockBlobReference(tempF.FileName) blockBlob.Properties.ContentType = tempF.ContentType Dim ms As MemoryStream tempF.InputStream.CopyTo(ms) ms.Seek(0, SeekOrigin.Begin) '使用MemoryStream 務必要使用seek 將指標回到起點 blockBlob.UploadFromStream(ms) Dim Url As String = blockBlob.StorageUri....

[Azure] Azure SQL server Create New User

In Master DB create New Query CREATE LOGIN [userName] WITH PASSWORD=N'password' CREATE user [userName] FOR LOGIN [userName] WITH DEFAULT_SCHEMA=[dbo] ALTER ROLE dbmanager ADD MEMBER [userName] In your taget DB create New Query CREATE user [userName] FOR LOGIN [userName] WITH DEFAULT_SCHEMA=[DBName ] EXEC sp_addrolemember N'db_owner', N'userName'