No. That is basicly all of the code. I call this block from the click event of a button on the page (I am checking to see if anything is entered before I call it). I watch the code and It goes through all of the line in this block of code, just no results. Is there maybe a server setting that needs to be set
----- David Jessee wrote: ----
After this executes, is there a Response.redirect? That can keep cookie
from savin
"Simple Person" <an*******@discussions.microsoft.com> wrote in messag
news:1B**********************************@microsof t.com..
I am using C# in ASP (Microsoft Visual Studio.Net) to try and create
cookie. I have cookies enabled on both of my computers, but when I use th
following code (I have also tried the commented line as well), no cookie
are created. Sometimes the 'index.dat' file gets updated (as far a the las
saved date, no reference inside the file), but nothing
NOTE: txt_Reg is a text bo
private void aRegUser(
//Response.Cookies["testRegUser"].Value = this.txt_Reg.Text HttpCookie RegMyUser = new HttpCookie("testRegUser")
RegMyUser.Value = this.txt_Reg.Text
RegMyUser.Expires = DateTime.Now.AddMonths(1)
Response.Cookies.Add(RegMyUser)