■No39476 (Lisa さん) に返信 > 2.Cookieを削除しても表示が消えない。は解決出来てません。 そのように見えるだけかと思います。 読み込みボタンを設置して、削除ボタン押下後に 読み込みボタンを押して確認してみてくださいな。 Private Sub readCookie() If Not Page.IsPostBack Then Dim cookie As HttpCookie = Request.Cookies("UserInfo") If Not (cookie Is Nothing) Then TextBox1.Text = Server.UrlDecode(cookie.Values("name")) TextBox2.Text = Server.UrlDecode(cookie.Values("password")) Else TextBox1.Text = "" TextBox2.Text = "" End If End If End Sub Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) readCookie() End Sub
- Child Tree -