1
我有一個標籤(Label1.Text),它具有我的程序中所有計算器條目的歷史記錄。我找到了一種方法來檢索cookie,但它包含以下奇怪的字符。我如何刪除它們?從Cookie中刪除奇怪的字符(VB)
%0D%0a5 + 5 = 10
Sub Page_Load(s As Object, e As EventArgs)
If Request.Cookies("Cookie") IsNot Nothing Then
Label1.Text = Server.HtmlEncode(Request.Cookies("Cookie").Value)
End If
End Sub
太感謝你了!工作很棒! – rupes0610 2013-02-21 00:11:52