Asp.net Socket用戶端(遠程發送和接收資料)

複製代碼 代碼如下:/*************************************** * 對象名稱: SocketObj * 功能說明: 遠程發送與接收 * 試用樣本: * using EC; //引用空間名 * string url = "218.75.111.74"; // URL也可以是(http://www.baidu.com/)這種形式 * int port = 8000; //連接埠 * string SendStr = "domainname\n";

XMLHttp ASP遠程擷取網頁內容代碼

複製代碼 代碼如下:url="http://www.csdn.net/" wstr=getHTTPPage(url) start=Newstring(wstr,"資源精選<!-- 下載 -->") over=Newstring(wstr,"<div class=""friendlink"">") body=mid(wstr,200,500) response.write body Function getHTTPPage(url) dim objXML set

Asp.net 檔案上傳類(取得檔案尾碼名,儲存檔案,加入文字浮水印)

複製代碼 代碼如下:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;

Asp.net 彈出對話方塊基類(輸出alet警告框)

using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using

asp.net cookie清除的代碼

Request.Cookies.Clear()這個方法並不是刪除Cookie 刪除 Cookie(即從使用者的硬碟中物理移除 Cookie)是修改 Cookie 的一種形式。 由於 Cookie 在使用者的電腦中,因此無法將其直接移除。 但是,可以讓瀏覽器來為您刪除 Cookie。 該技術是建立一個與要刪除的 Cookie 同名的新 Cookie, 並將該 Cookie 的到期日設定為早於當前日期的某個日期。 當瀏覽器檢查 Cookie 的到期日時,瀏覽器便會丟棄這個現已到期的 Cookie。

asp.net 擷取機器硬體資訊(cpu頻率、磁碟可用空間、記憶體容量等)

複製代碼 代碼如下:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;

Asp.net 時間操作基類(支援短日期,長日期,時間差)

複製代碼 代碼如下:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;

Asp.NET 隨機碼產生基類(隨機字母,隨機數字,隨機字母+數字)

複製代碼 代碼如下:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;

ASP.NET XmlHttp跨域訪問實現代碼

原來由於瀏覽器的安全限制,網路連接的跨域訪問時不被允許的。我們不能在瀏覽器端直接使用AJAX來跨域訪問資源,但是在伺服器端是沒有這種跨域安全限制的。所以,我們只需要讓伺服器端幫我們完成“跨域訪問”的工作,然後直接擷取伺服器端“跨域訪問”的結果就可以了。分享下我的解決辦法,希望能有所協助。^_^ CertCheck.aspx: 複製代碼 代碼如下:using MSXML2;   namespace CA2   {   public partial class CertCheck : System.

Asp.net 字串操作基類(安全,替換,分解等)

/********************************************************************************** * * 功能說明:常用函數基類 * 作者: 劉功勳; * 版本:V0.1(C#2.0);時間:2006-8-13 * * *******************************************************************************/ /***********************

Regex提取網址、標題、圖片等一例(.Net Asp Javascript/Js)的實現

在一些抓取、過濾等情況下, Regex regular expression 的優勢是很明顯的。 例如,有如下的字串: 複製代碼 代碼如下:<li><a href="http://www.abcxyz.com/something/article/143.htm" title="FCKEditor高亮代碼外掛程式測試"><span

Asp.net XMLHTTP封裝類(GET,Post發送和接收資料)

複製代碼 代碼如下:/**************************************************************** * 函數名稱:SendCommand(SendMethod method, ST_Param p) * 功能說明:向遠程發送URL和參數,接受返回資訊(無亂碼); * 參 數:method:xml發送方法,POST/Get 兩種 P:參數結構體 public string Url; //遠程URL public string

ASP ajax分頁教程一

為什麼我寫ASP分頁教程要提到AJAX呢,因為我們要多練習一下編程過程中,結構化的重要性. 再加上很多朋友對分頁感到很高深,所以一直都不敢去碰他,要麼就用別人寫好的組件,要麼就是改改別人的東西.特別是.net,我深有感觸,假如要快速開發一個項目,我想.net是一個非常優秀的平台.但是,因為他的嚴重控制項化,反而是新手接觸不到編程的思想,完全找不到編程的感覺,彷彿就象在搭積木.有時候還是要練習一下底層一點的東西,這樣個人的技術能力才會得到提高.我可不想做只會用.NET的組裝工人.

將ASP記錄集輸出成n列的表格形式顯示的方法

'定義變數 Dim cn,rs,Sql Sql = "select CustomerID from Orders" '記錄總數 Dim TotalNumbe Set cn = Server.CreateObject("ADODB.Connection") cn.Open "Provider=SQLOLEDB.1;User ID=sa;Initial Catalog=NorthWind;Data Source=.;Password=;" Set rs = Server.CreateObject("

ASPRegex技巧

複製代碼 代碼如下:<% str = request("str") reg = request("reg") set regex = new RegExp With regex .Pattern = reg .IgnoreCase = False .Global = True End With Set match = regex.Execute(str) If match.Count > 0 Then For Each matched in match Response.Write

asp.net COOKIES需要注意的一點

由於COOKIES的設定簡單,使用起來也很方便,因此,平時直接讀寫COOKIE的過程中並沒有發現COOKIE的Expires問題。 當從 REQUEST擷取一個COOKIES執行個體後,如果不重新設定Expires的情況下再次將COOKIES發送到用戶端,Expires會變成關閉頁面到期。 舉個例: 先在一個頁面裡發送COOKIES HttpCookie _currentCookie; _currentCookie = new HttpCookie("test");

Ajax+asp應用執行個體 註冊模組,表單提交

<!--註冊模組-->default.asp 複製代碼 代碼如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Ajax -

安徽IT吧免費提供Asp/Php 1G空間

安徽IT吧免費提供Asp/Php空間 免費空間大小:1G 功能:FTP管理+ASP+PHP+VbScript/Jscript+NEt.+FSO組件+動易組件+Access資料庫+MYSQL資料庫+MSSQL資料庫 ASP探針:http://free.ahit8.cn/asp.asp PHP探針:http://free.ahit8.cn/php.php IIS串連數:500 網路流量:不限制 CPU資源分派:2% 安全性:病毒防火牆系統 支援並即時線上升級 金盾8G抗DDOS硬防

ASP分頁類(支援多風格變換)

這個分頁使用的是0遊標,也就是Rs.Open Sql,Conn,0,1。但是感覺也快不了多少,10萬條資料的分頁時間300多豪秒之間。複製代碼 代碼如下:<% '****************************** '名稱:分頁類 '日期:2005/12/3 '作者:西樓冷月 '網址:www.xilou.net | www.chinaCMS.org '描述:無 '著作權:轉載請注名出處,作者 '****************************** Class Page

ASP訪問數量統計代碼

1。建立資料庫表 表名為online 設如下欄位 id '用來記錄每一個訪問都的session.sessionid name '如果是訪客,則記錄為訪客。 online '如果是訪各為0 如果是會員1 datetime '最近啟用時間 username '會員的登入使用者名稱,訪客為空白。 ip '記錄訪問都的登入IP head.asp '向資料庫表寫入線上人數,該頁面必須搜入到每一個用於瀏覽ASP頁面中。 <% set

總頁數: 1638 1 .... 432 433 434 435 436 .... 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.