發表文章

目前顯示的是 10月, 2014的文章

jQuery UI: Datepicker 設定下拉選單年份區間 set year range dropdown

 $(".txtDate").datepicker({ changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd', yearRange: "-100:+0" }); 又或著是固定年份區間: yearRange : '1950:2013' , 參考網址: http://api.jqueryui.com/datepicker/#option-yearRange

清除暫存的 DNS Cache

圖片
執行→ cmd ipconfig /flushdns 顯示清除成功,如下畫面 在Windows環境下,清除cache的指令如下: ipconfig /flushdns 在Mac OSX環境下,清除cache的指令如下: dscacheutil -flushcache 在Linux環境下,清除cache的指令如下: /etc/init.d/nscd restart

[Windows Server 2012] IIS HTTP Error 404.17 - Not Found (.NET 3.5)

Windows Server 2012 iis8 與.NET 3.5 iis安裝好,一開始並沒有安裝.NET 3.5 (但是.NET CLR VERSION卻又可以選擇2.0) 所以發生了IIS HTTP Error 404.17 - Not Found 這個錯誤 直接去找連結下載3.5的安裝包是不可行的 所以,必須要去介面將.NET 3.5 增加 以下內容節錄至msdn To install .NET 3.5 on Windows Server 2012 or Windows 8 On the  Start  screen, right-click the  Command Prompt  tile, and then click  Run as administrator . At the command prompt, type the following:  dism /online /enable-feature /featurename:netfx3 Wait for the command to complete. It could take several minutes. Close the command prompt window. To install IIS and ASP.NET modules on Windows Server 2012 using the UI On the  Start  page, click the  Server Manager  tile, and then click  OK . In  Server Manager , select  Dashboard , and click  Add roles and features . In the  Add Roles and Features Wizard , on the  Before you begin  page, click  Next . On the  Select installation type  page, select Role-based or feature-based installation, and click  Next .

[IIS] [ASP]IIS7.0上傳檔限制的解決方法

IIS7.0的修改方法 打開IIS → 「ASP」→ 打開「限制內容」; 修改「要求實體的上限」的值,預設值為200000(約200KB) 把它修改為你想修改的大小,如:52000000(50MB) 修改完成點擊「套用」 iis7 上傳大檔限制的真正解決辦法 打開「IIS」; 按兩下「Default Web Site「→按兩下中間窗格中的「要求篩選」→按一下右側窗格的「編輯功能設置」→修改「請求限制」下面的「允許的最大內容長度」,預設是30M,隨便改大一點,我改成300M,點擊「確定」; 重新開機IIS,再上傳試試,50M、90M都可以了。 IIS6.0的修改方法 在IIS中右鍵「本地電腦」選擇「屬性」,鉤選「允許直接編輯設定資料庫」; 在服務裡關閉「IIS Admin Service」服務; 找到c:\windows\system32\inetsrv\下的「MetaBase.xml」,打開,找到「AspMaxRequestEntityAllowed 」把他修改為需要的值,預設為204800,即200k ,把它修改為51200000(50MB); 然後重啟「IIS Admin Service"服務。 在 IIS 6.0 中,無法下載超過4M的附件時,可以按以下步驟解決 : 先在服務裡關閉 iis admin service 服務。 找到 windows\system32\inetsrv\ 下的 metabase.xml 檔。 用純文字方式打開,找到 AspBufferingLimit 把它修改為需要的值,預設為4194304(可修改為20M即:20480000)。 存檔,然後重啟 iis 服務。