²ËÄñASPÊý¾Ý¿âÎÊÌâ - Web ¿ª·¢ / ASP
ÎÒÊÇ×ö.NETµÄ¿ÉÊÇÎҵıÏÒµÉè¼ÆÊÇ×öASPÍøÉÏÊéµêÒ»¸öºÜ¾µäµÄÎÊÌ⣬ǰ¼¸ÌìСµÜ×öµÄʱºò³öÏÖÁ˵ãÎÊÌ⣬´íÎó´úÂë
¼ÃÄÏ´óÑ§ÍøÉÏÊéµêÖÐÐÄ
ADODB.Recordset ´íÎó '800a0bb9'
²ÎÊýÀàÐͲ»ÕýÈ·£¬»ò²»ÔÚ¿ÉÒÔ½ÓÊܵķ¶Î§Ö®ÄÚ£¬»òÓëÆäËû²ÎÊý³åÍ»¡£
/default.asp£¬ÐÐ 42
Ô´´úÂëÈçÏ£º
set cn=Server.CreateObject("ADODB.Connection")
cn.open "Driver={sql serVer};Database=bookstore;Server=NIIT-B35A3B4FB5;UID=wangzhen;PWD=123456"
set rs=Server.CreateObject("ADODB.Recordset")
set cn1=Server.CreateObject("ADODB.Connection")
cn1.open "Driver={sql serVer};Database=bookstore;Server=NIIT-B35A3B4FB5;UID=wangzhen;PWD=123456"
set rs1=Server.CreateObject("ADODB.Recordset")
dim customer_id,password,sql
customer_id=request("customer_id")
password=request("password")
session("customer_id")=customer_id
session("password")=password
if customer_id<>"" and password<>"" then
rs1.open sql="Select customer_Name from customers where customer_id="&customer_id&" and password='"&password&"'",cn1´Ë´¦ÎªµÚ42ÐÐ
'Èç¹ûÓû§ÕʺźÍÃÜÂëÕýÈ·£¬Ôò½øÐÐÏÂÒ»²½¶¨Êé²Ù×÷
if not rs1.eof then
response.Write"<font size=4 color=red>"&"ÄãºÃ!"&customer_Name&"¹Ë¿Í¡£"&"</font>
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
aspÐéÄâÖ÷»úʵÏÖα¾²Ì¬µÄ·½·¨£º
1¡¢ ÖØÐ´url²ÎÊý
Step1: ½¨Á¢Ç°Ì¨Îļþindex.asp£¬ÐÞ¸Äurl²ÎÊýÐÎʽ¡£ÓÉÓÚ¶ÁÈ¡Êý¾Ý¿âÖеļǼ²»ÊÇרÌâµÄÖØµã£¬¹ÊÖ±½Ó¸ø³ö:
<!--#include file="config.asp" -->
&l ......
¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£
ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......
¹ØÓÚÍøÕ¾°²È«µÄÎÊÌ⣡
ÎÒÁ˽⵽µÄÍøÕ¾°²È«ÎÊÌâ°üÀ¨£º
sql×¢Èë©¶´ºÍ±©¿â©¶´»¹ÓÐÉÏ´«Â©¶´
³ýÁËÕâЩ»¹ÓÐÆäËûµÄ©¶´Ã´£¿
×¢Èë©¶´¿ÉÒÔͨ¹ý¹ýÂËÀ´·ÀÖ¹
±©¿â©¶´Ôõô·ÀÖ¹
»¹ÓÐÈËÉÏ´«µÄľÂíÊÇ.gif
ÕâÖÖ©¶´Ôõôȥ± ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......