แนะนำ: วิธีการป้องกันการชลประทานและฝากข้อความ (รหัสการตรวจสอบความถูกต้อง 4 หลักที่สร้างขึ้นแบบสุ่ม) หลักการ: เมื่อทุกครั้งที่คุณส่งข้อความคุณต้องป้อนรหัสการตรวจสอบความถูกต้อง 4 หลักที่สร้างขึ้นแบบสุ่ม รหัสต่อไปนี้ใช้เพื่อสร้างหมายเลข 4 หลักแบบสุ่มใน ASP: % DIM Key Key Randomize Timer Key = Int ((8999)*RND +1000) % แสดงในแบบฟอร์ม: รหัสการตรวจสอบ: % = key % ประเภทอินพุต = ชื่อข้อความ = rekey size = 8 maxlength = 4
-ตัวเลือก Explicit
'ฐานข้อมูล:
'ที่ตั้ง
'ตารางที่ 1 Loaction ตั้งอยู่ในตารางเมือง
'สนาม
'LOACTIONID (คีย์หลัก)
'ชื่อ loactionName
'ตารางเขต 2 มิพิสต์เคาน์ตี้
'สนาม
'LocationId (คีย์หลัก)
'DistrictID
'DistrictName
ตารางที่ 3. เมืองที่หมู่บ้านตั้งอยู่
'สนาม
'DistrictID (คีย์หลัก)
'หมู่บ้าน
'Villagename
-
<html>
<head>
<title> รายการ </title>
<metahttp-equiv = content-typecontent = text/html; charset = gb2312>
-
dimconn
หรี่แสง
dimsql
ลดน้อยลง
Dimrs1
dimsql1
Dimrs2
dimsql2
dimcount2
dimconnstr
connstr = dbq =+server.mappath (db11.mdb)+; defaultdir =; driver = {microsoft accessiver (*. mdb)};
setConn = server.createObject (adodb.connection)
conn.openconnstr
SQL = เลือก*fromDirectorByLocationIdasc
setRs = conn.execute (SQL)
-
<scriptLanguage = JavaScript>
Varonecount;
onecount = 0;
subcat = newarray ();
-
นับ = 0
dowhilenotrs.eof
-
subcat [<%= count%>] = newarray (<%= trim (rs (districtName))%>, <%= trim (rs (locationId))%>, <%= trim (rs (districtId))%>);
-
นับ = นับ+1
Rs.Movenext
วง
Rs.close
setrs = ไม่มีอะไร
-
แบ่งปัน: ASP สร้าง HTM List Paging แบบคงที่ (รวมถึงรหัสทดสอบสำเร็จ) !-#รวมไฟล์ = conn.asp-htmlheadtitle การทดสอบการแบ่งหน้า/titlelink href = inc/style.css ประเภท = text/css rel = stylesheet/head %strhead = striheadhtml strihead = strihead sthead = striadtitle การทดสอบการเป็นคนชอบการเป็นคน
3 หน้ารวมหน้าก่อนหน้า 123 หน้าถัดไป