![]() |
|
|
|
#1 |
|
I'm creating a cookie by this method :
HttpCookie objCookie = new HttpCookie(strCookieName); Response.Cookies.Clear(); Response.Cookies.Add(objCookie); objCookie.Values.Add(strCookieName, strCookieValue); But when I read the cookie, I can't convert the value (strCookieValue) to an integer. I get the error 'Input string was not in a correct format'. Can anybody help me out with this? Thanks, Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! mike parr |
|
|
|
|
#2 |
|
Posts: n/a
|
can you check whats there in strCookieValue while adding it to the cookie?
Av. "mike parr" <> wrote in message news:... > I'm creating a cookie by this method : > > HttpCookie objCookie = new HttpCookie(strCookieName); > Response.Cookies.Clear(); > Response.Cookies.Add(objCookie); > objCookie.Values.Add(strCookieName, strCookieValue); > > But when I read the cookie, I can't convert the value (strCookieValue) > to an integer. I get the error 'Input string was not in a correct > format'. > > > Can anybody help me out with this? > > > Thanks, > > Mike > > > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it! avnrao |
|
|
|
#3 |
|
Posts: n/a
|
Thanks, I found a solution...I was reading the name-value pair instead
of just the value. Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! mike parr |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ASP.Net Session Cookie Lost on mozilla/netscape After return from cross domain | saurabhm | Software | 3 | 09-18-2009 12:36 PM |
| Values set by javascript are not reflected in serverside(.Net) | rchimakurty | Software | 2 | 11-28-2007 10:07 AM |
| Checkbox values problem in gridview | thanigaimani.thirumalai | Software | 0 | 11-09-2007 05:12 AM |
| Cisco QOS MIB values required | manjunatht | Software | 0 | 09-11-2007 05:40 PM |
| HD-DVD and DVD's future | Phil Riker | DVD Video | 68 | 09-28-2003 09:32 PM |