ÂÛÎÄÎÞÓÇÍøÌṩ£º¼ÆËã»ú±ÏÒµÂÛÎÄ·¶ÎÄ|¼ÆËã»ú±ÏÒµÉè¼Æ|¼ÆËã»ú±ÏÒµÂÛÎÄ
À¸Ä¿µ¼º½ ASP Java Web .NET VB6.0 JAVA VC VF DELPHI PB ¼ÆËã»úÍøÂç ¼ÆËã»ú¿ÆѧÓë¼¼Êõ PHP °²×¿APP ÆäËû C# ´úдÂÛÎÄ
µ±Ç°Î»ÖÃ: > ¼ÆËã»ú > .NET >

B(.NET)ASP.netͬѧ¼ϵͳµÄÉè¼Æ¿ª·¢(SQL)

   2.2 ÀûÓÃADO·ÃÎÊÊý¾Ý¿â

ÿһ²½µÄ×÷·¨ÈçÏ£º

paper51.com

1¡¢´´½¨Êý¾ÝÔ´Ãû

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

2¡¢´´½¨Êý¾Ý¿âÁ´½Ó(Connection)

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

Á´½ÓÓÃÒÔ±£³ÖһЩ¹ØÓÚÕýÔÚ·ÃÎʵÄÊý¾ÝµÄһЩ״̬ÐÅÏ¢£¬ÒÔ¼°Á´½ÓÕßÐÅÏ¢¡£ASP.NETÎļþÖÐÈç¹ûÒª·ÃÎÊÊý¾Ý£¬±ØÐëÊ×ÏÈ´´½¨ÓëÊý¾Ý¿âµÄÁ´½Ó£¬ÆäÓï·¨ÈçÏ£º

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

setConn=Server.createObject(“ADOBD.CONNECTION”) copyright paper51.com

ÕâÌõÓï¾ä´´½¨ÁËÁ´½Ó¶ÔÏóConn£¬½ÓÏÂÀ´£º copyright paper51.com

3¡¢´´½¨Êý¾Ý¶ÔÏó(Record Set) copyright paper51.com

ADOÖеÄÊý¾Ý¶ÔÏóͨ³£±£´æµÄÊDzéѯ½á¹û¡£Record SetÊÇADOÖÐ×ÔӵĶÔÏó£¬ÓÐÐí¶àÊôÐԺͷ½·¨¡£RecordSet±£´æµÄÊÇÒ»ÐÐÐеļǼ£¬²¢±êÓÐÒ»¸öµ±Ç°¼Ç¼¡£ÒÔÏÂÊÇ´´½¨·½·¨£º

http://www.paper51.com

Set RecordSet=Conn.Execute(sqtStr)

copyright paper51.com

ÕâÌõÓï¾ä´´½¨²¢´ò¿ªÁ˶ÔÏóRecord Set£¬ÆäÖÐConnÊÇÏÈÇ°´´½¨µÄÁ´½Ó¶ÔÏó£¬rsÊÇÒ»¸ö×Ö·û´®£¬´ú±íÒ»Ìõ±ê×¼µÄSQLÓï¾ä¡£ÀýÈ磺

ÄÚÈÝÀ´×Ôwww.paper51.com

rs=“SELECT * FROM shop_books” ÄÚÈÝÀ´×Ôwww.paper51.com

ѯ½á¹û·µ»Ø¸øÒ»¸öÊý¾Ý¶ÔÏó»ò½øÐвåÈ롢ɾ³ýµÈ²Ù×÷¡£ÀýÈ磺

http://www.paper51.com

rs=“INSERT INTO tab1 VALUES(1,2)” ÄÚÈÝÀ´×Ôwww.paper51.com

mConn.Execute(rs)

paper51.com

/Ö´ÐвåÈë²Ù×÷

ÄÚÈÝÀ´×Ôwww.paper51.com

5¡¢¹Ø±ÕÊý¾Ý¶ÔÏóºÍÁ´½Ó¶ÔÏó

paper51.com

/¹Ø±Õ´´½¨µÄÊý¾Ý¶ÔÏó http://www.paper51.com

mConn.close paper51.com

Set mConn=Nothing

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

2.3 JavaScript¼¼Êõ¼ò½é

paper51.com

JavaScriptÊÇÒ»ÖÖÓÉNetscapeµÄLive Script·¢Õ¹¶øÀ´µÄ½Å±¾ÓïÑÔ£¬Ö÷ҪĿµÄÊÇΪÁ˽â¾ö·þÎñÆ÷ÖÕ¶ËÓïÑÔ£¬±ÈÈçPerl£¬ÒÅÁôµÄËÙ¶ÈÎÊÌâ¡£µ±Ê±·þÎñ¶ËÐèÒª¶ÔÊý¾Ý½øÐÐÑéÖ¤£¬ÓÉÓÚÍøÂçËÙ¶ÈÏ൱»ºÂý£¬Ö»ÓÐ28.8kbps£¬ÑéÖ¤²½ÖèÀ˷ѵÄʱ¼äÌ«¶à¡£ÓÚÊÇNetscapeµÄä¯ÀÀÆ÷Navigator¼ÓÈëÁËJavaScript£¬ÌṩÁËÊý¾ÝÑéÖ¤µÄ»ù±¾¹¦ÄÜ¡£

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

JavaScriptµÄÌص㡡¡¡JavaScript ʹÍøÒ³Ôö¼Ó»¥¶¯ÐÔ¡£JavaScript ʹÓйæÂɵØÖظ´µÄHTMLÎĶμò»¯£¬¼õÉÙÏÂÔØʱ¼ä¡£JavaScript Äܼ°Ê±ÏìÓ¦Óû§µÄ²Ù×÷£¬¶ÔÌá½»±íµ¥×ö¼´Ê±µÄ¼ì²é£¬ÎÞÐèÀË·Ñʱ¼ä½»ÓÉ CGI ÑéÖ¤¡£JavaScriptµÄÌصãÊÇÎÞÇîÎÞ¾¡µÄ£¬Ö»ÒªÄãÓд´Òâ¡£

paper51.com

µÚ3Õ   ÐèÇó·ÖÎöºÍ×ÜÌåÉè¼Æ ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

3.1  ÐèÇó·ÖÎö

paper51.com

¸ù¾ÝÇ°ÃæµÄÉè¼Æ˼Ïë½øÐзÖÎö£¬°´ÕÕϵͳ¿ª·¢µÄ»ù±¾¹Ûµã¶ÔÍøÕ¾½øÐзֽ⣬´ÓÄÚÈÝÉϿɶԱ¾ÏµÍ³×÷ÈçÏ»®·Ö£º

http://www.paper51.com

l       Ð£ÓѼÖ÷Ò³£¨ÏÔʾ¹«¸æºÍÐÂ×¢²áµÄ°à¼¶¡¢Í¬Ñ§Çé¿ö£©

paper51.com

l       ×¢²áÒ³Ã棨ע²áÓû§Ö®ºóÔÙ×Ô¼º¼ÓÈë°à¼¶£©

ÄÚÈÝÀ´×Ôwww.paper51.com

l       ¸öÈËÐÅÏ¢Ò³Ã棨²é¿´ÐÞ¸ÄÓû§»ù±¾×ÊÁÏ£© ÄÚÈÝÀ´×Ôwww.paper51.com

l       °à¼¶Ö÷Ò³£¨Ò»¸ö°à¼¶ÎªÒ»¸öÏñ¿Õ¼äÒ»ÑùµÄÒ³Ã棩 http://www.paper51.com

l       °à¼¶¹ÜÀíÔ±Ò³Ã棨ÕâÀïÊǹÜÀíÔ±½øÐеÄÒ³Ã棩

copyright paper51.com

ϵͳÁ÷³ÌͼÈçÏ£º ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

paper51.com

3.2Êý¾Ý¿âÉè¼Æ

http://www.paper51.com

Êý¾Ý¿âµÄÉè¼ÆÔ­ÔòÒªÇó£ºÊý¾Ý¿âµÄÉè¼ÆÓëÐÅϢģÐÍÍêÈ«Ïà·û£»Êý¾Ý¿â²¼¾ÖºÏÀí£¬¿¿½üÐÅÏ¢Ô´ºÍʹÓõ㣬¼õÉÙÖм价½Ú£¬È·±£ÐÅÏ¢ÇþµÀ³©Í¨£»¾¡Á¿¼õÉÙÊý¾ÝÈßÓ࣬²ÉÓùØϵÐÍÊý¾Ý¿â¾¡Á¿Âú×ãµÚÈý·¶Ê½·Ö½âÒªÇó£»Îª±£Ö¤Êý¾Ý¿âµÄ°²È«¡¢ÍêÕûºÍ²¢·¢²Ù×÷µÄÒ»ÖÂÐÔ£¬¶ÔÊý¾Ý¿âµÄ¸÷Àà²Ù×÷¾ßÓÐͳһµÄ¹ÜÀíºÍ¿ØÖƹ¦ÄÜ£»ÎªÊ¹Êý¾ÝÔËÐа²È«¿É¿¿£¬¶Ô¹²ÏíÊý¾Ý¿â²ÉÈ¡±£»¤´ëÊ©£¬±£Ö¤Êý¾ÝµÄÒ»ÖÂÐÔ¡£

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

±¾´ÎÊý¾Ý¿âµÄÉè¼ÆÍêÈ«×ñÑ­ÉÏÊöÔ­ÔòÉè¼ÆµÄ£¬ÏÂÃæÊÇÕû¸öÊý¾Ý¿âµÄE-Rͼ

http://www.paper51.com

ÄÚÈÝÀ´×Ôwww.paper51.com

²ÉÓõÄÊý¾Ý¿âÊÇMicrosoftSqlServer2000 °üº¬Èçϼ¸¸ö±íÎļþ£º

http://www.paper51.com

1¡¢ User Óû§×¢²á±í http://www.paper51.com

2¡¢ ChatInfo  ÁÄÌìÊÒÐÅÏ¢±í http://www.paper51.com

3¡¢ Class °à¼¶ÐÅÏ¢±í

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

4¡¢ Classly °à¼¶ÁôÑÔ±í

ÄÚÈÝÀ´×Ôwww.paper51.com

5¡¢ image ͼƬ±í copyright paper51.com

µÚ4Õ ϵͳ¾ßÌåʵÏÖ

http://www.paper51.com

4.1УÓѼÖ÷Ò³

copyright paper51.com

ϵͳÖ÷Ò³²ÉÓþ²¡¢¶¯Ïà½áºÏµÄ·½Ê½£¬¼´¾²Ì¬µÄÖ÷»­ÃæºÍ¶¯Ì¬µÄÄÚÈÝÏà½áºÏ£¬ÌåÏְ༶µÄ²ª²ªÉúÆø£¬¾²Ì¬Ö÷Ò³·½Ê½½éÉÜУÓѼ¹«¸æ¡¢×î½ü¼ÓÈëͬѧ¡¢Ð£ÓÑËÑË÷¡¢ÔÚÏßÐÅÏ¢¡¢µÇ½ϵͳ£¬¹ÜÀí¹¦ÄÜ£¬Ïà²á¹¦ÄÜ£¬ÁÄÌìÊÒ¹¦ÄÜ£¬¾ÍÀûÓÃASP.NETÓïÑÔÓëSqlServerÊý¾Ý¿âÏà½áºÏµÄ¼¼Êõ½¨Á¢Êý¾Ý¿â²éѯ¹ÜÀíϵͳ£¬²ÉÓý»»¥Ê½µÄ¶¯Ì¬µÄweb»­ÃæÀ´ÊµÏÖ£¨Èçͼ3.1Ëùʾ£©¡£ ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

ͼ3.1 Ö÷Ò³Éè¼Æͼ

ÄÚÈÝÀ´×ÔÂÛÎÄÎÞÓÇÍø www.paper51.com

------·Ö¸ôÏß----------------------------
ÁªÏµ·½Ê½