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

Asp¸üÐÂÊý¾Ý¿âµÄ¼¸ÖÖ·½·¨

aspÖвåÈëÓëÐÞ¸ÄÊý¾ÝµÄ¼¸ÖÖ·½Ê½¡£ÎªÁË·½±ã½â˵£¬ÎÒÃÇÏȽ¨Á¢Ò»¸öÃûΪtestµÄ±í£¬±íÄÚÖ»ÓÐÁ½¸öÊý¾Ý
Ïî:usernameºÍemail,·Ö±ðÓÃÀ´´æ´¢Óû§ÃûÓëÓÊÏäµØÖ·¡£
1.ÀûÓÃinsertÓï¾ä²åÈëÊý¾Ý£º
insertÊÇsqlÓï¾äµÄ»ù±¾Ö¸ÁîÖ®Ò»£¬ Ó÷¨ºÜ¼òµ¥£¬ÕâÀïÎÒÖ»½«Æä»ù±¾¸ñʽÁгö.
´úÂëÈçÏ£º
       set conn=server.creatobject("adodb.connection")
       sql="Insert Into test(username,email) Values ('"&Request("username")&"','"&Request("email")&"')"
       set rs= conn.Execute(sql)
Õâ¸öµØ·½Òª×¢ÒâµÄÊÇÇ°ºóÊý¾Ý±£³ÖÒ»Ö£¬Ç§Íò²»¿É´óÒâ¡£»¹ÓоÍÊÇҪעÒâvaluesÀïÊý¾ÝµÄд·¨£¬
ÍâÃæÊǵ¥ÒýºÅ£¬È»ºóÊÇË«ÒýºÅ£¬×îÀïÃæÊÇ&,ÐÂÊÖºÜÈÝÒ×ÔÚÕâ³ö´í¡£Ðí¶à¿´ËÆĪÃûµÄ´íÎóÆäʵ¶¼
ÊÇÒòΪ´úÂëÊéд²»¹æ·¶ÒýÆðµÄ£¬ËùÒÔÒ»¿ªÊ¼Ñø³ÉÁ¼ºÃµÄÊéдϰ¹ß»áΪÄã½ÚÔ¼²»ÉÙʱ¼ä¡£
2.ÀûÓÃupdataÓï¾ä¸üÐÂÊý¾Ý
updataͬÑùÊÇsqlÓï¾äµÄ»ù±¾Ö¸ÁîÖ®Ò»,Óï·¨Ò²ºÜ¼òµ¥¡£
ÀýÈçÎÒÒª°ÑusernameÊý¾ÝÏîΪ"user1"µÄemailµØÖ·ÐÞ¸ÄΪ±íµ¥´«Ë͹ýÀ´µÄÊý¾Ý£¬¿ÉÒÔÕâÑùд£º
       sql="updata test set email='"Request("email")"' where username='user1' "
ÒÔÉÏ·½·¨¶¼ÊÇʹÓÃ×î»ù±¾µÄsqlÓï¾ä½øÐнøÐÐÊý¾Ý¸üУ¬ÆäÓŵãÊÇͨÓÃÐÔÇ¿£¬ÔÚÈκÎÖ§³ÖsqlÓï¾äµÄ³ÌÐò
Àﶼ¿ÉÒÔʹÓᣵ«Æä¿É¶ÁÐԽϲµ±ÐèÒª¸üеÄÊý¾ÝÏî½Ï¶àʱºÜÈÝÒ׳ö´í£¬ÔÚaspÖл¹ÓÐÁíÍâÒ»ÖÖ¸üÓÐ
ЧµÄ·½·¨¡£¼ÌÐøÒÔtest±íΪÀý£¬Èç¹ûÏëÒªÔÚ±íÄÚ²åÈëÕâôһ×éÊý¾Ýuser2¡¢email2£¬´úÂë¿ÉÒÔÕâÑùд£º
       set conn=server.creatobject("adodb.connection")
       sql="select * from test where username='user2' "
       set rs=server.creatobject("adodb.RecoredSet")
       rs.open sql , conn,3,2
       if rs.eof then
            rs.addnew
         rs("username")="user2"       
         rs("email")="email2"
    


Ïà¹ØÎĵµ£º

¸øasp:ButtonÌí¼Ó±³¾°Í¼Æ¬

 ½ñÌìΪÁËÒÔºóµÄ·½±ã£¬ÎÒдÁËһЩ³£ÓõÄÓû§¿Ø¼þ¡£ÔÚдlogin¿Ø¼þʱ£¬ÓÐÈý¸ö°´Å¥£¬·Ö±ðÊǵǽ¡¢ÖØÖá¢×¢²á¡£ÎÒÏëÖÐͼƬ×÷ΪËûÃǵı³¾°À´ÏÔʾËüÃÇ£¬µ«ÎÊÌâÊÇasp:Button²¢Ã»ÓÐÌṩbackground-imageµÄÊôÐÔ¡£ÓÚÊÇÎÒ¾ÍÔÚÍøÉÏËÑÁËһϣ¬ÓÐÈËÌá³öÓÃCssClassÊôÐÔ£¬·½°¸ÊÇÔÚcssÎļþ½øÐÐbackground-imageµÄ¶¨Ò壬ÈçµÇ½.loginButt ......

asp°æ³¤ÎÄÕ·ÖÒ³

 <%
'ÒÔϲ¿·ÖÊÇÑéÖ¤Ìá½»µÄpageÊÇ·ñΪºÏ·¨µÄ²ÎÊý
'Õⲿ·Ö×îºÃÅжÏÒ»ÏÂÌá½»µÄ²ÎÊýÊÇ·ñΪÊýÖµ×Ö·û
dim page
page=Trim(request("page"))
If page="" Then
page=1
Elseif CInt(page)<=0 then
page=1
else
page=CInt(page)
End If
'½øÐвéѯ£¬È¡³öÒªÏÔʾµÄ¼Ç¼
  str=rs1("content")
'°Ñ³ö ......

aspÔÚÏß½âѹËõ

³ý·ÇÄúÒÔϵͳÕÊ»§µÄÉí·ÝµÇ½µ½·þÎñÆ÷£¨ÔÚä¯ÀÀÆ÷»·¾³ÖÐÒ²ÊÇ¿ÉÒÔʵÏÖ£©£¬»òÕßÖ÷»ú¶Ë½øÐÐÁËÁ¼ºÃµÄȨÏÞÅäÖ㬷ñÔò±¾ÎÄÉæ¼°µÄ¹¦ÄÜÊǺÜÄÑʵÏֵġ£ÒòΪÎÒÃÇͨ¹ýiis·ÃÎÊij¸öÒ³Ãæʱ£¬Ò»°ãÊÇiisÄäÃûÕÊ»§µÄÉí·Ý£¬ÔÚ´ó¶àÊýÇé¿öÏ£¬aspµÄWScript.ShellÊDZ»½ûÓõģ¬ÒòΪËüÓкܴóµÄ°²È«Òþ»¼¡£
 ¡¡¡¡ÒªÏëʵÏÖÕâÖÖ¹¦ÄÜ£¬Ê×ÏÈÒªµÃµ½Rar³ ......

asp ʵÏÖµÄðÅÝÅÅÐò³ÌÐò

 arr = array(12,52,14,43,24,58,15,64,24,57,17,56,45)
arrLen = ubound(arr)
for i=0 to arrLen-1
for j = 0 to (arrlen -1)-i
if arr(j)>arr(j+1) then
temp = arr(j)
arr(j)= arr(j+1)
arr(j+1) = temp
end if
next
next

for each l in arr
response.Write l&"< ......

ASP×Ô¶¯Ê¶±ðIP,²¢Ìøתµ½À´·ÃÎÊÕßËùÔڵijÇÊÐ

×Ô¶¯Ê¶±ðIP,²¢Ìøתµ½À´·ÃÎÊÕßËùÔڵijÇÊÐ
ÏÈÈ¥ÏÂÒ»¸ö×îеĴ¿ÕæIPÊý¾Ý¿â,È»ºó°´ÈçϲÙ×÷:
1.ÔËÐд¿ÕæQQIPÊý¾Ý¿âÀï´øµÄShowIP.exe£¬µã½âѹ£¬ÊäÈëÎļþÃû£¬±ÈÈçIP.txt£¬È·¶¨£¬¾ÍµÃµ½Ò»¸öTXTÎļþ¡£
2.´ò¿ªACCESS£¬¹¤¾ß£­×Ô¶¨Ò壬ÃüÁîÑ¡Ï£¬°Ñµ¼ÈëÑ¡ÏîÍ϶¯µ½ÉÏÃæµÄ¹¤¾ßÀ¸¡£
3.½¨¿â£¬½¨Ò»¸ö±í£¬Ëĸö×Ö¶Î
Startip ÀàÐÍ:ÎÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ