Time of Update: 2015-09-21
標籤:Linux 部署ASP.NET SQLite 應用 的坎坷之旅。文章底部 附範例程式碼。有一台閑置的Linux VPS,嘗試著部署一下.NET 程式,結果就踏上了坑之路,不過最後算是完美解決問題,遂記錄如下。環境:Linux系統為centos 6 mono 版本 mono-3.2.1 jexus版本 jexus-5.6.4 一.安裝環境 1.安裝mono首先安裝系統內容:yum -y install gcc gcc-c++
Time of Update: 2015-09-21
標籤: =============================== ‘conn.asp <% Dim connstr connstr="provider=microsoft.ACE.oledb.12.0;data source=" & server.MapPath("database/Config.mdb") Set conn = Server.Createobject("ADODB.Connection") conn.Open connstr %> ====
Time of Update: 2015-09-23
標籤:首先加入命名空間using System.Data.SqlClient;1.查詢SqlConnection conn = new SqlConnection();conn.ConnectionString = "Data Source=(local);Initial Catalog=資料庫名;UserID=sa;Password=123456";conn.Open();string strsql=“select語句";SqlCommand cmd = new
Time of Update: 2015-09-19
標籤:sqlmap 源檔案 dump 密碼 參數 找到注入點1、設定sqlmap -u 地址 --dbs --current-user,2、設定sqlmap -u 地址 --tables猜解表名,或者--dbms mysql --tables3、設定sqlmap -u 地址 -T uname(表名) --columns猜解列名4
Time of Update: 2015-09-17
標籤:首先,必須要使用開啟資料庫方法:<%dim objconn,objconnstrset objconn=server.createobject("adodb.connection")objconnstr="provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("data/data.mdb")objconn.open objconnstr%> 1、添加資料庫表<%dim
Time of Update: 2015-09-11
標籤:1,(index.asp 使用者登陸頁面)<!-- #include file="conn.asp" --><!-- blog.soowooo.cn 悠悠長假期 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>會員</title><style
Time of Update: 2015-09-29
標籤:問題描述當跨域(cross domain)調用ASP.NET MVC或者ASP.NET Web API編寫的服務時,會發生無法訪問的情況。重現方式使用模板建立一個最簡單的ASP.NET Web API項目,調試起來確認能正常工作建立另外一個項目,僅僅包含一個HTML頁面,發起AJAX的調用在瀏覽器中開啟這個網頁,我們會發現如下的錯誤(405:Method Not Allowed) 【備忘】同樣的情況,也發生在ASP.NET
Time of Update: 2015-09-27
標籤: ParameterBindingAttribute在上一篇中重點講了ModelBinderAttribute的使用情境。這一篇詳細的講一下ModelBinder背後的參數綁定原理。ModelBinderAttribute繼承自ParameterBindingAttribute,從命名上就是可以看出ParameterBindingAttribute是對Action參數進行綁定的一種特性。除了ModelBinderAttribute之外,WebAPI還另外定義了ValueProvi
Time of Update: 2015-09-24
標籤:建立動態Web API 控制器 ASP.NET Boilerplate 能夠自動為您的應用程式層產生Web API層。比如說我們有如下的一個應用服務:1 public interface ITaskAppService : IApplicationService2 {3 GetTasksOutput GetTasks(GetTasksInput input);4 void UpdateTask(UpdateTaskInput input);5
Time of Update: 2015-09-20
標籤: 在前面的幾篇文章中我們都是採用在URI中中繼資料類型進行傳參,實際上ASP.NET Web API也提供了對URI進行複雜參數的綁定方式--Model綁定。這裡的Model可以簡單的理解為目標Anction方法的某個參數。eg: public Figure GetFigureFromQueryString([ModelBinder]Figure figure) { return figure; } 請求url:
Time of Update: 2015-09-21
標籤:REFERENCE FROM
Time of Update: 2015-09-17
標籤:1、用visual studio 2015 建立一個 web api 應用程式。記住這是一個 web api 應用。2、建立一個web api 。3、用C#訪問,代碼如下:[沒有問題,返回正確] var requestJson = JsonConvert.SerializeObject(args);HttpContent httpContent = new StringContent(requestJson);httpContent.Headers.ContentType =
Time of Update: 2015-09-23
標籤:方法一:?protected void Button1_Click(object sender, EventArgs e){//關閉頁面--彈出提示ClientScript.RegisterStartupScript(Page.GetType(), "", ?"<script
Time of Update: 2015-09-23
標籤:環境:VS20101、建立一個Default.aspx檔案,把ReportViewer1控制項和ScriptManager1拖到頁面上。(1)、從ReportViewer1控制項的工作列中選擇設計新報表,出現”報表精靈“對話方塊。依次設定如下:“資料集屬性”,選擇或設定資料集。“排欄欄位”,將相應欄位拖放到行組、列組、值欄位對應的框中。?“選擇布局”,根據需要需要選擇相應布局。?“選
Time of Update: 2015-09-10
標籤:http://www.cnblogs.com/qingyuan/archive/2012/10/12/2720824.html 1. Web API簡單說明近來很多大型的平台都公開了Web API。比如百度地圖 Web API,做過地圖相關的人都熟悉。公開服務這種方式可以使它易於與各種各樣的裝置和用戶端平台整合功能,以及通過在瀏覽器中使用 JavaScript來建立更豐富的HTML體驗。所以我相信Web API會越來越有它的用武之地。說道Web
Time of Update: 2015-09-14
標籤: 博主剛剛學習ASP.NET
Time of Update: 2015-09-10
標籤:這裡我使用Jquery 來發起非同步請求實現資料調用。 繼續使用上一文章中的樣本,添加一個index.html頁面,添加對jquery的引用。 一、無參數Get請求 一般的get請求我們可以使用jquery提供的$.get() 或者$.ajax({type:"get"}) 來實現: 請求的後台Action方法仍為上篇文章中的GetUser() : 也可以用$.ajax({type:"get"})
Time of Update: 2015-09-11
標籤: //Client端調用 static void Main(string[] args) { string publicKey = "DpLMCOihcYI2i6DaMbso9Dzo1miy70G/3+UibTttjLSiJ3cco"; publicKey += "Kaen3Fecywdf7DrkcfkG3KjeMbZ6djBihD/4A=="; string privateKey =
Time of Update: 2015-09-11
標籤:Method Overriding RESTful services allow the clients to act on the resources through methods such as GET, POST, PUT, DELETE, and so on. GET and POST are the most frequently used methods. Most of the corporate firewalls allow port 80, the
Time of Update: 2015-09-15
標籤:要實現給mvc 和api 介面全域添加日誌統計,web api添加的方式有些不同FilterConfig.cs 頁面 public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new AuthorizeAttribute());