בעיה עם Cookies

PixelStyle

New member
בעיה עם Cookies

למה הפקודות הבאות לא מחליפות את ה-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)​
הקוד עובד כאילו אבל זה לא מחליף את הקיים :| הוא נשאר אותו הדבר
 

PixelStyle

New member
מישהו? והכוונה היא:

לקבל את כל העוגיות הקיימות כדי שהנוכחית לא תמחוק את כולם, ולהחליף את הערך של ה-SubKey הקיים כבר, בנוכחי (מה שנכתב עכשיו) או בקיצור: לקבל את כל העוגיות הקיימות ולהחליף את הערך בערך שנכתב בתיבת טקסט תודה :|
 
למעלה