原创 純html靜態頁面怎麼獲取參數(用javascript傳遞頁面參數)
最近工作上有個奇怪的需求需要在靜態頁面之間傳遞參數我冥思苦想不得其解 純html靜態頁面怎麼獲取參數呢?後來突然想到javascript 一切迎刃而解...... 下面我來給大家說一下用javascript在靜態頁面上接受參數的方法其實很
原创 C# WinForm 窗體 自適應
private float X; private float Y; private void setTag(Control cons) { fore
原创 批量插入數據 C# SqlBulkCopy使用
private static void DataTableToSQLServer( DataTable dt) { string connectionString = GetConn
原创 asp.net中操作ftp的方法
有的時候我們上傳東西不想傳到web目錄而是ftp服務器,這樣可以不佔用服務器寶貴空間,以前發過一個tips中提到利用ftpsupport.dll操作ftp的方法,可能當時沒有說清楚,網友要求給個清楚的例子,就隨便寫了個文件可以上傳,下載,
原创 驗證郵箱是否真實存在 c#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u
原创 模擬POST傳參 並接收返回值
System.Net.WebClient WebClientObj = new System.Net.WebClient(); System.Collections.Specialized.
原创 c# 委託的用法
//這個是你 要執行的程序段函數 ,比如 這個函數 ,你想 讀取 數據庫的 很多內容 。你寫在這個函數裏。 private void WriteLog(string content) { //內容
原创 c# 根據日期 獲取今天星期幾
/// <summary> /// 根據年月日計算星期幾(Label2.Text=CaculateWeekDay(2004,12,9);) /// </summary> /// <param
原创 WCF 自定義異常
異常數據協定代碼: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceMod
原创 c# 多線程 調用帶參數函數
線程操作主要用到Thread類,他是定義在System.Threading.dll下。使用時需要添加這一個引用。該類提供給我們四個重載的構造函數(以下引自msdn)。 Thread (ParameterizedThreadStar
原创 靜態頁面獲取參數
最近工作上有個奇怪的需求需要在靜態頁面之間傳遞參數我冥思苦想不得其解 純html靜態頁面怎麼獲取參數呢?後來突然想到javascript 一切迎刃而解...... 下面我來給大家說一下用javascript在靜態頁面上接受參數的方法其實很
原创 asp.net 自動發送激活郵件,不需修改web.config配置文件
private void sendEmail(string numCode,string cu_name)//發激活碼郵件部分 { try { //編碼暫硬性規定爲GB2312
原创 Google的智能提示功能----- AutoComplete控件
AutoComplete控件的作用是根據用戶在文本框輸入的字符而做出相應的提示效果。例如GOOGLE搜索提示功能。屬性列表:TargetControlID:要實現提示功能的控件ServicePath:WEB服務的路徑ServiceMeth
原创 asp.net 禁止緩存
<%Response.CacheControl = "no-cache"; Response.AddHeader( "Pragma","no-cache"); Response.Expires = 0;%>