下拉式選單的時光跳躍,一次跳回五年、十年前?-- 年/月/日(潤年與大小月) DateTime的.IsLeapYear()方法與 .DaysInMonth()方法(當月天數)

摘要:時光跳躍 -- 下拉式選單與 年/月/日(潤年與大小月)
下拉式選單的時光跳躍,一次跳回五年、十年前?-- 年/月/日(潤年與大小月) DateTime的.IsLeapYear()方法與 .DaysInMonth()方法

...繼續閱讀 »

[習題]輸入自己的生日(年/月/日)#3 -- 日曆(Calendar)控制項的時光跳躍,一次跳回五年、十年前?--PostBack發生的錯誤

摘要:[習題]輸入自己的生日(年/月/日)#3 -- 日曆(Calendar)控制項的時光跳躍,一次跳回五年、十年前?--PostBack發生的錯誤

...繼續閱讀 »

會員登入 與 FormsAuthentication (Web.Config裡面的 authentication mode="Forms")

摘要:會員登入 與 FormsAuthentication (Web.Config裡面的 authentication mode="Forms")

用 Web.Config 鎖死後台管理區 需要權限的檔案,必須通過帳號、密碼才能登入(看得見)
本範例源自微軟MSDN的範例(予以簡化)

...繼續閱讀 »

UC(使用者控制項, User control) 與 輸出快取(Output Cache) -- PartialCachingAttribute類別

摘要:UC(使用者控制項, User control) 與 輸出快取(Output Cache) -- PartialCachingAttribute類別

四個屬性與 @outPutCache 指示詞互相對應 --
duration
varyByParams
varyByControls
varyByCustom

...繼續閱讀 »

OutputCache在VS 2012/2013的錯誤 -- 張貼快取替換與IIS修改回應緩衝的Integrated不相容(Post cache substitution is not compatible with modules in the IIS integrated pipeline that modify the response buffers)

摘要:OutputCache在VS 2012/2013的錯誤 -- 張貼快取替換與IIS修改回應緩衝的Integrated不相容(Post cache substitution is not compatible with modules in the IIS integrated pipeline that modify the response buffers)

...繼續閱讀 »

[IIS 錯誤訊息 5059] Application pool ASP.NET v4.0 has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.

重新設定這個 Pool的操作帳號的「密碼」,修改成新的密碼之後就可以了。
錯誤訊息:Application pool ASP.NET v4.0 has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.

...繼續閱讀 »

[習題]輸入自己的生日(年/月/日)#2 -- 日曆(Calendar)控制項的時光跳躍,一次跳回五年、十年前?--TodaysDate屬性、VisibleDate屬性

摘要:[習題]輸入自己的生日(年/月/日)#2 -- 日曆(Calendar)控制項的時光跳躍,一次跳回五年、十年前?--TodaysDate屬性、VisibleDate屬性

...繼續閱讀 »