Ò»¸ö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
' ***************************************
' Àà³õʼ»¯
' *******************
Ïà¹ØÎĵµ£º
<%
'ÒÔϲ¿·ÖÊÇÑéÖ¤Ìá½»µÄpageÊÇ·ñΪºÏ·¨µÄ²ÎÊý
'Õⲿ·Ö×îºÃÅжÏÒ»ÏÂÌá½»µÄ²ÎÊýÊÇ·ñΪÊýÖµ×Ö·û
dim page
page=Trim(request("page"))
If page="" Then
page=1
Elseif CInt(page)<=0 then
page=1
else
page=CInt(page)
End If
'½øÐвéѯ£¬È¡³öÒªÏÔʾµÄ¼Ç¼
str=rs1("content")
'°Ñ³ö ......
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 ......
³ý·ÇÄúÒÔϵͳÕÊ»§µÄÉí·ÝµÇ½µ½·þÎñÆ÷£¨ÔÚä¯ÀÀÆ÷»·¾³ÖÐÒ²ÊÇ¿ÉÒÔʵÏÖ£©£¬»òÕßÖ÷»ú¶Ë½øÐÐÁËÁ¼ºÃµÄȨÏÞÅäÖ㬷ñÔò±¾ÎÄÉæ¼°µÄ¹¦ÄÜÊǺÜÄÑʵÏֵġ£ÒòΪÎÒÃÇͨ¹ýiis·ÃÎÊij¸öÒ³ÃæÊ±£¬Ò»°ãÊÇiisÄäÃûÕÊ»§µÄÉí·Ý£¬ÔÚ´ó¶àÊýÇé¿öÏ£¬aspµÄWScript.ShellÊDZ»½ûÓõģ¬ÒòΪËüÓкܴóµÄ°²È«Òþ»¼¡£
¡¡¡¡ÒªÏëʵÏÖÕâÖÖ¹¦ÄÜ£¬Ê×ÏÈÒªµÃµ½Rar³ ......
asp·ÀÖ¹ÍøÕ¾¹ÒÂíÕÒ°²´ï»¥Áª
Äú»¹ÔÚµ£ÐÄÍøÕ¾±»¹ÒÂí¡¢±»ºÚÂ𣿰²´ï»¥Áª(www. ......
¶ÔÓÚÒ»¸öÏëѧºÃASP¼°asp.netµÄ¹ýÀ´ÈËÀ´Ëµ,ѧϰµÄ¹ý³ÌÊÇÓÐȤ¼°ÕÛÄ¥È˵Ä,µ±Äã×ö³öµÚÒ»¸öʵÑéµÄʱºòÄãµÄÐÄÇéÊǼ¤¶¯µÄ,ÎÒÊDZÏÒµÒÔÀ´Ò»²½Ò»²½µÄ×Ôѧ¹ý³ÌÖÐ×ܽáÁËһЩºÃµÄ¾ÑéÈÿ´µ½ÕâÆªÎÄÕµÄÈËÉÙ×ßһЩÍä·,ÏÂÃæÐ´µÄ¶¼ÊÇÕë¶Ô³õѧÕß,Ò²ÊÇÎÒ×Ô¼ºÊÇÔõô´ÓÁã»ù´¡µ½ÏÖÔÚ¿ÉÒÔ¿ª·¢Ò»Ð©¶«Î÷µÄ¹ý³Ì.
&nb ......