Microsoft Docs - 最新文章

docs.microsoft.com 是 Microsoft 技術文件的新首頁,讓內容的 Web 體驗,還有您用來了解、管理及部署解決方案的內容建立和支援方式更先進。 您可以在這裡一次找到所有與 Microsoft 技術相關的內容。為了確保您可以隨時掌握 docs.microsoft.com 上新功能和精彩內容的最新資訊,我們為您建立了專用摘要。


Selected Feed: ASP.NET

具有 ASP.NET

https://learn.microsoft.com/zh-tw/aspnet/mobile/overview Detect the latest mobile devices using 51degrees.mobi Foundation 51degrees.mobi Foundation is a third-party open source project that enhances ASP.NET's Request.Browser API so you can easily detect recently-released mobile devices including Windows Phone 7, Android, and Apple iPad.
Published Date : 2022年4月18日

ASP.NET 概觀

https://learn.microsoft.com/zh-tw/aspnet/overview Web API ASP.NET Web API 是一個架構,可輕易建置 HTTP 服務並擴及廣大的用戶端範圍,包括瀏覽器和行動裝置。 ASP.NET Web 應用程式開發介面是在 .NET Framework 上建置 RESTful 應用程式的理想平台。 深入了解 Web API (英文) 即時技術 ASP.NET SignalR 是適用于 ASP.NET 開發人員的新程式庫,可讓開發即時 Web 功能變得更容易。 SignalR 允許伺服器與用戶端之間的雙向通訊。 伺服器可以在內容可供使用時立即將內容推送至已連線的用戶端。 SignalR 支援 Web 通訊端,並回復為舊版瀏覽器的其他相容技術。 SignalR 包含連線管理 (API,例如,連線和中斷線上活動) 、群組連線和授權。
Published Date : 2022年9月30日

在 ASP.NET 4.x 和 ASP.NET Core 之間進行選擇

https://learn.microsoft.com/zh-tw/aspnet/core/fundamentals/choose-aspnet-framework ASP.NET Core ASP.NET Core 是一種開放原始碼、跨平台的架構,用於在 Windows、macOS 或 Linux 上建置現代化的雲端式 Web 應用程式。 ASP.NET Core 提供下列優點: 用於建置 Web UI 和 Web API 的統一劇本。 可測試性架構。 Razor 頁面可讓撰寫以頁面為主的案例更容易且更具生產力。 Blazor 可讓您在瀏覽器中搭配 JavaScript 使用 C#。 共用伺服器端與用戶端應用程式邏輯都是以 .NET 撰寫。 能夠在 Windows、macOS 和 Linux 上開發並執行。 開放原始碼和社群導向。 整合的用戶端架構和開發工作流程。 支援使用 gRPC 裝載遠端程序呼叫 (RPC) 服務。
Published Date : 2022年6月3日

ASP.NET Web API - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/ ASP.NET 4.x Web API Article 05/11/2022 3 minutes to read 7 contributors Feedback In this article Guidance Getting Started Getting Started with Web API 2 (C#) Action Results in Web API 2 Using Web API with ASP.NET Web Forms Creating Web API Help Pages Hands On Lab: Build a Single Page Application (SPA) with ASP.NET Web API and Angular.js Routing R…
Published Date : 2022年5月11日

ASP.NET Web Forms

https://learn.microsoft.com/zh-tw/aspnet/web-forms/ 學習專家的祕訣與技巧 使用當地語系化功能建立多語言網站 利用快取 讓快取發揮更大用處 利用 Web 組件和個人化 使用設定檔和佈景主題自訂我的網站 使用成員資格與角色保護我的網站安全 建立「與我們連絡」網頁 建立功能完整的客戶登入入口網站 使用主版頁面與網站導覽 建立資料驅動網站 實作 HttpModule 設定 SQL 成員資格提供者 實作重新撰寫 URL 利用適合 CSS 的控制項配置器 使用 HttpModule 處理應用程式事件 使用階層式樣式表的頁面配置 建立自訂成員資格提供者 建立自訂設定檔提供者 在 ASP.NET 中實作網站導覽 使用 ASP.NET 的驗證控制項 在 ASP.NET 中建立自訂的使用者控制項 實作 ASP.NET 應用程式的狀況監視 在 ASP.NET …
Published Date : 2021年3月27日

Web API 2 中的動作結果 - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/getting-started-with-aspnet-web-api/action-results 其優點高於 ASP.NET 4.x Web API: ASP.NET Core是開放原始碼的跨平臺架構,可用於在 Windows、macOS 和 Linux 上建置現代化、雲端式 Web 應用程式。 MVC 控制器和 Web API 控制器 ASP.NET Core統一。 可測試性架構。 能夠在 Windows、macOS 和 Linux 上開發並執行。 開放原始碼和社群導向。 整合的用戶端架構和開發工作流程。 雲端就緒、以環境為基礎的組態系統。 內建的相依性插入。 輕量型、高效能且模組化的 HTTP 要求管線。 能夠在 Kestrel、 IIS、 HTTP.sys、 Nginx、 Apache和 Docker上裝載。 並存版本。 可簡化現代網頁程式開發的工具。
Published Date : 2022年5月11日

ASP.NET Core授權簡介

https://learn.microsoft.com/zh-tw/aspnet/core/security/authorization/introduction ASP.NET Core授權簡介 發行項 11/28/2022 10 位參與者 意見反應 本文內容 授權是指決定使用者能夠執行的流程。 例如,系統管理使用者允許建立文件庫、新增檔、編輯檔,以及加以刪除。 使用文件庫的非系統管理使用者僅有權讀取檔。 授權是正交的,與驗證無關。 不過,授權需要驗證機制。 驗證是確認使用者身分的程式。 驗證可為目前使用者建立一或多個身分識別。 如需 ASP.NET Core中驗證的詳細資訊,請參閱ASP.NET Core驗證概觀。 授權類型 ASP.NET Core授權提供簡單、宣告式角色和豐富的原則型模型。 授權會以需求表示,而處理常式會根據需求評估使用者的宣告。 命令式檢查可以依據簡單原則或原則來評估使用者嘗試存取之資源的使用者身分識別和屬性。
Published Date : 2022年6月3日

ASP.NET Core概觀 SignalR

https://learn.microsoft.com/zh-tw/aspnet/core/signalr/introduction ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. Real-time web functionality enables server-side code to push content to clients instantly. Good candidates for SignalR: Apps that require high frequency updates from the server.
Published Date : 2023年2月14日

ASP.NET 身分識別簡介 - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/identity/overview/getting-started/introduction-to-aspnet-identity ASP.NET 成員資格系統是在 2005 年 ASP.NET 2.0 引進,自之後,Web 應用程式一般的方式有許多變更.... The ASP.NET membership system was introduced with ASP.NET 2.0 back in 2005, and since then there have been many changes in the ways web applications typicall....
Published Date : 2022年5月10日

從 ASP.NET 更新為 ASP.NET Core

https://learn.microsoft.com/zh-tw/aspnet/core/migration/proper-to-2x/ ASP.NET 應用程式的進入點是 Global.asax 檔案。 路由組態和篩選器和區域登錄等工作,會在 Global.asax 檔案中處理。 這個方法是以會影響到實作的方式,將應用程式和其部署所在的伺服器結合在一起。 為將它們分開,引進了 OWIN 以提供簡潔的方式,同時使用多個架構。 OWIN 提供的管線只新增所需的模組。 裝載環境採用 Startup 函式,設定服務和應用程式的要求管線。 Startup 向應用程式註冊一組中介軟體。 對於每項要求,應用程式會使用現有處理常式集合連結清單的標頭指標,呼叫每個中介軟體元件。 每個中介軟體元件都可以在要求處理管線新增一或多個處理常式。 這項作業是透過將參考傳回處理常式所完成,而此處理常式為清單的新標頭。
Published Date : 2023年3月8日

ASP.NET Core MVC 概觀

https://learn.microsoft.com/zh-tw/aspnet/core/mvc/overview Web API ASP.NET Core MVC 除了是建立網站的理想平台之外,也對建置 Web API 提供絕佳的支援。 您可以建置可供廣大用戶端使用的服務,包括瀏覽器和行動裝置。 架構包含 HTTP 內容交涉的支援,內建支援將資料 格式化 為 JS ON 或 XML。 撰寫自訂格式器可新增您專屬格式的支援。 使用連結產生可支援超媒體。 輕鬆就可支援跨原始來源資源共用 (CORS) ,讓您的 Web API 可跨多個 Web 應用程式共用。 可測試性 此架構使用介面和相依性插入,因此相當適用於單元測試,而此架構所包含的功能 (例如 Entity Framework 的 TestHost 和 InMemory 提供者) 也讓您可以輕鬆快速地進行整合測試。 深入了解如何測試控制器邏輯。
Published Date : 2022年6月27日

ASP.NET MVC 概觀

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions-1/overview/asp-net-mvc-overview ASP.NET MVC 架構是可高度測試的輕量型呈現架構,其中 (如同搭配 Web Form 應用程式) 整合了現有 ASP.NET 功能,例如主版頁面和成員資格驗證。 MVC 架構定義于 System.Web.Mvc 命名空間中,而且是 System.Web 命名空間的基本支援部分。 MVC 是許多開發人員熟悉的標準設計模式。 有些類型的 Web 應用程式將受益於 MVC 架構。 有些則繼續使用仰賴 Web Form 和回傳的傳統 ASP.NET 應用程式模式。 還有一些類型的 Web 應用程式將合併兩種方式;兩種方式並不互斥。 MVC 架構包括下列元件: 圖 01:叫用需要參數值的控制器動作, (按一下即可檢視大小完整的影像) 模型。 模型物件是實作應用程式資料欄邏輯的應用程式部分。
Published Date : 2020年4月10日

ASP.NET Web API

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/security/basic-authentication 針對公開的網站,您通常會想要針對 ASP.NET 成員資格提供者進行驗證。 若要使用 IIS 啟用基本驗證,請在 ASP.NET 專案的Web.config中,將驗證模式設定為 「Windows」: 在此模式中,IIS 會使用 Windows 認證進行驗證。 此外,您必須在 IIS 中啟用基本驗證。 在 [IIS 管理員] 中,移至 [功能檢視],選取 [驗證],然後啟用 [基本驗證]。 在您的 Web API 專案中,為任何需要驗證的控制器動作新增 [Authorize] 屬性。 用戶端會在要求中設定 Authorization 標頭來驗證本身。 瀏覽器用戶端會自動執行此步驟。 非瀏覽器用戶端必須設定 標頭。
Published Date : 2022年5月10日

ASP.NET Core 安全性主題

https://learn.microsoft.com/zh-tw/aspnet/core/security/ ASP.NET Core 提供數種方法可儲存應用程式秘密。 驗證與授權 驗證是一道程序,其會將使用者提供的認證與作業系統、資料庫、應用程式或資源中儲存的認證進行比對。 如果相符的話,使用者就能成功通過驗證,並可執行他們在授權程序期間取得授權的動作。 授權則是決定使用者得以執行哪些動作的程序。 您也可以將驗證想成是進入伺服器、資料庫、應用程式或資源這類空間的方法,而授權則表示使用者得以針對空間 (伺服器、資料庫或應用程式) 內哪些物件執行哪些動作。 軟體的常見弱點 ASP.NET Core 和 EF 包含的功能有助您保護應用程式的安全,並防範安全性缺口的發生。
Published Date : 2022年6月3日

ASP.NET Core Blazor 裝載模型

https://learn.microsoft.com/zh-tw/aspnet/core/blazor/hosting-models ASP.NET Core Web 服務器不需要裝載應用程式。 無伺服器部署案例可能,例如從內容傳遞網路 (CDN) 提供應用程式。 裝載 Blazor WebAssembly 模型有下列限制: 應用程式僅限於瀏覽器的功能。 支援用戶端硬體和軟體 (例如,需要 WebAssembly 支援) 。 下載大小較大,且應用程式需要較長的時間才能載入。 Blazor WebAssembly 支援預先 (AOT) 編譯,您可以在其中直接將 .NET 程式碼編譯成 WebAssembly。 AOT 編譯會導致執行時間效能提升,代價是較大的應用程式大小。 如需詳細資訊,請參閱裝載和部署 ASP.NET Core Blazor WebAssembly。
Published Date : 2023年1月26日

開始使用 ASP.NET Web API 2 (C#) - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api ASP.NET Web API can automatically serialize your model to JSON, XML, or some other format, and then write the serialized data into the body of the HTTP response message. As long as a client can read the serialization format, it can deserialize the object. Most clients can parse either XML or JSON.
Published Date : 2022年9月30日

裝載及部署 ASP.NET Core

https://learn.microsoft.com/zh-tw/aspnet/core/host-and-deploy/ 設定處理序管理員 ASP.NET Core 應用程式是一種主控台應用程式,必須在伺服器開機和損毀後重新啟動。 若要自動化啟動和重新啟動,需要有處理序管理員。 ASP.NET Core 最常見的處理序管理員是: Linux Nginx Apache Windows IIS Windows 服務 設定反向 Proxy 如果應用程式使用 Kestrel 伺服器,反向 Proxy 伺服器可用 Nginx、Apache 或 IIS。 反向 Proxy 伺服器會從網際網路接收 HTTP 要求,然後轉送到 Kestrel。 任一設定 (使用或不使用反向 Proxy 伺服器) 都是支援的裝載設定。 如需詳細資訊,請參閱何時搭配使用 Kestrel 與反向 Proxy。
Published Date : 2022年11月17日

使用 ASP.NET Web API 建置 RESTful API - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/older-versions/build-restful-apis-with-aspnet-web-api ASP.NET Web API是一組可簡化 HTTP 程式設計的元件。 因為它建置在 ASP.NET MVC 執行時間之上,所以 Web API 會自動處理 HTTP 的低階傳輸詳細資料。 同時,Web API 自然會公開 HTTP 程式設計模型。 事實上,Web API 的其中一個目標是 不要 將 HTTP 實境抽象化。 因此,Web API 既彈性又容易擴充。 REST 架構樣式已證明是利用 HTTP 的有效方式,雖然它當然不是 HTTP 的唯一有效方法。 連絡人管理員會公開 RESTful 以列出、新增和移除連絡人等等。 此實驗室需要對 HTTP、REST 有基本瞭解,並假設您有 HTML、JavaScript 和 jQuery 的基本工作知識。
Published Date : 2022年5月11日

IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5

https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45 Sample code for both ASP.NET 3.5 and ASP.NET 4.5 is contained in the following .zip: First, set up a simple ASP.NET 3.5 application on IIS 8.0: Open the "examples.zip" file. In Windows Explorer on your Windows Server 2012 machine, navigate to the "wwwroot" directory for your IIS installation.
Published Date : 2022年3月10日

ASP.NET Core 中的 Facebook 和 Google 驗證

https://learn.microsoft.com/zh-tw/aspnet/core/security/authentication/social/ Create a New ASP.NET Core Project Apply migrations Run the app and select the Register link. Enter the email and password for the new account, and then select Register. Follow the instructions to apply migrations.
Published Date : 2022年9月19日

ASP.NET Web API

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api 主要差異在於 Web API 會使用 HTTP 動詞命令,而不是 URI 路徑來選取動作。 您也可以在 Web API 中使用 MVC 樣式路由。 本文不會假設 ASP.NET MVC 的任何知識。 路由表 在 ASP.NET Web API中,控制器是處理 HTTP 要求的類別。 控制器的公用方法稱為 動作方法 ,或只是 動作。 當 Web API 架構收到要求時,它會將要求路由傳送至動作。 若要判斷要叫用的動作,架構會使用 路由表。
Published Date : 2022年5月10日

ASP.NET MVC 與 ASP.NET Core的應用程式啟動差異

https://learn.microsoft.com/zh-tw/dotnet/architecture/porting-existing-aspnet-apps/app-startup-differences ASP.NET MVC 啟動 裝載于 IIS 內,ASP.NET 應用程式依賴 IIS 具現化特定物件,並在要求送達時呼叫特定方法。 ASP.NET 會建立Global.asax檔案類別的實例,其衍生自 HttpApplication 。 收到第一個要求時,在處理要求本身之前,ASP.NET 呼叫 Application_StartGlobal.asax檔案類別中的 方法。 當 ASP.NET MVC 應用程式開始時,需要執行的任何邏輯都可以新增至這個方法。 ASP.NET MVC 和 Web API 的許多NuGet套件都會使用WebActivator套件,讓他們在應用程式啟動期間執行一些程式碼。
Published Date : 2023年2月25日

在 ASP.NET Core 中對應、自訂和轉換宣告

https://learn.microsoft.com/zh-tw/aspnet/core/security/authentication/claims ASP.NET Core用戶端應用程式只需要設定檔範圍。 使用 id_token for 宣告時,不需要額外的宣告對應。 取得使用者宣告的另一種方式是使用 OpenID Connect 使用者資訊 API。 ASP.NET Core用戶端應用程式會 GetClaimsFromUserInfoEndpoint 使用 屬性來設定此值。 第一個設定有一個重要差異,就是您必須使用 方法指定所需的宣告,否則 name 用戶端應用程式中只能使用 MapUniqueJsonKey 、 given_name 和 email 標準宣告。 中包含的 id_token 宣告預設會對應。 這是第一個選項的主要差異。 您必須明確定義您需要的一些宣告。
Published Date : 2022年11月1日

ASP.NET MVC 路由概觀 (C#)

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions-1/controllers-and-routing/asp-net-mvc-routing-overview-cs 首先,ASP.NET 路由會在應用程式的 Web 組態檔 (Web.config 檔案) 中啟用。 組態檔中有四個區段與路由相關:system.web.HTTPModules 區段、system.web.HTTPHandlers 區段、system.webserver.modules 區段,以及 system.webserver.handlers 區段。 請小心不要刪除這些區段,因為沒有這些區段路由將無法再運作。 其次,更重要的是,路由表會在應用程式的 Global.asax 檔案中建立。 Global.asax 檔案是特殊檔案,其中包含 ASP.NET 應用程式生命週期事件的事件處理常式。 路由表會在 Application Start 事件期間建立。
Published Date : 2023年2月21日

ASP.NET Core 中的網頁伺服器實作

https://learn.microsoft.com/zh-tw/aspnet/core/fundamentals/servers/ ASP.NET Core 中的網頁伺服器實作. Web server implementations in ASP.NET Core. /aspnet/core/fundamentals/servers/. 探索網頁伺服器 Kestrel 和HTTP.sys以進行 ASP.NET Core。 了解如何選擇伺服器,以及何時使用反向 Proxy 伺服器。 . Discover the web servers Kestrel and HTTP.sys for ASP.NET Core. Learn how to choose a server and when to use a reverse proxy server..
Published Date : 2023年1月31日

消費者入門搭配 ASP.NET MVC 5

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/getting-started/introduction/getting-started 在 [新增專案] 對話方塊中,選取左側的[Visual C#]類別,然後選取[Web 應用程式] (.NET Framework) 專案範本 ASP.NET。 將專案命名為 「MvcMovie」,然後選擇 [ 確定]。 在 [ 新增 ASP.NET Web 應用程式 ] 對話方塊中,選擇 [MVC ],然後選擇 [ 確定]。 Visual Studio 使用您剛才建立之 ASP.NET MVC 專案的預設範本,因此您現在沒有執行任何動作的工作應用程式! 這是簡單的「Hello World! 」專案,這是啟動應用程式的好位置。 按 F5 開始偵錯。 當您按下F5時,Visual Studio 會啟動IIS Express並執行 Web 應用程式。
Published Date : 2022年9月30日

使用 ASP.NET MVC (C#)

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions-1/movie-database/create-a-movie-database-application-in-15-minutes-with-asp-net-mvc-cs 控制器負責控制使用者如何與 ASP.NET MVC 應用程式互動。 請遵循下列步驟: 在 [方案總管] 視窗中,以滑鼠右鍵按一下 [控制器] 資料夾,然後選取功能表選項 [新增]、[控制器]。 在 [新增控制器] 對話方塊中,輸入名稱 HomeController ,並核取標示 為 [建立]、[更新] 和 [詳細資料] 案例 的核取方塊, (請參閱圖 8) 。 按一下 [ 新增 ] 按鈕,將新的控制器新增至您的專案。 完成這些步驟之後,就會建立清單 1 中的控制器。 請注意,其中包含名為 Index、Details、Create 和 Edit 的方法。 在下列各節中,我們將新增必要的程式碼,以取得這些方法才能運作。
Published Date : 2022年7月11日

ASP.NET MVC 與 ASP.NET Core之間的路由差異

https://learn.microsoft.com/zh-tw/dotnet/architecture/porting-existing-aspnet-apps/routing-differences ASP.NET MVC 和 Web API 中的路由 ASP.NET MVC 提供兩種方法來路由: 路由表,這是路由集合,可用來比對連入要求與控制器動作。 屬性路由,其會執行相同的函式,但可藉由裝飾動作本身來達成,而不是編輯全域路由表。 路由表 路由表會在應用程式啟動時設定。 一般而言,靜態方法呼叫是用來設定全域路由集合,如下所示: 在上述程式碼中,路由表是由 RouteCollection 型別所管理,用來新增具有 MapRoute 的新路由。 路由會命名並包含路由字串,其中包含控制器、動作、區域和其他預留位置的參數。 如果應用程式遵循標準慣例,大部分動作都可以透過這個單一預設路由來處理,但此慣例會使用其他路由設定的任何例外。
Published Date : 2023年2月25日

ASP.NET Web API中的例外狀況處理 - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/error-handling/exception-handling 如果您使用 「ASP.NET MVC 4 Web 應用程式」專案範本來建立專案,請將 Web API 設定程式碼放在 類別內 WebApiConfig ,其位於 App_Start 資料夾中: HttpError HttpError物件提供一致的方式來傳迴響應本文中的錯誤資訊。 下列範例示範如何在回應本文中使用 HttpError 傳回 HTTP 狀態碼 404 (找不到) 。 CreateErrorResponse 是在 System.Net.Http.HttpRequestMessageExtensions 類別中定義的擴充方法。 在內部,CreateErrorResponse會建立HttpError實例,然後建立包含HttpError的HttpResponseMessage。
Published Date : 2022年5月10日

搭配使用 Web API 與 ASP.NET Web Forms - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/getting-started-with-aspnet-web-api/using-web-api-with-aspnet-web-forms 概觀 雖然 ASP.NET Web API是以 ASP.NET MVC 封裝,但可以輕鬆地將 Web API 新增至傳統的 ASP.NET Web Forms應用程式。 若要在Web Form應用程式中使用 Web API,有兩個主要步驟: 新增衍生自 ApiController 類別的 Web API 控制器。 將路由表新增至 Application_Start 方法。 建立Web Form專案 啟動 Visual Studio,然後從 [開始] 頁面選取 [新增專案]。 或者,從 [ 檔案] 功能表中,選取 [ 新增 ],然後選取 [ 專案]。 在 [ 範本] 窗格中,選取 [已安裝的範本 ],然後展開 [Visual C# ] 節點。
Published Date : 2022年5月11日

適用于 IIS 的 ANCM (ASP.NET Core 模組)

https://learn.microsoft.com/zh-tw/aspnet/core/host-and-deploy/aspnet-core-module 使用 IIS 執行 ASP.NET Core應用程式,方法是: 在 IIS 背景工作進程 () w3wp.exe 內裝載 ASP.NET Core應用程式,稱為同進程裝載模型。 將 Web 要求轉送至執行伺服器之後端 ASP.NET Core應用程式 Kestrel ,稱為跨進程裝載模型。 每個裝載模型之間都有取捨。 根據預設,進程內裝載模型會因為效能和診斷而使用。 如需詳細資訊與組態指南,請參閱下列主題: ASP.NET Core 中的網頁伺服器實作 安裝 ASP.NET Core模組 (ANCM) ASP.NET Core模組 (ANCM) 會與.NET Core 裝載套件組合中的 .NET Core執行時間一起安裝。
Published Date : 2022年6月3日

ASP.NET Web API中的模型驗證 - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api 最安全的策略是使用完全符合用戶端允許傳送的模型類別: 注意 Brad Wilson 的部落格文章「ASP.NET MVC 中的輸入驗證與模型驗證」有良好的討論,說明張貼和過度張貼。 雖然文章大約 ASP.NET MVC 2,但問題仍與 Web API 相關。 處理驗證錯誤 驗證失敗時,Web API 不會自動將錯誤傳回給用戶端。 控制站動作可以檢查模型狀態並適當地回應。 您也可以建立動作篩選準則,以在叫用控制器動作之前檢查模型狀態。 下列程式碼顯示一個範例: 如果模型驗證失敗,此篩選會傳回包含驗證錯誤的 HTTP 回應。 在此情況下,不會叫用控制器動作。
Published Date : 2022年5月11日

搭配 ASP.NET Core使用React

https://learn.microsoft.com/zh-tw/aspnet/core/client-side/spa/react ASP.NET Core 應用程式主要用於存取資料、授權以及其他伺服器端事項。 位於子目錄中的 React 應用程式 ClientApp 是用於所有 UI 考慮。 新增頁面、影像、樣式、模組等等。 目錄 ClientApp 是標準 CRA React 應用程式。 如需詳細資訊,請參閱官方 CRA 文件 \(英文\)。 這個範本建立的 React 應用程式以及 CRA 本身建立的應用程式,二者之間存在些微的不同,不過應用程式的功能是一樣的。 由範本所建立的應用程式包含以 Bootstrap \(英文\) 為基礎的配置,以及基本的路由範例。 安裝 npm 套件 若要安裝協力廠商 npm 套件,請在子目錄中使用命令提示字元 ClientApp 。
Published Date : 2022年6月3日

搭配 ASP.NET Core使用Angular

https://learn.microsoft.com/zh-tw/aspnet/core/client-side/spa/angular ASP.NET Core 應用程式主要用於存取資料、授權以及其他伺服器端事項。 位於 ClientApp 子目錄中的Angular應用程式是用於所有 UI 考慮。 新增頁面、影像、樣式、模組等等。 目錄 ClientApp 包含標準Angular CLI 應用程式。 如需詳細資訊,請參閱 Angular 文件 \(英文\)。 由此範本所建立的 Angular 應用程式,以及由 Angular CLI 本身所建立 (透過 ng new) 的 Angular 應用程式之間存在些許不同,不過應用程式的功能是一樣的。 由範本所建立的應用程式包含以 Bootstrap \(英文\) 為基礎的配置,以及基本的路由範例。
Published Date : 2022年12月1日

教學課程:使用 ASP.NET Core 建立 Razor Pages Web 應用程式

https://learn.microsoft.com/zh-tw/aspnet/core/tutorials/razor-pages/ This series includes the following tutorials: Create a Razor Pages web app Add a model to a Razor Pages app Scaffold (generate) Razor pages Work with a database Update Razor pages Add search Add a new field Add validation At the end, you'll have an app that can display and manage a database of movies..
Published Date : 2022年12月2日

將 ASP.NET MVC 應用程式升級至 .NET 6 - .NET Core

https://learn.microsoft.com/zh-tw/dotnet/core/porting/upgrade-assistant-aspnetmvc The .NET Upgrade Assistant is a CLI tool that helps migrate an app from .NET Framework to .NET 6.. 使用 .NET 升級小幫手將 ASP.NET MVC 應用程式升級至 .NET 6 發行項 03/23/2023 4 位參與者 意見反應 本文內容 如需從 ASP.NET Framework 更新為 ASP.NET Core的最新資訊,請參閱從 ASP.NET MVC 和 Web API 升級至 ASP.NET Core MVC。 .
Published Date : 2023年3月23日

從 ASP.NET Core 6.0 移轉至 7.0

https://learn.microsoft.com/zh-tw/aspnet/core/migration/60-70 ASP.NET Core and Entity Framework Core are included in the list..
Published Date : 2023年3月13日

使用 Angular 建立 ASP.NET Core應用程式 - Visual Studio (Windows)

https://learn.microsoft.com/zh-tw/visualstudio/javascript/tutorial-asp-net-core-with-angular 在方案總管中,以滑鼠右鍵按一下 ASP.NET Core專案,然後選擇 [新增>專案參考]。 選取Angular專案,然後選擇 [確定]。 以滑鼠右鍵按一下方案總管中的 ASP.NET Core專案,然後選擇 [卸載專案]。 這會開啟專案的 .csproj 檔案。 在.csproj檔案中,更新專案參考,並將 值設定為 false 來新增 <ReferenceOutputAssembly> 。 當您更新參考時,它看起來應該像這樣 (取代您自己的專案資料夾和專案名稱) 。 以滑鼠右鍵按一下 ASP.NET Core專案,然後選擇 [重載專案]。 在 Program.cs中,更新 檢查 Environment.IsDevelopment ,使其看起來如下所示。
Published Date : 2023年3月1日

單元測試 ASP.NET Web API 2

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/testing-and-debugging/unit-testing-with-aspnet-web-api 在 [新增 ASP.NET 專案] 視窗中,選取 [空白 ] 範本,並新增 Web API 的資料夾和核心參考。 選取 [ 新增單元測試] 選項。 單元測試專案會自動命名為 StoreApp.Tests。 您可以保留此名稱。 建立應用程式之後,您會看到它包含兩個專案。 將單元測試專案新增至現有的應用程式 如果您在建立應用程式時未建立單元測試專案,您可以隨時新增一個。 例如,假設您已經有名為 StoreApp 的應用程式,而且您想要新增單元測試。 若要新增單元測試專案,請以滑鼠右鍵按一下您的方案,然後選取 [ 新增 ] 和 [ 新增專案]。 選取左窗格中的 [測試 ],然後針對專案類型選取 [單元測試專案 ]。 將專案命名為 StoreApp.Tests。 您將會在方案中看到單元測試專案。
Published Date : 2022年9月30日

測驗 70-486:開發 ASP.NET MVC Web 應用程式 - Learn

https://learn.microsoft.com/zh-tw/certifications/exams/70-486 這項測驗的候選項目是使用 Microsoft Visual Studio 2017 和 ASP.NET 來設計和開發 web 解決方案的專業開發人員。 候選項目最少需要三到五年的經驗,才能開發 Microsoft ASP.NET MVC 架構的解決方案和 Microsoft Azure Web Apps 的知識。 候選項目也應該具有下列體驗: 在 ASP.NET MVC 模型中設計和開發 web 應用程式 根據商務需求規劃和設計使用者互動解決方案 體驗完整的 web 應用程式開發生命週期 開發和部署至多層式環境,包括 Azure 設計與開發非同步方案 重要 注意: 在2018年1月15日生效的測驗更新。 若要深入瞭解這些變更,以及它們如何影響所測量的技能,請下載並參閱測驗486變更檔。
Published Date : 2023年3月14日

搭配使用 DropDownList 協助程式與 ASP.NET MVC

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions/working-with-the-dropdownlist-box-and-jquery/using-the-dropdownlist-helper-with-aspnet-mvc 測試 HTML 頁面,其運作方式就像 ASP.NET MVC 動作方法,並檢視我們先前測試過。 使用列舉改善電影選取清單 如果您的應用程式中的類別是固定的,而且不會變更,您可以利用列舉,讓您的程式碼更強固且更容易擴充。 當您新增類別時,會產生正確的類別值。 當您新增類別時,可避免複製並貼上錯誤,但忘記更新類別值。 開啟 Controllers\HomeController.cs 檔案,並檢查下列程式碼: 列舉eMovieCategories 會擷取四種電影類型。 方法 SetViewBagMovieType 會從 eMovieCategories列舉建立IEnumerable < SelectListItem >,並從 參數設定 Selected 屬性 selectedMovie 。
Published Date : 2022年7月11日

比較 Razor 頁面與 ASP.NET MVC

https://learn.microsoft.com/zh-tw/dotnet/architecture/porting-existing-aspnet-apps/comparing-razor-pages-aspnet-mvc 這通常會讓 Razor 頁面及其處理常式變得更小且更專注,同時讓您更輕鬆地尋找及處理新增或修改應用程式特定部分所需的所有檔案。 在從 ASP.NET MVC 移至 ASP.NET Core時,小組應該考慮是否要將控制器和檢視移轉至 ASP.NET Core控制器和檢視,或移轉至 Razor Pages。 前者最有可能需要稍微減少整體工作,但不允許小組利用 Razor Pages 優於傳統檢視型檔案組織的優點。 參考資料 ASP.NET Core 中的 Razor 頁面簡介 使用 Razor 頁面的更簡單 ASP.NET Core應用程式 上一個下一個.
Published Date : 2022年5月26日

使用 Azure Application Insights 設定 ASP.NET 的監視功能 - Azure Monitor

https://learn.microsoft.com/zh-tw/azure/azure-monitor/app/asp-net Create a basic ASP.NET web app Open Visual Studio 2019. Select File > New > Project. Select ASP.NET Web Application(.NET Framework) C#. Enter a project name, and then select Create. Select MVC > Create.
Published Date : 2023年3月22日

從 ASP.NET Web API移轉至 ASP.NET Core

https://learn.microsoft.com/zh-tw/aspnet/core/migration/webapi 在該專案中,基本 ASP.NET 4.x Web API 專案設定如下。 在 中 Global.asax.cs ,會呼叫 WebApiConfig.Register : 類別 WebApiConfig 位於 App_Start 資料夾中,而且具有靜態 Register 方法: 上述類別: 設定 屬性路由,但實際上並未使用它。 設定路由表。 範例程式碼預期 URL 符合 格式 /api/{controller}/{id} ,且 {id} 為選擇性。 下列各節示範如何將 Web API 專案移轉至 ASP.NET Core MVC。
Published Date : 2022年6月3日

ASP.NET Core 中的 Kestrel 網頁伺服器實作

https://learn.microsoft.com/zh-tw/aspnet/core/fundamentals/servers/kestrel Kestrel 支援 .NET Core 支援的所有平臺和版本。 檢視或下載範例程式碼 \(英文\) (如何下載) HTTP/2 支援 如果符合下列基本需求,則可以針對 ASP.NET Core 應用程式使用 HTTP/2: 作業系統† Windows Server 2016/Windows 10或更新版本/ Linux 含 OpenSSL 1.0.2 或更新版本 (例如 Ubuntu 16.04 或更新版本) 目標 Framework:.NET Core 2.2 或更新版本 Application-Layer Protocol Negotiation (ALPN) 連線 TLS 1.2 或更新版本連線 †在未來版本中,macOS 將支援†HTTP/2。
Published Date : 2023年3月22日

.NET 上的 gRPC 概觀

https://learn.microsoft.com/zh-tw/aspnet/core/grpc/ ASP.NET Core 上的 gRPC 服務 gRPC 服務可以裝載於 ASP.NET Core。 服務與 ASP.NET Core 功能 (例如記錄、相依性插入 (DI)、驗證和授權) 完整整合。 將 gRPC 服務新增至 ASP.NET Core 應用程式 gRPC 需要 Grpc.AspNetCore 套件。 如需在 .NET 應用程式中設定 gRPC 的相關詳細資訊,請參閱設定 gRPC。 gRPC 服務專案範本 ASP.NET Core gRPC 服務專案範本提供入門服務: GreeterService 繼承自 GreeterBase 類型,這是從 .proto 檔案中的 Greeter 服務所產生。
Published Date : 2022年10月15日

使用 ASP.NET Core SignalR 搭配 Blazor

https://learn.microsoft.com/zh-tw/aspnet/core/blazor/tutorials/signalr-blazor Run the app Follow the guidance for your tooling: Next steps In this tutorial, you learned how to: Create a Blazor project Add the SignalR client library Add a SignalR hub Add SignalR services and an endpoint for the SignalR hub Add Razor component code for chat To learn more about building Blazor apps, see the Blazor documentation: ASP.NET Core …
Published Date : 2023年1月26日

瞭解模型、檢視和控制器 (C#)

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions-1/overview/understanding-models-views-and-controllers-cs 瞭解 ASP.NET 路由 瀏覽器要求會透過稱為 ASP.NET Routing的 ASP.NET 架構功能,對應至控制器動作。 ASP.NET 路由是由 ASP.NET MVC 架構用來將連入要求 路由傳送 至控制器動作。 ASP.NET 路由會使用路由表來處理傳入要求。 當您的 Web 應用程式第一次啟動時,就會建立此路由表。 路由表是在 Global.asax 檔案中設定。 預設 MVC Global.asax 檔案包含在清單 1 中。 清單 1 - Global.asax 第一次啟動 ASP.NET 應用程式時,會呼叫 Application_Start () 方法。
Published Date : 2022年7月11日

裝載套件組合

https://learn.microsoft.com/zh-tw/aspnet/core/host-and-deploy/iis/hosting-bundle Locate the aspnetcorev2.dll file. Right-click the file and select Properties from the contextual menu. Select the Details tab. The File version and Product version represent the installed version of the module. The Hosting Bundle installer logs for the module are found at C:\Users\%UserName%\AppData\Local\Temp.
Published Date : 2022年7月7日

使用登入、電子郵件確認和密碼重設, (C#)

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/security/create-an-aspnet-mvc-5-web-app-with-email-confirmation-and-password-reset 在 [伺服器總管] 中,流覽至 [資料連線\DefaultConnection\Tables\AspNetUsers],以滑鼠右鍵按一下並選取 [ 開啟資料表定義]。 下圖顯示 AspNetUsers 架構: 以滑鼠右鍵按一下 [AspNetUsers] 資料表,然後選取 [ 顯示資料表資料]。 此時,尚未確認電子郵件。 按一下資料列,然後選取 [刪除]。 您將在下一個步驟中再次新增此電子郵件,並傳送確認電子郵件。 Email確認 最佳做法是確認新使用者註冊的電子郵件,以確認他們不會模擬其他人 (,也就是說,他們尚未向其他人的電子郵件註冊) 。 假設您有一個討論論壇,您會想要防止 "bob@example.com" 註冊為 "joe@contoso.com" 。
Published Date : 2022年7月1日

ASP.NET Core 7.0 的新功能

https://learn.microsoft.com/zh-tw/aspnet/core/release-notes/aspnetcore-7.0 瞭解 ASP.NET Core 7.0 中的新功能。
Published Date : 2023年3月13日

ASP.NET Core 上單頁應用程式的驗證簡介

https://learn.microsoft.com/zh-tw/aspnet/core/security/authentication/identity-api-authorization 與裝載于 ASP.NET Core應用程式內的單一頁面應用程式搭配使用 Identity 。
Published Date : 2022年9月19日

.NET 應用程式架構檔

https://learn.microsoft.com/zh-tw/dotnet/architecture/ 瞭解架構、建立和遷移 .NET 應用程式的建議作法。
Published Date : 2023年1月14日

ASP.NET Core 中的配置

https://learn.microsoft.com/zh-tw/aspnet/core/mvc/views/layout 了解如何先使用通用配置、共用指示詞,以及執行通用程式碼,再轉譯 ASP.NET 應用程式中的檢視。
Published Date : 2022年6月3日

ASP.NET MVC 4 概觀

https://learn.microsoft.com/zh-tw/aspnet/mvc/mvc4 ASP.NET MVC 4 ASP.NET MVC 4 是一種架構,可用於使用妥善建立的設計模式和 AS 的強大功能來建置可調整、以標準為基礎的 Web 應用程式...
Published Date : 2022年7月11日

從 ASP.NET Core Blazor 應用程式呼叫 Web API

https://learn.microsoft.com/zh-tw/aspnet/core/blazor/call-web-api 瞭解如何從 Blazor 應用程式呼叫 Web API。
Published Date : 2023年3月22日

在 ASP.NET 應用程式之間共用驗證 cookie

https://learn.microsoft.com/zh-tw/aspnet/core/security/cookie-sharing 瞭解如何在 ASP.NET 4.x 和 ASP.NET Core 應用程式之間共用驗證 cookie 。
Published Date : 2023年1月12日

保護 .NET 微服務和 Web 應用程式

https://learn.microsoft.com/zh-tw/dotnet/architecture/microservices/secure-net-microservices-web-applications/ .NET 微服務和 Web 應用程式中的安全性 - 了解 ASP.NET Core Web 應用程式中的驗證選項。
Published Date : 2023年3月1日

在 ASP.NET MVC 4 中使用非同步方法

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/performance/using-asynchronous-methods-in-aspnet-mvc-4 本教學課程將教導您使用 Visual Studio Express 2012 for Web 建置非同步 ASP.NET MVC Web 應用程式的基本概念,這是免費的...
Published Date : 2022年4月18日

ASP.NET Web API 2

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/testing-and-debugging/unit-testing-controllers-in-web-api 本主題描述 Web API 2 中單元測試控制器的一些特定技術。 閱讀本主題之前,您可能想要閱讀教學課程單元...
Published Date : 2022年9月30日

ASP.NET Core 中的 .NET 泛型主機

https://learn.microsoft.com/zh-tw/aspnet/core/fundamentals/host/generic-host 在 ASP.NET Core 應用程式中使用 .NET Core 一般主機。 一般主機負責應用程式啟動和存留期管理。
Published Date : 2022年6月3日

與 ASP.NET Core 之間的差異 SignalRSignalR

https://learn.microsoft.com/zh-tw/aspnet/core/signalr/version-differences 與 ASP.NET Core 之間的差異 SignalRSignalR
Published Date : 2022年6月3日

防止 ASP.NET MVC 中的跨網站偽造要求 (CSRF) 攻擊

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/security/preventing-cross-site-request-forgery-csrf-attacks 說明跨網站偽造要求 (CSRF) 攻擊,以及如何在 ASP.NET Web MVC 中實作反 CSRF 量值。
Published Date : 2022年9月30日

發佈 ASP.NET Web 應用程式 - Visual Studio (Windows)

https://learn.microsoft.com/zh-tw/visualstudio/deployment/quickstart-deploy-aspnet-web-app 瞭解如何使用 [發佈] 工具,從 Visual Studio 將 ASP.NET 和 ASP.NET Core 發佈至網站。
Published Date : 2023年1月25日

ASP.NET Core 中的多重要素驗證

https://learn.microsoft.com/zh-tw/aspnet/core/security/authentication/mfa 瞭解如何在 ASP.NET Core應用程式中設定多重要素驗證 (MFA) 。
Published Date : 2022年11月1日

建立連接字串並使用 localDB SQL Server

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/getting-started/introduction/creating-a-connection-string 在本節中,我們會在應用程式的Web.config檔案中明確新增連接字串。
Published Date : 2022年7月1日

使用 ASP.NET Core 控制器建立 Web API - Training

https://learn.microsoft.com/zh-tw/training/modules/build-web-api-aspnet-core/ 使用 ASP.NET Core 控制器建立一個支援建立、讀取、更新、刪除 (CRUD) 作業的 RESTful 服務。
Published Date : 2023年1月14日

使用資料批註驗證程式驗證程式 (C#)

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions-1/models-data/validation-with-the-data-annotation-validators-cs 利用資料批註模型系結器,在 ASP.NET MVC 應用程式中執行驗證。 瞭解如何使用不同類型的驗證程式... (C#)
Published Date : 2022年7月11日

ASP.NET Core Blazor 狀態管理

https://learn.microsoft.com/zh-tw/aspnet/core/blazor/state-management 瞭解如何在應用程式中保存使用者資料 (狀態) Blazor 。
Published Date : 2022年11月8日

使用 TypeScript 建立 ASP.NET Core 應用程式 - Visual Studio (Windows)

https://learn.microsoft.com/zh-tw/visualstudio/javascript/tutorial-aspnet-with-typescript 在本教學課程中,您會使用 ASP.NET Core 和 TypeScript 建立應用程式
Published Date : 2023年3月8日

ASP.NET MVC 4 Entity Framework Scaffolding 和移轉

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-entity-framework-scaffolding-and-migrations 如果您熟悉 ASP.NET MVC 4 控制器方法,或已完成「協助程式、表單和驗證」Hands-On實驗室,您應該注意...
Published Date : 2022年7月11日

ASP.NET 教學課程

https://learn.microsoft.com/zh-tw/aspnet/tutorials 開發 ASP.NET 應用程式的逐步指南清單。
Published Date : 2022年4月18日

裝載及部署 ASP.NET Core Blazor WebAssembly

https://learn.microsoft.com/zh-tw/aspnet/core/blazor/host-and-deploy/webassembly 瞭解如何使用 ASP.NET Core、內容傳遞網路 (CDN) 、檔案伺服器和 GitHub Pages 來裝載和部署 Blazor WebAssembly 。
Published Date : 2023年3月8日

ASP.NET Core中的回應快取中介軟體

https://learn.microsoft.com/zh-tw/aspnet/core/performance/caching/middleware 了解如何設定和使用 ASP.NET Core 中的回應快取中介軟體。
Published Date : 2023年1月9日

在 ASP.NET Web API 1 中啟用 CRUD 作業 - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/web-api/overview/older-versions/creating-a-web-api-that-supports-crud-operations 教學課程示範如何使用 ASP.NET 4.x ASP.NET Web API,在 HTTP 服務中支援 CRUD 作業。
Published Date : 2022年5月11日

具有 ASP.NET MVC

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/security/ 如何讓 ASP.NET 網站更安全,以及如何實作驗證和授權。
Published Date : 2020年2月19日

ASP.NET Core Blazor JavaScript 互通性 (JS interop)

https://learn.microsoft.com/zh-tw/aspnet/core/blazor/javascript-interoperability/ 了解如何在 Blazor 應用程式中與 JavaScript 互動。
Published Date : 2023年3月8日

使用適合初學者的 ASP.NET Core,建置 Web 應用程式 - Training

https://learn.microsoft.com/zh-tw/training/paths/aspnet-core-web-app/ 使用 ASP.NET Core,開始進行 Web 開發。 在此適合初學者的路徑中,您將了解 C#、HTML、Razor Pages 等基本概念!
Published Date : 2023年3月10日

ASP.NET Core Web 主機

https://learn.microsoft.com/zh-tw/aspnet/core/fundamentals/host/web-host 了解 ASP.NET Core 中的 Web 主機,其負責啟動應用程式及管理存留期。
Published Date : 2022年6月3日

ASP.NET Core 控制器的相依性插入

https://learn.microsoft.com/zh-tw/aspnet/core/mvc/controllers/dependency-injection 了解 ASP.NET Core MVC 控制器如何在 ASP.NET Core 中,透過其含有相依性插入的建構函式明確要求其相依性。
Published Date : 2022年7月5日

ASP.NET MVC

https://learn.microsoft.com/zh-tw/aspnet/mvc/ 下載 ASP.NET MVC,並瞭解如何使用模型檢視控制器模式來建置 Web 應用程式。
Published Date : 2020年2月19日

ASP.NET MVC 4 相依性插入式

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-dependency-injection 注意:此實際操作實驗室假設您具備 ASP.NET MVC 和 ASP.NET MVC 4 篩選的基本知識。 如果您之前未使用 ASP.NET MVC 4 篩選準則,我們會...
Published Date : 2020年2月19日

將驗證和 Identity 移轉至 ASP.NET Core

https://learn.microsoft.com/zh-tw/aspnet/core/migration/identity 瞭解如何將驗證和身分識別從 ASP.NET MVC 專案移轉至 ASP.NET Core MVC 專案。
Published Date : 2022年6月3日

比較 ASP.NET Web API 2 和 ASP.NET Core

https://learn.microsoft.com/zh-tw/dotnet/architecture/porting-existing-aspnet-apps/webapi-differences ASP.NET Web API 2 個應用程式和 ASP.NET Core應用程式之間的 Web API 有何不同?
Published Date : 2023年2月16日

在 ASP.NET Core 中使用中樞 SignalR

https://learn.microsoft.com/zh-tw/aspnet/core/signalr/hubs 瞭解如何在 ASP.NET Core SignalR 中使用中樞。
Published Date : 2023年2月24日

在類別庫中使用 ASP.NET Core API

https://learn.microsoft.com/zh-tw/aspnet/core/fundamentals/target-aspnetcore 瞭解如何在類別庫中使用 ASP.NET Core API。
Published Date : 2022年10月1日

使用 Visual Studio

https://learn.microsoft.com/zh-tw/aspnet/web-pages/overview/getting-started/program-asp-net-web-pages-in-visual-studio 本附錄說明如何使用 Visual Studio 2010 或 Visual Web Developer 2010 Express,以 Razor 語法 ASP.NET Web Pages程式。
Published Date : 2022年9月30日

無法在網頁伺服器上啟動偵錯 - Visual Studio (Windows)

https://learn.microsoft.com/zh-tw/visualstudio/debugger/error-unable-to-start-debugging-on-the-web-server 當您嘗試對在 Web 服務器上執行的 ASP.NET 應用程式進行偵錯時,可能會收到此錯誤訊息:無法在 Web 服務器上開始偵錯。
Published Date : 2023年1月9日

ASP.NET Core 中的回應快取

https://learn.microsoft.com/zh-tw/aspnet/core/performance/caching/response 了解如何使用回應快取來降低頻寬需求,並提升 ASP.NET Core 應用程式的效能。
Published Date : 2023年3月17日

教學課程:建立 ASP.NET Web 應用程式,使用 Microsoft 身分識別平台進行驗證 - Microsoft Entra

https://learn.microsoft.com/zh-tw/azure/active-directory/develop/tutorial-v2-asp-webapp 在本教學課程中,您會建置 ASP.NET Web 應用程式,使用 Microsoft 身分識別平台和 OWIN 中介軟體來啟用使用者登入。
Published Date : 2023年1月30日

使用 Docker over HTTPS 裝載 ASP.NET Core映射

https://learn.microsoft.com/zh-tw/aspnet/core/security/docker-https 瞭解如何透過 HTTPS 使用 Docker 裝載 ASP.NET Core映射
Published Date : 2023年1月18日

使用 SMS 和電子郵件Two-Factor驗證

https://learn.microsoft.com/zh-tw/aspnet/mvc/overview/security/aspnet-mvc-5-app-with-sms-and-email-two-factor-authentication 本教學課程說明如何使用 Two-Factor 驗證來建置 ASP.NET MVC 5 Web 應用程式。 您應該完成使用... 建立安全 ASP.NET MVC 5 Web 應用程式...
Published Date : 2022年5月10日

消費者入門搭配 ASP.NET 4.7 Web Form 和 Visual Studio 2017

https://learn.microsoft.com/zh-tw/aspnet/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/introduction-and-overview 本逐步教學課程系列將教導您使用 ASP.NET 4.7 和 Microsoft Visual Studio 建置 ASP.NET Web Forms應用程式的基本概念
Published Date : 2022年4月18日

ASP.NET Core 6.0 的新功能

https://learn.microsoft.com/zh-tw/aspnet/core/release-notes/aspnetcore-6.0 瞭解 ASP.NET Core 6.0 中的新功能。
Published Date : 2022年10月29日

Entity Framework 文件

https://learn.microsoft.com/zh-tw/ef/ 了解如何使用 Entity Framework Core,這是適用於 .NET 的新式物件資料庫對應程式,可支援 LINQ 查詢、變更追蹤、更新與結構描述移轉。 瀏覽教學課程、範例程式碼、基本概念、API 參考等等。
Published Date : 2023年1月30日

ASP.NET Core中的驗證和授權 SignalR

https://learn.microsoft.com/zh-tw/aspnet/core/signalr/authn-and-authz 瞭解如何在 ASP.NET Core SignalR 中使用驗證和授權。
Published Date : 2022年9月21日

在 Linux 上使用 Apache 裝載 ASP.NET Core

https://learn.microsoft.com/zh-tw/aspnet/core/host-and-deploy/linux-apache 瞭解如何在 CentOS 上將 Apache 設定為反向 Proxy 伺服器,以將 HTTP 流量重新導向至上執行的 Kestrel ASP.NET Core Web 應用程式。
Published Date : 2023年3月6日

帳戶確認&密碼復原 - ASP.NET Identity (C#) - ASP.NET 4.x

https://learn.microsoft.com/zh-tw/aspnet/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity 執行本教學課程之前,您應該先完成使用登入、電子郵件確認和密碼重設建立安全 ASP.NET MVC 5 Web 應用程式。 本教學課程...
Published Date : 2022年5月10日

ASP.NET Core Blazor 教學課程

https://learn.microsoft.com/zh-tw/aspnet/core/blazor/tutorials/ 了解如何使用本文所列的教學課程來建置 Blazor 應用程式。
Published Date : 2022年11月8日