本周ASP.NET英文技術文章推薦[12/03 - 12/09](滑鼠移到文章標題上會有漂亮的預覽哦)

來源:互聯網
上載者:User

摘要

昨天諸事不順,早晨起來腸胃開始不舒服。下午堅持寫好本篇推薦文章之後,還沒發布居然鬼使神差一般就把草稿刪除了?!Windows Live Writer處理資料安全方面確實有一套,刪除的草稿無論用什麼軟體都恢複不回來……晚上帶著鬱悶的心情看中國和伊朗踢球,最後中國還是慘遭淘汰……

想想這個系列已經堅持了快兩個月了,停一期還真不是我的性格!忍住再寫一遍吧……無奈實在沒有心情詳細介紹,每一篇都三言兩句帶過而已……請各位見諒。

本期共有8篇文章:

  1. web.config中的AppSetting
  2. ASP.NET 2.0中的全球化以及本地化解決方案
  3. ASP.NET AJAX隱藏在背後的秘密
  4. 將DataGrid的資料倒入至Excel檔案中
  5. 建立ASP.NET Mobile表單中的Timer控制項
  6. WPF/E和Script#
  7. 用來建立WPF/E組件的Toolkit Extender
  8. 通過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) 也非常值得一讀。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.