小屋創作

日誌2010-05-27 13:22

5/27

作者:咪趴~☆

Dim rac As String = "peter"
        Dim rpw As String = "123"
        Dim myac, mypw As TextBox
        Dim mysave As CheckBox
dim mytimes as integer
        Dim dtday As Date = DateAdd("D", -365, Today)
        myac = PreviousPage.FindControl("Textbox1")
        mypw = PreviousPage.FindControl("Textbox2")
        mysave = PreviousPage.FindControl("ck1")
        If myac.Text = rac And mypw.Text = rpw Then
            Label1.Text = "登入成功"
If Request.Cookies("mytimes1") IsNot Nothing Then  
mytimes= cInt(request.cookies("mytimes1").Value)
else
mytimes = 1
end if       
label2.text="已經登入" & CSTR(mytimes) &"次"
mytimes=mytimes+1
response.cookies("mytimes1").value=CSTR(mytimes)
If mysave.Checked = True Then
                Response.Cookies("user1").Value = myac.Text
                Response.Cookies("passw1").Value = mypw.Text
Response.Cookies("mytimes1").Value = mytimes
            Else
                If Request.Cookies("user1") IsNot Nothing Then
                    Request.Cookies("user1").Expires = dtday
                End If
            End If
        Else
            Label1.Text = "登入失敗"
        End If

0

0

LINE 分享

相關創作

【資料整理】Echo(回音) - 其他路線

【雷迪雜談】如何寫出讓繪師一眼明白你的需求的企劃書?-委託企劃篇

KMST 1.2.173 新品速報

留言

開啟 APP

face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】