Time of Update: 2015-10-10
標籤:??Asp.net SQL注入執行個體分享1.web.config裡加連結欄位:<configuration> <connectionStrings > <add name="myConnectionString" connectionString="Server=10.231.248.177;Database=testdb;User
Time of Update: 2015-10-08
標籤:今天有個同事問到,在使用Entity Framework 的Database frist或model first時,怎麼在model上添加驗證的特性? 因為此時的Model是是VS 工具怎麼產生的,直接加attribute到modle類上是太現實也不合理。一個比較合理做法,就是用 buddy class的方式來實現。比如有一個Model類: Movie。那我們就可以添加一個局部類檔案,局部類的內容如下:using
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-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-10-01
標籤:因為小弟寫個方法還是很容易的,但是對於前端相關的東西卻不是很懂,在我自己做銅梁視窗這個小站的時候,涉及到每個頻道一個模板,每個頻道的相關頁面也是一個模板,小弟沒有吧html寫在aspx上面,然後在匹配模板的時候發現很多有些模板是可以公用的,例如首頁的head部分,還有其他的頻道head部分,還有footer部分,所以寫了下面這麼一個東西來控制每個頁面的模板調用,不知道對不對哈。請各位大牛小牛賜教!對了,在運營過程中,我伺服器每個月會產生1%的磁碟片段,不知道是否跟這個模板方案有關 ///
Time of Update: 2015-10-01
標籤:廢話不多說,上代碼!以下代碼比較簡單,可供開發擴充,CSS還得各位自己寫咯! /// <summary> /// 產生page外掛程式 /// </summary> /// <param name="href">完整串連</param> /// <param name="queryParam">參數</param> ///
Time of Update: 2015-10-04
標籤: 前段時間自學了asp.net
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-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());