PixelStyle
New member
בעיה עם Cookies
למה הפקודות הבאות לא מחליפות את ה-Cookie הקיים?
למה הפקודות הבאות לא מחליפות את ה-Cookie הקיים?
Dim Exists as MsgBoxResult Beep Exists = MsgBox("A note with that name is already exists." & vbCrLf & "Would you like to change it with the current note?",MsgBoxStyle.YesNo,"NoteSaver") If Exists = MsgBoxResult.Yes Then Dim myCookie As HttpCookie = Request.Cookies("NoteSaver") myCookie(Subject.Text) = "Date of note: " & DateTime.Now.ToString() & "<br />" & Subject.Text myCookie.Expires = DateTime.Now.AddMonths(12) Response.Cookies.Add(myCookie)
הקוד עובד כאילו אבל זה לא מחליף את הקיים :| הוא נשאר אותו הדבר