摘要
昨天諸事不順,早晨起來腸胃開始不舒服。下午堅持寫好本篇推薦文章之後,還沒發布居然鬼使神差一般就把草稿刪除了?!Windows Live Writer處理資料安全方面確實有一套,刪除的草稿無論用什麼軟體都恢複不回來……晚上帶著鬱悶的心情看中國和伊朗踢球,最後中國還是慘遭淘汰……
想想這個系列已經堅持了快兩個月了,停一期還真不是我的性格!忍住再寫一遍吧……無奈實在沒有心情詳細介紹,每一篇都三言兩句帶過而已……請各位見諒。
本期共有8篇文章:
- web.config中的AppSetting
- ASP.NET 2.0中的全球化以及本地化解決方案
- ASP.NET AJAX隱藏在背後的秘密
- 將DataGrid的資料倒入至Excel檔案中
- 建立ASP.NET Mobile表單中的Timer控制項
- WPF/E和Script#
- 用來建立WPF/E組件的Toolkit Extender
- 通過PowerShell 擴充Microsoft.Web.Administration 第二部分
[1] AppSettings In web.config (web.config中的AppSetting)
本文介紹了web.config中的AppSetting的相關內容,簡潔易懂,適合初學者參考。
[2] ASP.NET 2.0 Globalization & Localization solution(ASP.NET 2.0中的全球化以及本地化解決方案)
本文通過一個簡單樣本介紹了ASP.NET 2.0中的全球化以及本地化解決方案的一種實現,使用SQL Server 2005儲存資源資訊。
[3] ASP.NET AJAX under the hood secrets (ASP.NET AJAX隱藏在背後的秘密)
本文介紹了在使用ASP.NET AJAX開發時常用的一些技巧以及訣竅,不是泛泛的紙上談兵,作者用ASP.NET AJAX開發過大型的應用程式,並對其有非常深厚的理解。
[4] Exporting Data Grid to Excel (將DataGrid的資料倒入至Excel檔案中)
很常見的問題,解決方案也很簡單,幾行代碼即可:
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
myDataGrid.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
[5] Make Your ASP.NET Mobile Forms Timer(建立ASP.NET Mobile表單中的Timer控制項)
行動裝置上不支援JavaScript,也沒有Refresh Meta標記,所以常見的用戶端Timer控制項便無法在其上使用。本文介紹了另外一種實現方法。
[6] WPF/E and Script# (WPF/E和Script#)
Nikhil Kothari在這篇文章中更新了他的Script#工具,讓Script#也能夠給WPF/E編寫用戶端指令碼了。下面是一小段代碼:
WPFEPlayer player = WPFEFactory.CreateWPFEPlayer((string)arguments["ID"],
(DOMElement)arguments["ParentElement"],
(string)arguments["MarkupURL"],
"Black", /* windowLess */ true);
_photoViewerControl = new PhotoViewerControl(player, (string)arguments["FlickrKey"]);
[7] Toolkit Extender for creating WPF/E components (用來建立WPF/E組件的Toolkit Extender)
Shawn Burke給出的這個Toolkit Extender可以讓我們很方便地在頁面中加入WPF/E組件。只要如下幾行代碼即可:
<wpfe:WPFEHostExtender ID="wpfeControl" Runat="server"
Height="350px" TargetControlID="Panel1" Width="350px"
XamlPath="myWpfeControl.xaml" BackgroundColor="transparent"/>
[8] Extending Microsoft.Web.Administration through PowerShell (Part II) (通過PowerShell 擴充Microsoft.Web.Administration 第二部分)
本文介紹了使用PowerShell 擴充IIS7所特有的Microsoft.Web.Administration API的方法。本系列的第一篇Accessing Microsoft.Web.Administration through PowerShell (Part I) 也非常值得一讀。