Time of Update: 2017-01-13
使用者註冊是很多網站都必須用的功能,實現註冊方法很多,今天我就把我方法拿出來共用一下吧,我把註冊填表檔案,與判斷儲存資料檔案分開,reg.htm 與reg.asp,這樣做的好處很多,我想這個不用我多說了吧,看了我以前的文章都應該知道了,我的文章在www.111cn.net裡面有很多,下面看代碼.reg.htm,效果圖我就不貼了,<table width="100%"border="0" cellpadding="0"
Time of Update: 2017-01-13
Function outHTML(str) Dim sTemp sTemp = str outHTML = "" If IsNull(sTemp) = True Then Exit Function End If sTemp = Replace(sTemp, "&", "&") sTemp = Replace(sTemp,
Time of Update: 2017-01-13
<%dim emailemail=request.form("email")if IsValidEmail(email) then if request("action")="退訂" then response.redirect "del_email.asp?email="&email else
Time of Update: 2017-01-13
沒事寫了一個簡單的使用者登入代碼,也貼出來吧<!--#include file="inc/cn.asp" --><!--#include file="inc/function.asp"
Time of Update: 2017-01-13
參照其他檔案修改的,網站終於恢複正常,不懂程式,所以不知道原理,大致是加個判斷吧。原來的代碼:For p=1 to mpage step 1dim fso,ktemplate,kypset fso=createobject("scripting.filesystemobject")set
Time of Update: 2017-01-13
Javascript編寫Asp時需要注意的一些地方論壇裡面有不少人在使用Javascript編寫Asp,經常有人在論壇提問,為什麼Asp對象在對比指定值時返回結果不對?現在在這裡給大家寫點關於使用Javascript編寫Asp一些需要注意的地方。最常見的問題: Code:Response.Write(Request.Form("Key") == "") 返回的結果怎麼都是"False"
Time of Update: 2017-01-13
asp教程.net c# 十六進位字串crc校正值代碼namespace crc{ public sealed class crc32 : icrc { readonly static uint crcseed = 0xffffffff; readonly
Time of Update: 2017-01-13
asp教程.net c# sql語句傳值代碼//方法一public int userlogin(string username, string userpass) { sqlcommand com = new sqlcommand(string.format("select influence from userinfo where name= '{0}' and pass= '{1}'
Time of Update: 2017-01-13
asp教程.net c非法詞彙的過濾器 using system; using system.text; using system.io; public class responsefilter : stream { #region properties
Time of Update: 2017-01-13
asp教程.net c# 正則圖片地址這一個利用asp.net教程 c#中的Regex來正則出字串中的所有圖片地址,並且替換成我們想要的地址串連*/public static string getimgurl(string htmlstr) { string str = string.empty; string spattern =
Time of Update: 2017-01-13
asp教程.net c 把圖片匯入到excel代碼下面是一款利用c#把圖片匯入到excel執行個體代碼,方便簡單哦,如果你正在要把一些圖片匯入到excel的話正好,管用。*/using system;using system.collections.generic;using system.text;using microsoft.office.tools.excel;using system.windows.forms;using excel;namespace
Time of Update: 2017-01-13
asp教程.net c serialport顯示資料代碼//serial port就是所謂的串口,或者串列口。是電腦的介面之一,串連某些裝置用的,如果你不需要仔細瞭解它的話,把它當成跟usb類似的介面就可以了。只是有時候串口不支援熱插拔void comm_datareceived(object sender, serialdatareceivedeventargs e) { int n =
Time of Update: 2017-01-13
asp教程.net c#中擷取目前時間毫秒時的函數,下面的幾款日期函數應用,最好的方法應該是第五種了。/*方法一datetime.now.tostring("yyyy-mm-dd hh:mm:ss:fff")方法二environment.tickcount方法三datetime.now.millisecond;方法四console.writeline(datetime.now.ticks);方法五 datetime d1 = new
Time of Update: 2017-01-13
asp教程.net c實現省市區樹形菜單代碼/// <summary> /// 建立dataset的方法 /// </summary> /// <param name="nodes">treeview的根節點</param> /// <param name="ds">dataset資料集合</param> ///
Time of Update: 2017-01-13
asp教程.net 擷取 checkboxlist值的方法<asp:checkboxlist id="supporting" runat="server" repeatdirection="horizontal" repeatlayout="flow" repeatcolumns="11">
Time of Update: 2017-01-13
asp教程.net c 匹配絕對位址的圖片格式regex reg = new regex( "img[^ >]*?src\s*=\s*(?: "(? <1 >[^ "]*) " | '(? <1 >[^ ']*) ') ", regexoptions.ignorecase); /*//可以匹配絕對位址圖片 比如 src=
Time of Update: 2017-01-13
asp教程.net 的aspnetpager分頁代碼 @ page language="c#" autoeventwireup="true" codefile="default.aspx.cs" inherits="test_default" stylesheettheme="default" %><%...@ register
Time of Update: 2017-01-13
asp教程.net c# 讀取excel資料代碼public dataset exceltods(string path) { string con = "provider=microsoft.jet.oledb.4.0;data source="+"e:\collegemis\upexcel\" +
Time of Update: 2017-01-13
asp教程.net+jquery 檔案上傳代碼<%@ page language="c#" contenttype="text/html" responseencoding="gb2312" %><!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en"
Time of Update: 2017-01-13
asp教程.net c# winfrom表單自動開啟與關閉 if (this.checkchildfrmexist("addfrom") == true) { return; } addfrom form2 = new addfrom(); form2.mdiparent = this; form2.show(); private bool