Time of Update: 2015-04-17
標籤:今天繼續昨天的話題——單元測試,不過是在ASP.NET 5中的單元測試。 在當前的Visual Studio 2015 CTP6中,MSTest是不支援對ASP.NET 5項目進行單元測試的。因而,要對ASP.NET 5進行單元測試(或整合測試),就需要引入其它測試架構,比如XUnit.NET。 引入XUnit.NET很簡單,就是添加XUnit.NET的Nuget包(在package.json檔案中添加如下內容): "xunit":
Time of Update: 2015-03-06
標籤:學習ASP.NET
Time of Update: 2015-01-25
標籤:1.連接字串讀取1.1前言 本來我想在以後重構時,再來說這個問題。可是有園友問我:如何把資料庫連接字串寫到Config.json並讀取? 原來大家玩xml格式設定檔相當熟悉啦。可是ASP.NET 5項目換成越來越流行的JSON格式當設定檔。如果不去閱讀源碼,僅從Identity模板代碼看,還是很迷糊。1.2Config.json代碼
Time of Update: 2014-11-25
標籤:http io ar os 使用 sp for 檔案 資料 EF的使用步驟:(1)將EF添加到項目:在Model右擊添加建立項找到ADO.NET實體資料模型,接著。。。(2)實現資料庫的增
Time of Update: 2015-05-10
標籤:遇到標題中所說的問題原因是使用 jQuery AJAX 以 POST 方式調用 Asp.Net Web API 。解決辦法請看以下代碼中有注釋的部分。public static class WebApiConfig{ public static void Register(HttpConfiguration config) { config.Formatters.Clear(); config.Formatters.Add( new
Time of Update: 2015-04-28
標籤: if (dt == null) { return ""; } Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); if (xlApp == null) { return "
Time of Update: 2015-04-27
標籤:1. 獲得url2.解析query string,將外部傳入的匿名對象的key/value添加進去3. 添加該頁面特殊的key/value4.合并urlvar raw = HttpContext.Current.Request.Url.AbsoluteUri; string[] separateURL = raw.Split(‘?‘);//if found "?" parse query string else return empty
Time of Update: 2015-04-11
標籤:When you create a web API, it is often useful to create a help page, so that other developers will know how to call your API. You could create all of the documentation manually, but it is better to autogenerate as much as possible.To make this
Time of Update: 2015-03-31
標籤:asp iis 發布 windows server
Time of Update: 2014-11-08
標籤:style blog http io color ar os 使用 sp Delphi開發WebService給ASP.NET調用 說明:
Time of Update: 2014-11-09
標籤:http color ar 使用 sp 資料 div art bs 在Windows
Time of Update: 2014-11-02
標籤:style blog http 使用 sp div on 2014 log 進入IIS並將ASP裡的“Send Error To
Time of Update: 2014-10-26
標籤:blog http io os ar 使用 for strong sp 前言在ASP.NET、ASP.NET MVC和ASP.NET Web
Time of Update: 2014-10-13
標籤:android winform style blog http color io os 使用 最近一個WPF項目需要改寫成android項目,思路是在asp.net項目中編寫一個通用介
Time of Update: 2014-09-04
標籤:style os io 使用 strong 檔案 資料 div 問題 1. 讓IIS7支援ASP Win7或Windows server
Time of Update: 2014-09-10
標籤:報表 表單 asp.net jquery .net快速開發 循序漸進,通過XML配置,實現通用於WinForm(.Net)、WebForm(Asp.Net+JQuery+EasyUI)表單、報表--前言長江支流
Time of Update: 2014-09-10
標籤:報表 表單 asp.net jquery .net快速開發 連載:(二)循序漸進,通過XML配置,實現通用於WinForm(.Net)、WebForm(Asp.Net+JQuery+EasyUI)表單、報表--原理長江支流 &
Time of Update: 2014-05-24
標籤:style blog c tar http a
Time of Update: 2014-05-14
標籤:des style blog class code c 什麼是依賴注入 依賴,就是一個對象需要的另一個對象,比如說,這是我們通常定義的一個用來處理資料訪問的儲存,讓我們用一個例子來解釋,首先,定義一個領域模型如下:namespace
Time of Update: 2018-12-08
經常有這樣的要求,根據不同的需求要求include不同的檔案如各個人的不同設定,所以要求能動態include檔案受<! #include file="filename.asp" --> 宏限制 必須存在該檔案並且會預先編譯(不管前面是否加以條件) 經常有這樣的要求,根據不同的需求要求include不同的檔案 如各個人的不同設定,所以要求能動態include檔案。 代碼如下:Function include(filename) Dim