Time of Update: 2018-12-07
著作權聲明:原創作品,允許轉載,轉載時請務必以超連結形式標明文章 原始出處 、作者資訊和本聲明。否則將追究法律責任。http://www.cnblogs.com/jintan/archive/2008/10/25/1319308.html 早晨不經意間看到園子裡 Bēniaǒ同學的《由var js =
Time of Update: 2018-12-07
現在需要通過按鈕來控制介面上的Silverlight顯示的值。其方法如下。1、首先在Silverlight中UserControl中編寫一個js可以訪問的方法。注意:此方法要用ScriptableMember特性。 Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
通過以上樣本主要說明Spring.NET架構的IoC容器特性和對NHibernate的整合。 Spring.NET架構的IoC 容器最核心內容是 IObjectFactory、IApplicationContext、IObjectDefinition三個介面。IObjectFactory 是核心容器介面,負責管理容器內的注入對象,而 IApplicationContext 則是 IObjectFactory 的繼承,它擴充了一些功能。IObjectDefinition 是注入對象的定義介面,供
Time of Update: 2018-12-07
http://www.cnblogs.com/chenbg2001/archive/2009/02/03/1383119.html 我們建立以下C#代碼檔案: 1、 MySwap.cs using System; namespace MyMethods { public class SwapClass { public static bool Swap(ref long i,ref long j) { i = i+j; j = i-j; i = i-j; return
Time of Update: 2018-12-07
雖然這是個老話題了,在google中也有不少,不過還是經常有人問起,還是寫一下吧。1.確定有安裝.net framework 1.1,可以查看目錄,c:\winnt\microsoft.net\framework重啟IIS,重啟電腦(常規錯誤修正方法)2.如果你的Web伺服器使用了固定IP:確定你的“Internet資訊服務”中使用的是“預設web網站”並且屬性中的IP地址為“(全部未分配)”,不是指定IP地址。不要刪除預設web網站,如果刪除了,也可以建立一個名稱為“預設web網站”的目錄。3
Time of Update: 2018-12-07
使用Routing實現 系列文章目錄 一、偽靜態方式(使用URLRewriter) 1、改寫方法 (文章地址:http://www.cnblogs.com/scottckt/archive/2011/01/12/1933737.html) 2、回傳時處理方法(文章地址:http://www.cnblogs.com/scottckt/archive/2011/01/12/1933791.html)
Time of Update: 2018-12-07
ASP.NET運算式格式為:<%$ 運算式的類型: 運算式值名 %> 運算式類型有: AppSettings、ConnectionStrings 或 Resources 等。這些類型與Web.Config中內容對應。 用法: 例如在Web.Config中配置:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><appSettings&
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
1. < %#... %> < %#... %>: 是在繫結控制項DataBind()方法執行時被執行,用於資料繫結,如: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->< %# Container.DataItem("tit") %>2. < %= %>
Time of Update: 2018-12-07
1、瞭解用戶控制項 用戶控制項的擴展名為.ascx。打開.ascx源碼,其中第一行使用Control指令來表示用戶控制項。如下面源碼:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListEvents.ascx.cs"
Time of Update: 2018-12-07
1 <script language=VBscript>2 Set WshShell = CreateObject("WScript.Shell")3 WshShell.Run "%windir%\notepad" ,3,false 4 </script>5 但是這要看用戶端IE的安全設定1 <script language=javascript>2 <!--3 function aa(){4 var WshShell = new ActiveX
Time of Update: 2018-12-07
1.獲得系統時間: <%=now()%>2.取得來訪用的IP: <%=request.serverVariables("remote_host")%>3.獲得系統,瀏覽器版本: <script> window.document.write("版本:"+navigator.appName+navigator.appVersion+" browser.") </script>4.去除IE混動條: <body scroll=
Time of Update: 2018-12-07
利用XMLHTTP來製作小偷的具體細節落伍很多人都發過和討論過了,但是在製作ASP小偷的過程中,很多人就發現ASP小偷不如PHP小偷的那麼強大了。確實,如果在原網站如果存在表單提交或cookies的驗證,對於ASP來說,不使用基於SOCKET的組件就難以完成,其實,XMLHTTP的另外兩個方法被我們忽略了,而這正是問題的關鍵。下面首先來說說這個方法1。.send()由於流行的小偷是使用的GET而不是POST來傳送資料,所以很多人忽略了這個方法,而使用SEND發送資料也很簡單,就是SEND("內容
Time of Update: 2018-12-07
我們在進行asp.net開發時,經常會用到一些javascript指令碼,比如: private void button1_click(object sender, system.eventargs e) { response.write( "<script language='javascript'>alert('ok');</script>") ;
Time of Update: 2018-12-07
函數 文法 說明 樣本 Now Now() 取得系統當前的日期和時間 Dim MyVar MyVar = Now '' MyVar 包含當前的日期和時間。 Date Date() 取得系統當前的日期 Dim MyDate MyDate = Date '' MyDate 包含當前系統日期。 Time Time() 取得系統當前的時間 Dim MyTime MyTime = Time '' 返回當前系統時間。 Year Year(Date) 取得給定日期的年份 Dim MyDate, MyYear
Time of Update: 2018-12-07
1<% 2'取得HTTP輸入的值並付值到HTOST中 3host=lcase(request.servervariables("HTTP_HOST")) 4SELECT CASE host 5' 如果HOST的值是www.livebaby.cn就選擇事件case www.livebaby.cn 的命令 6CASE "blog.livebaby.cn" 7 ' Below is the redirect command 8
Time of Update: 2018-12-07
1.禁用session假如您用不到session會話跟蹤請務必禁用它。您可以在每個asp.net頁面中設定如下:<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm1" EnableSessionState="false"
Time of Update: 2018-12-07
可以使用一組名稱-值對以連結字串的形式配置連結池。例如,可以配置池是否有效(預設是有效),池的最大、最小容量,用於打開連結的排隊請求被阻斷的時間。下面的樣本字串配置了池的最大和最小容量。 "Server=(local); Integrated Security=SSPI; Database=Northwind; Max Pool Size=75; Min Pool
Time of Update: 2018-12-07
ASP.net 2.0 中新增加了 Theme 的功能,它的出現能讓網站實現換膚更加容易。Theme 的實現包括:CSS、Skin、MasterPage。CSS 是用於控制所有 Html 標記的外觀。Skin 是用於控制所有 ASP.NET 伺服器調整的外觀,並且可以通過屬性 CssClass 定義它的 CSS 樣式。MasterPage 是 *.aspx 頁面模版,不過它沒有被定義到 Theme 中。-----------------------------------------------
Time of Update: 2018-12-07
在MVC 3中的有一個新的ViewBag 動態特性,它主要是為了從Controller到view進行傳值用的,類似有所使用的ViewData[] 字典類。對於ViewBag是如此的強大,意味著你能動態set/get 值,增加任何數量的的額外欄位而不需要強型別的檢測。為了看這些的不同(和不用viewbag的時候),我們來看看一下的執行個體:Eample:--using ViewBagController view plaincopy to