Time of Update: 2018-12-07
asp匯出到excel --------------------------------------------------------------------------------在開頭加上這一句Response.ContentType = "application/vnd.ms-excel"如果匯出結果為空白的,那就去掉它一下是匯出Excel代碼-------------------------------------------------------------------------
Time of Update: 2018-12-07
Shows how to perform a search with a WAP page and use ASP on the server to do the database query and then display the results. <%Response.ContentType = "text/vnd.wap.wml"%> <?xml version="1.0"?><!DOCTYPE wml PUBLIC
Time of Update: 2018-12-07
/*SP1*/CREATE PROCEDURE dbo.getUserListasset nocount onbeginselect * from dbo.[userinfo]endgo以上預存程序取得userinfo表中的所有記錄,返回一個記錄集。通過command對象調用該預存程序的ASP代碼如下:'**通過Command對象調用預存程序**DIM MyComm,MyRstSet MyComm =
Time of Update: 2018-12-07
Client.html <script language="JavaScript">function AddDataPost(sUserId,sUserName){/* *--------------- AddDataPost(sUserId,sUserName) ----------------- * AddDataPost(sUserId,sUserName) * 功能:通過XMLHTTP添加資料.相當於Form的Method=Post. *
Time of Update: 2018-12-07
js 實現讀取遠程xml <script language="JavaScript"> var xmlDoc=new ActiveXObject("Microsoft.xmlDOM"); xmlDoc.async=false; xmlDoc.load("http://www.donews.com/rss.xml"); //xmlDoc.loadxml("<description>品格</description>"); var
Time of Update: 2018-12-07
<%''本程式檔案名稱為:Pages.asp%> <%''包含ADO常量表檔案adovbs.inc,可從"\Program Files\Common Files\System\ADO"目錄下拷貝%> <!--#Include File="adovbs.inc"--> <%''*建立資料庫連接,這裡是Oracle8.05資料庫 Set conn=Server.CreateObject("ADODB.Connection") conn.Open
Time of Update: 2018-12-07
<% @language="VBScript"%><%Function readrss(xmlseed)dim xmlDoc dim httpSet http=Server.CreateObject("Microsoft.XMLHTTP") http.Open "GET",xmlseed,False http.send Set xmlDoc=Server.CreateObject("Microsoft.XMLDOM") xmlDoc.Async=False
Time of Update: 2018-12-07
<%@ LANGUAGE="VBSCRIPT" %><%Response.Expires = -1Response.AddHeader "Pragma", "no-cache"Response.AddHeader "cache-control", "no-store"'response.write("<script language=javascript>alert('"&JOB_ID&"')</script>")reportname =
Time of Update: 2018-12-07
第3章 ASP應用程式與會話在前面的章節中介紹了ASP提供的訪問一個客戶請求和產生響應的方法,本章將討論ASP的另兩個對象。就是Application和 Session對象。這兩個對象不是直接地與請求和響應的管理有關,而是更多地與ASP網頁運行環境的管理相關。與建立Web網站或Web應用程式有關的共同問題之一,是使用HTTP協議時沒有狀態。狀態提供了與一個指定使用者有關的變數值、對象和其他資源,並且應用程式中的任意常式都能使用它;以一種像VB或C++這樣的程式設計語言編寫一般的基於客戶的應用程式
Time of Update: 2018-12-07
Date 函數描述:返回當前系統日期。文法:DateDateAdd 函數描述:返回已添加指定時間間隔的日期。 文法:DateAdd(interval, number, date)interval: 必選。字串運算式,表示要添加的時間間隔。有關數值,請參閱“設定”部分。 number: 必選。數值運算式,表示要添加的時間間隔的個數。數值運算式可以是正數(得到未來的日期)或負數(得到過去的日期)。 date: 必選。Variant 或要添加 interval 的表示日期的文字。 interval
Time of Update: 2018-12-07
<%Response.Expires = 0%><% function FormatDate(sStr,sFormat,sChar) if sStr = "" or not isdate(sStr) or sChar="" then 'Response.Write "NULL" FormatDate = "" exit function end if dim sYear,sMonth,sDay,sHour,sMinute,sSecond sYear =
Time of Update: 2018-12-07
up.htm < html > < body > < form action="up.asp" ENCTYPE="multipart/form-data" method="post" > < table border=0 width=100% cellspacing="0" > < tr > < td width="30%" >請選擇您要上傳的gif圖片:< /td > < td width="70%" &
Time of Update: 2018-12-07
<%'OK工作室 http://ok123.k989.com'sort 一級分類表:sort_id,sort_name'nsort 二級分類表:nsort_id,sort_id,nsort_name'nnsort 三級分類表:nnsort_id,nsort_id,nnsort_name%><!--#include file="conn.asp"--><%dim countset rs=server.createobject("adodb.recordset")
Time of Update: 2018-12-07
NetBox Asp Web伺服器 是一個簡單的伺服器程式,功能和windows 的 IIS 幾乎一些,如果您的機器無法安裝或不支援iis,可以安裝這個程式來調試遠行.asp檔案。程式幾乎含有 IIS全部功能(預設為vbscript語頁的檔案,用上<SCRIPT LANGUAGE="JavaScript" runat="server">就不支援),但也有IIS沒有的功能。使用 NetBox 可以方便的將 asp 應用編譯成為獨立啟動並執行執行程式,完全擺脫 iis
Time of Update: 2018-12-07
<%filename="test.doc"'filename="test.xls"Response.ContentType = "application/msword"'Response.ContentType = "application/msexcel"response.AddHeader "content-disposition", "inline; filename=" & filename%><head><meta
Time of Update: 2018-12-07
在一個ASP.NET應用程式中有許多保留檔案夾1. Bin檔案夾Bin檔案夾包含應用程式所需的,用於控制項、組件或者需要引用的任何其他代碼的可部署程式集。該目錄中存在的任何.dll文 件將自動地連結到應用程式。如果在該檔案夾中留有不用的或到期的檔案,則可能出現“二義性引用(ambiguous reference)”異常的風險。換句話說,如果兩個不同的程式集定義相同的類(相同的命名空間和名稱),則ASP.NET運行庫不能決定應該使用哪一
Time of Update: 2018-12-07
前天同事發現了這個漏洞,今天我又在朋友的空間測試了下,確實可以運行一切命令,至今為止,MS沒有出補丁,估計中國又增加成千上萬的肉雞了。DDOS又要更猛了.It has been a long time since Token Kidnapping presentation (http://www.argeniss.com/research/TokenKidnapping.pdf) was published so Idecided to release a PoC exploit for
Time of Update: 2018-12-07
看了一下MSDN,我的理解是這項服務來管理 Session 的,正常來說,Session 位於IIS進程中(其實可以理解成在伺服器的記憶體中),當IIS重啟或程式池回收會自動清空Session。 ASP.NET State Service服務如果啟動可以解決這個問題,它會產生一個aspnet_state.exe進程,這個就是Session資訊的進程。只要這個進程在,就算是重啟了IIS,網站的Session也不會丟失。 用這個模式注意修改web.config<sessionState
Time of Update: 2018-12-07
構建基於forms的驗證機制過程如下: 1,設定IIS為可匿名訪問和asp.net web.config中設定為form驗證 2,檢索資料存放區驗證使用者,並檢索角色(如果不是基於角色可不用) 3,使用FormsAuthenticationTicket建立一個Cookie並回傳到用戶端,並儲存 角色到票中,如: FormsAuthentication.SetAuthCookie(Username,true | false) cookies儲存時間:
Time of Update: 2018-12-07
VBS隨便改一下就能用在WEB上,只是要找他的類型比較麻煩,用object總是感覺不爽。 Dim WMI Set WMI = GetObject("WinMgmts:") Set objs = WMI.InstancesOf("Win32_Process") For Each obj In objs Enum1 = Enum1 + obj.Description + Chr(13) + Chr(10) Next Dim WMI As Object WMI = GetObjec