原创 安裝asp.net運行環境,爲IIS網站配置環境
win+r輸入cmd進入控制檯 然後輸入命令: cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 回車 然後輸入命令aspnet_regiis.exe -i 回車,然後等待ASP.
原创 sqlserver存儲過程字符串拆分處理
將逗號分隔的字符串,每個都單獨打印出來 declare @xt varchar(max) declare @channel varchar(32) set @xt='2437fc26c8ad442e9b48aea4f90b91b0,2
原创 HJ 212-2017代替 HJ/T 212-2005 污染物在線監控(監測)系統數據傳輸標準
HJ 212-2017代替 HJ/T 212-2005 污染物在線監控(監測)系統數據傳輸標準 說明: 本標準適用於污染物在線監控(監測)系統、污染物排放過程(工況)自動監控系統與監控中心之 間的數據傳輸,規定了傳輸的過程及參數命令、交
原创 Compiler Error Message: CS1056: Unexpected character ‘$’,cshtml頁面編譯報錯Compilation Error
.cshtml報錯信息: Compilation Error Description: An error occurred during the compilation of a resource required to service
原创 PowerDesigner查看一共設計了多少張表
菜單指示: Model--->Tables,點擊了Tables後即可查看所有設計的表目錄 一共查看設計了33張表,效果圖:
原创 Already closed: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=505,
C#使用rabbitmq在接收消息事件處理中,同時發佈消息報錯: Already closed: The AMQP operation was interrupted: AMQP close-reason, initiated by Pe
原创 C#使用rabbitmq消息隊列
rabbitmq官網: 安裝rabbitmq: https://www.rabbitmq.com/install-windows.html 安裝指南: 1.首先安裝rabbitmq的Erlang依賴,下載地址: https://www
原创 正則表達式匹配p標籤裏面style裏面的值
<p style="line-height: 2em;"> <span style="font-family: SimSun; font-size: 16px;"></span> &nbs
原创 ASP.Net MVC分頁組件使用MvcSimplePager執行服務器C#分頁
action裏面分頁代碼參考: using MvcSimplePager; public async Task<ActionResult> CheckHistory(ArticleWhere where, int pageIndex
原创 功能“內插字符串”在 C# 5 中不可用。請使用6或更高的語言版本。
出現這個問題是因爲項目的編譯器以低版本的C#語言編譯就會導致高級用法(語法)不可用,所以要手動指定高級語言版本,不過突然出現這問題很有可能是之前手動改了web.config,註釋了節點<system.codedom> <system
原创 ASP.NET MVC授權登錄過濾器OnAuthorization過濾器AuthorizeAttribute使用
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; using
原创 Linq to sql多字段分組
var tj_query = from tv in (from sv in dbentities.Bus_StatisticalInfo.Where(x => x.depar
原创 C#清理文本里面的所有html標籤
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpress
原创 EF linq分組查詢結果再條件篩選
微軟有關linq查詢的group分組查詢表達式參考 https://docs.microsoft.com/zh-cn/dotnet/csharp/linq/group-query-results https://docs.microsof