?? 4-14.aspx
字號:
<Html>
<Script Language="VB" Runat="Server">
Sub Page_Load(Sender As Object,e As Eventargs)
Dim CookieCollection As HttpCookieCollection=New HttpCookieCollection
Dim Cookie1 As HttpCookie=New HttpCookie("Cookie1")
Dim Cookie2 As HttpCookie=New HttpCookie("Cookie2")
Cookie1.Value=".Net Framework"
Cookie2.Value="ASP.NET"
CookieCollection.Add(Cookie1) '將Cookie 對象加入Cookies 集合中
CookieCollection.Add(Cookie2)
Dim shtI As Short
For shtI=0 To CookieCollection.Count-1
Response.Write("變量名=" & CookieCollection.Item(shtI).Name & "<br>")
Response.Write("變量值=" & CookieCollection.Get(shtI).Value & "<p>")
Next
CookieCollection.Clear()
End Sub
</Script>
</Html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -