It seems that I have just run into a small issue that I am hoping can get resolved pretty quickly, as it is the only thing that is holding me back from completely this part of my task.
In an ASHX file, I am needing to read a cookie to pass its value to a SQL Select statement to pass another value from their to a SQL Insert.
This is what I am using and it breaks everytime.
And since I am using FLASH, it is hard to find out "why" i am getting the error as I cannot view the error code(s).
This is the code
Dim strmegaun As String = context.Request.Cookies("cffmega")("user")
I am passing it to my select statement as:
getUser.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Username", strmegaun))
And it is not working.
I removed the cookie reference and put in the actual value to make sure it got the value and it does, it passes the values to the INSERT statement and everything works fune, until I do the cookie reference. so I know that it is the Cookie
That is causing this issue.
Can someone please tell me why this is not working?
Edited by carrzkiss: Changed Title, and editing scripts