[匯入]ASP常用函數:Del()

<%'功能:FSO刪除檔案'來源:http://jorkin.reallydo.com/article.asp?id=484'需要Path函數:http://jorkin.reallydo.com/article.asp?id=401Public Function Del(ByVal sFileName)    On Error Resume Next    Del = False    sFileName = Path(sFileName)    Dim oFSO    Set

[匯入]ASP常用函數:RadioScript()

<%'功能:用來在選擇<input type="radio">'來源:http://jorkin.reallydo.com/article.asp?id=563Function RadioScript(ByVal FormElement, ByVal ElementValue)    RadioScript = "<scr" & "ipt language=""javascript"" type=""text/javascript"">" &

[匯入]ASP常用函數:FormatDate()

<%'功能:多功能日期格式化函數'來源:http://jorkin.reallydo.com/article.asp?id=477Function FormatDate(sDateTime, sReallyDo)    Dim sJorkin    sJorkin = GetLocale()    If Not IsDate(sDateTime) Then sDateTime = Now()    sDateTime = CDate(sDateTime)    Select Case

[匯入]ASP常用函數:Exec()

<%'功能:執行SQL語句'來源:http://jorkin.reallydo.com/article.asp?id=487Public Function Exec(sCommand)    On Error Resume Next    OpenConn()    Set Exec = oConn.Execute(sCommand)    If Err Then        WriteLn Err.Source & ",請檢查您的查詢代碼是否正確。<br />"  

[匯入]ASP常用函數:FixImg()

<%'功能:請<img>標籤格式化為<img src="http://www.reallydo.com/images/logo_88x31.gif" />模式'來源:http://jorkin.reallydo.com/article.asp?id=480'需要RegReplace函數:http://jorkin.reallydo.com/article.asp?id=345Function FixImg(sString)    FixImg = sString &

[匯入]ASP常用函數:getXMLDOM()

<%'功能:擷取XMLDOM的最高版本'來源:http://jorkin.reallydo.com/article.asp?id=433'需要IsObjInstalled函數:http://jorkin.reallydo.com/article.asp?id=163Function getXMLDOM()    On Error Resume Next    XmlDomVersions = Array("MSXML2.DOMDocument.5.0",

[匯入]ASP常用函數:InArray2()

未完,測試中...<%'功能:判斷一個變數是否在於一個二維資料的某列'來源:http://jorkin.reallydo.com/article.asp?id=482'需要Bint函數:http://jorkin.reallydo.com/article.asp?id=395Function InArray2(ByVal sValue, ByVal aArray(), ByVal iColumn, ByVal bCompare)    On Error Resume

[匯入]ASP常用函數:LFill() RFill()

<%'功能:在一個字串前面補全另一字串'來源:http://jorkin.reallydo.com/article.asp?id=452Public Function LFill(ByVal sString, ByVal sStr)    Dim i, iStrLen : iStrLen = Len(sStr&"")    For i = iStrLen To 1 Step -1        If Right(sStr, i ) = Left(sString, i ) Then

[匯入]ASP常用函數:doAlert()

<%'功能:輸出alert資訊並實現頁面跳轉'來源:http://jorkin.reallydo.com/article.asp?id=470'需要Str4Js函數:http://jorkin.reallydo.com/article.asp?id=466Function doAlert(sInfo, sUrl)    Response.Write( "</scr" & "ipt>" & vbCrLf & "<scr" & "ipt

[匯入]ASP常用函數:DelArray2()

<%'功能:刪除二維數組中的iColumn列上值為sValue的行,當iColumn為-1時刪除第sValue行'來源:http://jorkin.reallydo.com/article.asp?id=483Function DelArray2(aArray, iColumn, sValue, bCompare)    If Not IsArray(aArray) Then Exit Function    Dim i, j, k, iUBound1,

[匯入]ASP常用函數:CheckBoxScript()

<%'功能:用來在指定CheckBox的哪幾個值上打勾'來源:http://jorkin.reallydo.com/article.asp?id=465Function CheckBoxScript(ByVal FormElement , ByVal ElementValue)    CheckBoxScript = "<scr" & "ipt language=""javascript"" type=""text/javascript"">" &

[匯入]ASP常用函數:TrimLR()

<%'功能:返回去除前sStr、後sStr 或前後sStr 的字串sString副本。(區分大小寫)'來源:http://jorkin.reallydo.com/article.asp?id=443Public Function TrimLR(ByVal sString, ByVal sStr, ByVal sLeftOrRight)    Dim iStrLen : iStrLen = Len(sStr)    Select Case UCase(sLeftOrRight)       

[匯入]怎麼用ASP抓取伺服器端加密過的網頁?

如:http://bill.finance.sina.com.cn/bill/detail.php?stock_code=sh600900&bill_size=40000抓來的 Stream 有這麼幾句話Server: nginx/0.5.19 和 Accept-Encoding: gzip, deflate而Content-Encoding: deflate 是一種加密方式.<%    Set ZLib = CreateObject("ScriptUtils.ZLib")   

[匯入]ASP常用函數:getIMG()

目前還是有BUG的,最新的測試頁面在: http://www.reallydo.com/getimg.asp正則分析頁面在: http://jorkin.reallydo.com/article.asp?id=380 發現BUG請在後面留言,謝謝.1.31修正src=後面有空格不能正確匹配.已修正.src=''為空白時出錯.已修正.發現BUG:

[匯入]ASP常用函數:InArray()

<%'功能:判斷一個值是否存在於數組'來源:http://jorkin.reallydo.com/article.asp?id=462Function InArray( sValue, aArray )    Dim x    InArray = False    For Each x In aArray        If x = sValue Then            InArray = True            Exit For        End

[匯入]ASP常用函數:SortArray2()

<%'功能:對一個二維數組的指定列進行排序,DESC為倒序'來源:http://jorkin.reallydo.com/article.asp?id=447'需要Swap過程:http://jorkin.reallydo.com/article.asp?id=446Function SortArray2(ByVal aSortArray(), ByVal iSortColumn, ByVal sSortDirection)    On Error Resume Next    Dim i,

[收藏]一篇講述ASP.NET運行原理的很好的文章

[轉貼]原貼地址http://www.cnblogs.com/Heroman/archive/2005/05/12/153975.aspx首先先感謝

asp.net 防惡意重新整理 多次點擊按鈕的方法

前台: <asp:button runat="server" ID="btn" text="Button" OnClick="aa_Click" /> 後台      public void page_load(Object obj, EventArgs e)    {        btn.Attributes.Add("onclick", "state=true;");        StringBuilder sb = new StringBuilder();       

ASP.NET指令碼過濾-防止跨站指令碼攻擊

ASP.Net 1.1後引入了對提交表單自動檢查是否存在XSS(跨站指令碼攻擊)的能力。當使用者試圖用<xxxx>之類的輸入影響頁面返回結果的時候,ASP.Net的引擎會引發一個 HttpRequestValidationExceptioin。預設情況下會返回如下文字的頁面:Server Error in '/YourApplicationPath' ApplicationA potentially dangerous Request.Form value was detected

【簡單Web伺服器搭建】基於Socket實現的最簡單的Web伺服器【ASP.NET原理分析】

      通常,我們藉助瀏覽器(通常是IE,FireFox或者Chrome)瀏覽網頁,例如,我們在地址欄中輸入DebugLZQ的部落格網址http://www.cnblogs.com/DebugLZQ/,斷行符號之後,就會在瀏覽器的視窗中看到Debug的首頁,如所示:      在這個簡單的操作背後影藏了巨大的複雜性。      我們在地址欄中輸入的內容稱為通用資源標記符(Universal Resource Identifier,URI)它有很多種樣式,在Web中我們通常稱為統一資源定位器(

總頁數: 1638 1 .... 792 793 794 795 796 .... 1638 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.