Ò»¸öASPµÄ¸ß¼¶Ä£°åÒýÇæ
Õâ¸öÄ£°åÒýÇæ±È½Ï·½±ã,¸úHTML½áºÏÁË
Class template
Private c_Char, c_Path, c_FileName, c_Content, c_PageUrl, c_CurrentPage, c_PageStr, ReplacePageStr
Private TagName
' ***************************************
' ÉèÖñàÂë
' ***************************************
Public Property Let Char(ByVal Str)
c_Char = Str
End Property
Public Property Get Char
Char = c_Char
End Property
' ***************************************
' ÉèÖÃÄ£°åÎļþ¼Ð·¾¶
' ***************************************
Public Property Let Path(ByVal Str)
c_Path = Str
End Property
Public Property Get Path
Path = c_Path
End Property
' ***************************************
' ÉèÖÃÄ£°åÎļþÃû
' ***************************************
Public Property Let FileName(ByVal Str)
c_FileName = Str
End Property
Public Property Get FileName
FileName = c_FileName
End Property
' ***************************************
' »ñµÃÄ£°åÎļþ¾ßÌå·¾¶
' ***************************************
Public Property Get FilePath
If Len(Path) > 0 Then Path = Replace(Path, "\", "/")
If Right(Path, 1) <> "/" Then Path = Path & "/"
FilePath = Path & FileName
End Property
' ***************************************
' ÉèÖ÷ÖÒ³URL
' ***************************************
Public Property Let PageUrl(ByVal Str)
c_PageUrl = Str
End Property
Public Property Get PageUrl
PageUrl = c_PageUrl
End Property
' ***************************************
' ÉèÖ÷ÖÒ³ µ±Ç°Ò³
' ***************************************
Public Property Let CurrentPage(ByVal Str)
c_CurrentPage = Str
End Property
Public Property Get CurrentPage
CurrentPage = c_CurrentPage
End Property
' ***************************************
' Êä³öÄÚÈÝ
' ***************************************
Public Property Get Flush
Response.Write(c_Content)
End Property
' ***************************************
' Àà³õʼ»¯
' *******************
Ïà¹ØÎĵµ£º
¡¡¡¡ÓÃASPʵÏÖËÑË÷²¢·ÖÒ³ÊÇÎÒ¼û´ó¶àÊý³ÌÐòÔ±ºÍ´ó¶àÊýÍøÕ¾³öÏÖÁ˲»ÄÜÕý³£·ÖÒ³µÄÎÊÌ⣬ËÑË÷³öÀ´µÄ½á¹ûµã»÷ÏÂÒ»Ò³Êý¾ÝÓÖÖØ¶¨ÏòΪ³õʼµÄ½á¹û¡£ÊÇʲôÔÒòµ¹ÖÂÕâ¸öÎÊÌâÄØ£¿
¡¡¡¡Õâ¸öÎÊÌâÒ²ÊÇÔÚÎÒÔÚУÕýÔÚѧϰASPµÄʱºòÁ·Ï°ÊµÀýÖÐÓöµ½µÄÎÊÌ⣬³öÏÖÕâ¸öÎÊÌâºó£¬·´¸´µÄµ÷ÊÔ·´¸´µÄ¼ì²é´úÂ룬¿´À´¿´È¥´úÂëûÓв»±¨´íÒ²ÎÞÎó¡£× ......
aspÖеöÈ¡Õûº¯ÊýÊÇ£ºfix(),int(),round();
Int(number)¡¢Fix(number)º¯Êý·µ»ØÊý×ÖµÄÕûÊý²¿·Ö¡£number ²ÎÊý¿ÉÒÔÊÇÈÎÒâÓÐЧµÄÊýÖµ±í´ïʽ¡£Èç¹û number ²ÎÊý°üº¬ Null£¬Ôò·µ»Ø Null¡£
Àý£º
response.write int(2.14) '2
response.write fix(2.14) '2
response.write int(2.54) '2
response.write int(2.54) '2
&nbs ......
asp·ÀÖ¹ÍøÕ¾¹ÒÂíÕÒ°²´ï»¥Áª
Äú»¹ÔÚµ£ÐÄÍøÕ¾±»¹ÒÂí¡¢±»ºÚÂ𣿰²´ï»¥Áª(www. ......
Ò»¡¢Request ¶ÔÏó
¿ÉÒÔʹÓà Request ¶ÔÏó·ÃÎÊÈκλùÓÚ HTTP ÇëÇ󴫵ݵÄËùÓÐÐÅÏ¢£¬°üÀ¨´Ó HTML ±í¸ñÓà POST ·½·¨»ò GET ·½·¨´«µÝµÄ²ÎÊý¡¢cookie ºÍÓû§ÈÏÖ¤¡£
Request[.¼¯ºÏ|ÊôÐÔ|·½·¨](±äÁ¿)
1¡¢Form
Form ¼¯ºÏͨ¹ýʹÓà POST ·½·¨µÄ±í¸ñ¼ìË÷ÓÊË͵½ HTTP ÇëÇóÕýÎÄÖеıí¸ñÔªËØµÄÖµ¡£
Request.Form(element)[(i ......
ѧASPµ½ÏÖÔÚÒÑÓÐÐí¶àÄ꣬ºÃ¶àÈ˶¼ËµËûÕâ¸ö²»ºÃÄǸö²»ºÃ£¬¿ÉÎÒ¾õµÃͦºÃ£¬ÎÒȴ˵²»³öʲôºÃµÄÀíÓÉÈÿͻ§Ñ¡ÔñÓÃASP¿ª·¢£¬ÖÕÓÚ¿´µ½ÁËÕâ¸öÎÄÕ£¬ÐÄÖдóϲ£¬×ª¸ø´ó¼Ò·ÖÏí~~
ASPÊÇÒ»ÖÖÀàËÆHTML(Hypertext Markup Language³¬Îı¾±êʶÓïÑÔ)¡¢ScriptÓëCGI(Common GAteway Interface ͨÓÃÍø¹Ø½Ó¿Ú)µÄ½áºÏÌ壬µ«ÊÇÆäÔËÐÐЧÂÊÈ´±È ......