Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

aspÁ¬½ÓÊý¾Ý¿â´úÂë

·¢Ò»¸ö±ê×¼µÄÊý¾Ý¿âÁ¬½Ó´úÂ롣ϣÍû¶Ô´ó¼ÒÓаïÖú¡£
<%
option explicit
dim startime,endtime,conn,connstr,db
startime=timer()
'¸ü¸ÄÊý¾Ý¿âÃû×Ö
db="data/dvBBS5.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
'Èç¹ûÄãµÄ·þÎñÆ÷²ÉÓýÏÀÏ°æ±¾AccessÇý¶¯£¬ÇëÓÃÏÂÃæÁ¬½Ó·½·¨
'connstr="driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath(db)
conn.Open connstr
function CloseDatabase
Conn.close
Set conn = Nothing
End Function
%>


Ïà¹ØÎĵµ£º

asp include

aspÔÚµ÷ ÓÃÎļþµÄʱºòÒ»°ãÓà includeÓï¾äÈ磺<! #include file="filename.asp" -->ÔÚµ÷ÓÃÎļþµÄʱºò¶ÔÓÚ¾²Ì¬ÎļþÒ»°ãÓÃiframeÓÃinclude²»Æð×÷Óã¬ÔÚһЩ¶¯Ì¬µÄÎļþÃûµÄʱºòÒ»°ãÓà Èç¹ûÒª¶¯Ì¬µÄ°üº¬ÎļþÇëʹÓà ÈçÏ£º 
  server.transfer   Îļþ  
  »ò    
& ......

windows server 2008 ÈÃIIS7Ö§³ÖASP Access


1. ÈÃIIS7Ö§³ÖASP
Windows VistaÖÐIIS7ÊÇĬÈϲ»°²×°µÄ£¬ËùÒÔÔÚ°²×°ÍêWindows VistaÖ®ºóÈç¹ûÐèÒª°²×°IIS7µÄ»°£¬¾ÍÒª×Ô¼º¶¯ÊÖÁË¡£°²×°µÄ²½ÖèΪ£º¿ªÊ¼¡·¿ØÖÆÃæ°å¡·³ÌÐò¡·´ò¿ª»ò¹Ø±ÕWindows¹¦ÄÜ¡·InternetÐÅÏ¢·þ Îñ(ÒÔÇ°²Ù×÷ϵͳ°æ±¾ÀïÃæµÄ"Windows components” ÔÚVistaÀïÃæ½Ð×ö"Programs and Features")¡£IIS7°²×°Ê±Ð ......

asp ÖÐ midº¯ÊýµÄÓ÷¨


´Ó×Ö·û´®Öзµ»ØÖ¸¶¨ÊýÄ¿µÄ×Ö·û¡£
Mid(string, start, length)
²ÎÊý
string
×Ö·û´®±í´ïʽ£¬´ÓÖзµ»Ø×Ö·û¡£Èç¹û string °üº¬ Null£¬Ôò·µ»Ø Null¡£
Start
string Öб»ÌáÈ¡µÄ×Ö·û²¿·ÖµÄ¿ªÊ¼Î»Öá£Èç¹û start ³¬¹ýÁË string ÖÐ×Ö·ûµÄÊýÄ¿£¬Mid ½«·µ»ØÁ㳤¶È×Ö·û´® ("")¡£
Length
Òª·µ»ØµÄ×Ö·ûÊý¡£Èç¹ûÊ¡ ......

C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ

C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ
Ò»¡¢vs2005—н¨ÏîÄ¿—C#Àà¿â
Àà¿âÔ´ÂëÈçÏÂ(°üº¬½Ó¿Ú£¬À࣬ʼþ½Ó¿Ú)£º
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
namespace entryclass
{
   ......

asp·ÖÐжÁÈ¡txtÎļþ£¬Óзָô·û£¬´æ´¢µ½access

txtÎļþÊÇÏÂÃæÕâÑùµÄ£¬
Ò»ÐÐÒ»ÌõÊý¾Ý£¬ÓöººÅ·Ö¸ô
ÏÂÃæд³öaspÎļþ
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="inc/conn.asp" -->
<%
filespec=server.mappath("txt.txt")
Const ForRead ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ