ʹÓÃ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>"
%>
Ïà¹ØÎĵµ£º
ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼Æ÷¡£
ΪÁ˼ӿìËÙ¶È£¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ãæ£ ......
¼ÆËãÈòÄêÖ÷ÒªÊÇΪÁËÅжÏ2Ô·ݵÄÌìÊý£¬Ò»°ãÈòÄê2Ô·ÝÊÇ29Ì죬ƽÄê2Ô·ÝÊÇ28Ìì¡£¼ÆËãÈòÄêµÄËã·¨·Ç³£¼òµ¥£¬¼´£ºÄܱ»400Õû³ý£¬»òÕßÄܱ»4Õû³ý¶ø²»Äܱ»100Õû³ý¡£
Ëã·¨ÈçÏ£º
function isLeapYear(pYear)
set oreg=new RegExp
oreg.Pattern="^\d{4}$"
if n ......
1. oncontextmenu="window.event.returnvalue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return f ......
½ÓÏÂÀ´¿ªÊ¼½²½âÈçºÎÓÃÈý²ã¼Ü¹¹À´½¨Á¢Óû§µÇ¼¹ý³Ì.
Õâ¸ö¹ý³ÌÓÃÒ»°ãµÄ±à³Ì·½Ê½Ð´ÆðÀ´ºÜ¼òµ¥,´ÓÕâÀïÈëÊÖÀ´½²½âÈý²ã¼Ü¹¹µÄʵÀý,Ïë±Ø´ó¼Ò¶¼»á¸üÈÝÒ×Á˽âÆäÖеÄÂß¼½á¹¹.
Ê×ÏÈÎÒÃÇ×öһЩ׼±¸¹¤×÷,¹¹ÔìÕâ¸öÒµÎñÐèÒªÓõ½µÄ¼¸¸öÀà,ÆäÖаüÀ¨Èý¸ö²¿ ......
HTML²¿·Ö£º
<asp:Chart ID="ChartBar" runat="server" Width="800px" BackColor="#FFFFCC" Palette="BrightPastel" BorderWidth = "2" BorderColor = "#cc9900" >
& ......