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

aspÔö¼ÓÊý¾Ý¿â±íµÄ×ֶδúÂë

<%
'ÏÂÃæÊÇ×î¾ß¼¼Êõº¬Á¿µÄº¯ÊýÁË£¬¹þ¹þ~
'Ôö¼ÓÊý¾Ý¿â×Ö¶Î
function addziduan(ziduanming,ziduanleixing)
on error resume next
fldname = ziduanming
if ziduanleixing=1 or ziduanleixing=4 then
fldtype = "VarChar"
fldsize = 255
elseif ziduanleixing=2 or ziduanleixing=3 then
fldtype = "Text"
fldsize = ""
end if
fldnull = "ON"
fldautoincrement = ""
table_name = tables
if fldname <> "" and fldtype <> "" then
sql = "alter table [" & table_name & "] add ["&fldname&"] " & fldtype

if fldsize <> "" then
sql = sql & "(" & fldsize & ")"
end if
if fldnull <> "ON" then
sql = sql & " not null"
end if
conn.execute(sql)
if err <> 0 then
response.Write "<input type='button' name='ok' value=' ·µ »Ø ' onClick='javascript:history.go(-1)'>"
end if
end if
end function
%>


Ïà¹ØÎĵµ£º

Asp³£ÓÃͨÓú¯ÊýÖ®Éú³Éʱ¼äµÄÕûÊý

¡¡ 'º¯ÊýÃû£ºGetMyTimeNumber()
  '×÷ ÓãºÉú³Éʱ¼äµÄÕûÊý
  '²Î Êý£ºlx ---- ʱ¼äÕûÊýµÄÀàÐÍ
  ' lx=0 µ½·ÖÖÓ lx=1 µ½Ð¡Ê± lx=2 µ½Ìì lx=3 µ½ÔÂ
  '·µ»ØÖµ£ºÉú³Éʱ¼äµÄÕûÊýÖµ(×îСµ½·ÖÖÓ)
  'ʾ Àý£º
  '********************************* ......

ASP³£¼ûµÄ°²È«Â©¶´

¡¡¡¡ASPµÄ©¶´ÒѾ­ËãºÜÉÙµÄÁË£¬ÏëÒªÕÒµ½Êý¾Ý¿âµÄʵ¼ÊλÖÃÒ²²»¼òµ¥£¬µ«Õâ²»±íÃ÷ºÚ¿ÍÎ޿׿ÉÈ룬ҲÕýÊÇÕâ¸ö¹Ûµã£¬Ò»°ãµÄ³ÌÐòÉè¼ÆÔ±³£³£Íü¼Ç×ÐϸµÄ¼ì²éÊÇ·ñÓЩ¶´£¬ËùÒÔ²ÅÓпÉÄܵ¼ÖÂÍøÕ¾×ÊÁϱ»ÇÔÈ¡µÄʼþ·¢Éú¡£½ñÌìÎÒÔÚÕâÀïºÍ´ó¼Ò̸̸ASP³£¼ûµÄ°²È«Â©¶´£¬ÒÔÒýÆð´ó¼ÒµÄÖØÊÓ¼°²ÉÈ¡ÓÐЧµÄ·À·¶´ëÊ©¡£(×¢Ò⣬ÔÚ±¾ÎÄÖÐËù½éÉܵķ½·¨Çë´ ......

ASP³õѧÕß³£·¸µÄ¼¸¸ö´íÎó

¡¡1.¼Ç¼¼¯¹Ø±Õ֮ǰÔٴδò¿ª:
¡¡¡¡------------------------------------
¡¡¡¡sql="select * from test"
¡¡¡¡rs.open sql,conn,1,1
¡¡¡¡if not rs.eof then
¡¡¡¡dim myName
¡¡¡¡myName=rs("name")
¡¡¡¡end if
¡¡¡¡sql="select * from myBook"
¡¡¡¡rs.open sql,conn,1,1
¡¡¡¡------------------------------------ ......

Windows7ÏÂIIS7µÄ°²×°¼°ASPÅäÖ÷½·¨

×¢£º±¾ÈË°²×°µÄÊÇWindows 7 RC 7100 32λÖÐÎÄÆì½¢°æ ¡£
ÔÚWindows 7ÏÂÃæIIS7µÄ°²×°·½·¨£º
Ò»¡¢½øÈëWindows 7µÄ ¿ØÖÆÃæ°å
£¬Ñ¡Ôñ×ó²àµÄ ´ò¿ª»ò¹Ø±ÕWindows¹¦ÄÜ
¡£
¶þ¡¢ÏÖÔÚ³öÏÖÁË°²×°Windows¹¦ÄܵÄÑ¡Ïî²Ëµ¥
£¬×¢ÒâÑ¡ÔñµÄÏîÄ¿£¬ÎÒÃÇÐèÒªÊÖ¶¯Ñ¡Ôñ
ÐèÒªµÄ¹¦ÄÜ£¬ÏÂÃæÕâÕÅͼƬ°ÑÐèÒª°²×°µÄ·þÎñ¶¼ÒѾ­Ñ¡ÔñÁË£¬´ó¼Ò¿ÉÒÔ°´ÕÕ ......

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

conndb.asp
<%
Session.CodePage=65001
response.Charset="utf-8"
%>
<%
'Êý¾Ý¿âÁ¬½ÓÎļþ
dim conn
dim connstr
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+server.mappath("../date/#heihuhuhuajian.mdb")+";Jet OLEDB:Database Pass ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ