asp×¢²áÑéÖ¤Õ¦²»ÐÐÄØ£¿£¡ - Web ¿ª·¢ / ASP
<%
username=request.Form("ruid")
password=request.form("rpwd")
password2=request.Form("rrpwd")
if username="" or password="" or password2="" then
response.Write("<script>alert('user's id can't null');window.history.back();</script>")
if password<>password2 then
response.write("<script>alert('error');window.history.back();</script>")
response.End()
end if
end if
%>
ÏëÑéÖ¤ÌύʱÓû§Ãû ÃÜÂë ÖØ¸´ÃÜÂë ÊÇ·ñΪ¿Õ ÇÒ ÃÜÂëÓëÖØ¸´ÃÜÂëÐèÏàͬ ÔËÐÐʱȴֻ¼ì²éÃÜÂëÓëÖØ¸´ÃÜÂëÊÇ·ñÏàͬ
Çóǰ±²°ïæÐ޸ġ£Íí±²²»Éõ¸Ð¼¤····
ÁíÍ⣺ÎÒÏëÑéÖ¤EmailºÏ·¨ÐÔ ÇëÎÊÔõô×ö
End_rbody_65603099//-->
¸Ã»Ø¸´ÓÚ2010-05-22 13:25:18±»¹ÜÀíԱɾ³ý
¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ
¾Ù±¨
¹ÜÀí
TOP
tuhuolongan
(tuhuolongan)
µÈ¡¡¼¶£º
#2Â¥ µÃ·Ö£º0»Ø¸´ÓÚ£º2010-05-21 09:39:39
ǰ±²°¡ ¸Ä³ÉÄãµÄºóÔõôÁ¬Á½´ÎÃÜÂë´íÎó¶¼²»ÑéÖ¤À²¡«¡«¡«
3Â¥µÄǰ±² ¡°°ÑÊý¾ÝÑéÖ¤´Ó·þÎñÆ÷¶ËÄõ½¿Í»§¶ËÀ´¡±ÊÇʲôÒâ˼¡£²»¶® Çó½âÊÍÏ ÏÈллÁË
¾ÍÊÇÓà javascript ¿Í»§¶ËÑéÖ¤Êý¾Ý
ÏȰÑÄǶδúÂëÄÃÈ¥ÓþÍÐÐÁË ÓÃ×ÅÓÃמÍÃ÷°×ÁË
ÊÂʵÉÏÎÒÏëÏȰÑÎҵĴúÂë¸Ä¶ÔÔÙÓÃÆäËû·½·¨£¬¿´¿´´ó¼ÒÄܲ»ÄܰïÎҸĸķ·
¸ÄºÃÁË ½áÌù
Â¥Éϵķ½·¨¹ý»áÔÙ×ÁÄ¥
Ïà¹ØÎÊ´ð£º
aspÐéÄâÖ÷»úʵÏÖα¾²Ì¬µÄ·½·¨£º
1¡¢ ÖØÐ´url²ÎÊý
Step1: ½¨Á¢Ç°Ì¨Îļþindex.asp£¬ÐÞ¸Äurl²ÎÊýÐÎʽ¡£ÓÉÓÚ¶ÁÈ¡Êý¾Ý¿âÖеļǼ²»ÊÇרÌâµÄÖØµã£¬¹ÊÖ±½Ó¸ø³ö:
<!--#include file="config.asp" -->
&l ......
ÍòÍøµÄ·þÎñÆ÷Ö§³Öα¾²Ì¬µÄ,Ö±½ÓÓÃrewriteÔÚweb.configÎļþд¹æÔò,Ò²²»Óð²×°×é¼þ¾Í¿ÉÒÔʵÏÖα¾²Ì¬,µ«ÊÇÔÚʱ´ú»¥Áª·þÎñÆ÷¾ÍÓò»ÁËÁË,×ÉѯËüµÄ¿Í·þ,Ëû˵ËûÃÇ·þÎñÆ÷(»ù±¾ÐÍC)²»Ö§³Öα¾²Ì¬µÄ.ÇëÎÊһϸ÷λÎÒ¸ÃÓÃʲô·½·¨ ......
C# code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Runtime.InteropServices;
nam ......
¹ØÓÚÍøÕ¾°²È«µÄÎÊÌ⣡
ÎÒÁ˽⵽µÄÍøÕ¾°²È«ÎÊÌâ°üÀ¨£º
sql×¢Èë©¶´ºÍ±©¿â©¶´»¹ÓÐÉÏ´«Â©¶´
³ýÁËÕâЩ»¹ÓÐÆäËûµÄ©¶´Ã´£¿
×¢Èë©¶´¿ÉÒÔͨ¹ý¹ýÂËÀ´·ÀÖ¹
±©¿â©¶´Ôõô·ÀÖ¹
»¹ÓÐÈËÉÏ´«µÄľÂíÊÇ.gif
ÕâÖÖ©¶´Ôõôȥ± ......