標籤:asp.net mvc 5 web api 為asp.net的mvc web api填寫自己的協助文檔1. 添加Help的area(可以通過命令列或其他方式添加,nuget命令列的命令忘記了)2. 為api等添加註釋3. 產生注釋為xml檔案4. 將xml賦予Help的configuration 在help的config檔案中
數組的定義 Dim MyArray MyArray = Array(1,5,123,12,98) 可擴充數組 Dim MyArray() for i = 0 to 10 ReDim Preserve MyArray(i) MyArray(i)=i next 將一個字串分割並返回分割結果的數組 Dim MyArray MyArray = Split(tempcnt,chr(13)&chr(10)) For I = Lbound(MyArray) to Ubound(MyArray)
複製代碼 代碼如下:<!-- //ASP分頁函數 function ShowListPage(page,Pcount,TopicNum,maxperpage,strLink,ListName){ var alertcolor = '#FF0000'; maxperpage=Math.floor(maxperpage); TopicNum=Math.floor(TopicNum); page=Math.floor(page); var n,p;
開啟VB,建立AX DLL,工程名為Str,類名count,輸入如下代碼:複製代碼 代碼如下:Public Function add(ByVal a As Double, ByVal b As Double, ByVal c As Integer, ByVal d As Integer) As Double d = CInt(d) If c = 1 Then '加 add = FormatNumber(a + b, d) ElseIf c = 2 Then '減 add =
複製代碼 代碼如下: function unHtml(content) unHtml=content if content <> "" then unHtml=replace(unHtml,"&","&") unHtml=replace(unHtml,"<","<") unHtml=replace(unHtml,">",">") unHtml=replace(unHtml,chr(34),""")
公司伺服器有.NET2的應用在運行,而我使用了.NET4平台開發,本機測試沒問題,扔伺服器發現要麼我的新平台不好使,要麼.NET2的舊平台不好使,各種重啟IIS服務和WWW服務都無濟於事當我意識到是這兩個平台衝突時,我回想了下我並沒有使用什麼涉及到衝突的組件和功能,於是我猜測可能是.NET2和.NET4的版本衝突問題錯誤提示顯示:Server Application UnavailableThe web application you are attempting to access on