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

ʹÓÃASPÑéÖ¤emailÓÊÏ䵨ַ

<%
'true=ÊÇÓʼþ;false=²»ÊÇ;
Function validate(ByVal str)
Dim temp,reg
Set reg = new regexp
reg.ignorecase=true
reg.global=true
reg.pattern = "^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
validate = reg.test(Trim(str))
Set reg = Nothing
End Function
'********************************************
'º¯ÊýÃû£ºIsValidEmail
'×÷ Ó㺼ì²éEmailµØÖ·ºÏ·¨ÐÔ
'²Î Êý£ºemail ----Òª¼ì²éµÄEmailµØÖ·
'·µ»ØÖµ£ºTrue ----EmailµØÖ·ºÏ·¨
' False ----EmailµØÖ·²»ºÏ·¨
'********************************************
function IsValidEmail(email)
dim names, name, i, c
IsValidEmail = true
names = Split(email, "@")
if UBound(names) <> 1 then
IsValidEmail = false
exit function
end if
for each name in names
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Lcase(Mid(name, i, 1))
if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmail = false
exit function
end if
next
if Left(name, 1) = "." or Right(name, 1) = "." then
IsValidEmail = false
exit function
end if
next
if InStr(names(1), ".") <= 0 then
IsValidEmail = false
exit function
end if
i = Len(names(1)) - InStrRev(names(1), ".")
if i <> 2 and i <> 3 then
IsValidEmail = false
exit function
end if
if InStr(email, "..") > 0 then
IsValidEmail = false
end if
end function
response.write validate("abcd@d.com")&"<br>"
response.write IsValidEmail("abcd@dd.com")&"<br>"
%>


Ïà¹ØÎĵµ£º

ASPÈ¡²»Öظ´µÄËæ»úÊý

dim arr(36),xx,tt,tmp
for xx=1 to 36
arr(xx-1)=xx
next

for xx=1 to 5
Randomize
tt=clng((ubound(arr)-xx)*rnd())
response.write(arr(tt) & "<br>")

tmp=arr(tt)
arr(tt)=arr(ubound(arr)-xx)
arr(ubou ......

ajax+asp.net/asp/php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ

ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼­Æ÷¡£
ΪÁ˼ӿìËÙ¶È£¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ãæ£ ......

asp¡¢·þÎñÆ÷¶Ë´ò¿ªÐ´°¿Ú

asp.netÖдò¿ªÐ´°¿ÚµÄ¶àÖÖ·½·¨(×ªÔØ)
1.Response.Redirect("XXX.aspx",true)——Ö±½ÓתÏòеÄÒ³Ãæ£¬Ô­´°¿Ú±»´úÌæ;
2. Response.Write("
")——´ò¿ªÐµÄÒ³Ãæ£¬Ô­´°¿Ú±»´úÌæ;
4.Server.Transfer("XXX.aspx")——´ò¿ªÐµÄÒ³Ãæ;
5.Response.Write("
......

[ASPÖÐʹÓÃÈý²ã¼Ü¹¹] 9.Óû§µÇ¼֮һ User±íÓëÏà¹ØÀà

    ½ÓÏÂÀ´¿ªÊ¼½²½âÈçºÎÓÃÈý²ã¼Ü¹¹À´½¨Á¢Óû§µÇ¼¹ý³Ì.
    Õâ¸ö¹ý³ÌÓÃÒ»°ãµÄ±à³Ì·½Ê½Ð´ÆðÀ´ºÜ¼òµ¥,´ÓÕâÀïÈëÊÖÀ´½²½âÈý²ã¼Ü¹¹µÄʵÀý,Ïë±Ø´ó¼Ò¶¼»á¸üÈÝÒ×Á˽âÆäÖеÄÂß¼­½á¹¹.
   
    Ê×ÏÈÎÒÃÇ×öһЩ׼±¸¹¤×÷,¹¹ÔìÕâ¸öÒµÎñÐèÒªÓõ½µÄ¼¸¸öÀà,ÆäÖаüÀ¨Èý¸ö²¿ ......

½â³ýASPÉÏ´«200KBµÄÏÞÖÆ

Ò»¡¢ÐÞ¸ÄIISÉèÖã¬ÔÊÐíÖ±½Ó±à¼­ÅäÖÃÊý¾Ý¿â
¶þ¡¢ÏÈÔÚ·þÎñÀï¹Ø±Õiis admin service·þÎñ
ÕÒµ½windows\system32\inetsrv\ϵÄmetabase.xml,
´ò¿ª£¬ÕÒµ½ASPMaxRequestEntityAllowed °ÑËûÐÞ¸ÄΪÐèÒªµÄÖµ£¬Ä¬ÈÏΪ204800£¬¼´200K °ÑËüÐÞ¸ÄΪÄãËùÐèµÄ´óС¼´¿É¡£È磺512000£¨500k£©
È»ºóÖØÆôiis admin service·þÎñ¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ