|
extracting data from this string.... (pg. 2)
|
View this Thread in Original format
| nchs09 |
| for some reason, i belive you. carry on on your quest. |
|
|
| Masonious |
| quote: | Originally posted by UglyDave
Masonious - asp.net has a similar method Server.UrlDecode()
which returns the same string, I should manage fine from here on,
Thanks again,
David |
Ah! Good to know, would be kind of horrifying if a major web language couldn't decode URLs :wtf:
Good luck - i'd be interested in your Final Solution to the URL Problem if you find a succinct way of doing it!
-Mason |
|
|
| Orbax |
post your answer, full code , when you get it.
also mason...how the did you know that? Youre just a phpmongler |
|
|
| Masonious |
| quote: | Originally posted by Orbax
post your answer, full code , when you get it.
also mason...how the did you know that? Youre just a phpmongler |
I know many things child, many things. |
|
|
| Orbax |
i can make a .CSV be a .PSV (Pipe Separated Value).
i learned that in perl recently...
im a loser |
|
|
| Masonious |
| quote: | Originally posted by Orbax
i can make a .CSV be a .PSV (Pipe Separated Value).
i learned that in perl recently...
im a loser |
yeah..PSV - that'll come in handy...in 1985 :rolleyes: |
|
|
| Orbax |
| oh! actually at citigroup...maybe youve heard of it...or maybe not because YOU work at a ing call center ;)...yeah so CITIGROUP needed it. and it was an issue and we solved it. and that way 2006 ;) ;) ;) |
|
|
| getfoul |
| quote: | Originally posted by Orbax
you mason. cockmongling aristo
la madame guillotine awaits! | ADO.NET now, ASP.NET next quarter :P Wait, screw that, JAVA next quarter :D |
|
|
| LeopoldStotch |
| quote: | Originally posted by UglyDave
once again - wrong forum. but all u TA people are so damn smart...
trying to read some data from a cookie (written by php) that contains a user id. (in the example below.. the id is 2)
So, from asp.net, can someone suggest a way of extracting the id, or even converting the string below to a more legible format?
Thanks in advance,
Davo
code: a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%22d49614a881b0263d1dda2990012e35a8%22%3Bs%3A
6%3A%22userid%22%3Bs%3A1%3A%222%22%3B%7D
|
hmmm.... are you doing this on the client-side or server-side? if you are doing it on the HTML side, you can use javascript to get the userid by:
code:
var str=" a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%22d49614a881b0263d1dda2990012e35a8%22%3Bs%3A6%3A%2
2userid%22%3Bs%3A1%3A%222%22%3B%7D";
var strUnescape=unescape(str);
var strs=strUnescape.split("userid");
... perform actions on userid strs[1], presuming there is one occurance of userid ...
by doing this method, we do know that the "userid" occurs once in the string.
hopefully this helps. :) |
|
|
| Masonious |
| quote: | Originally posted by Orbax
oh! actually at citigroup...maybe youve heard of it...or maybe not because YOU work at a ing call center ;)...yeah so CITIGROUP needed it. and it was an issue and we solved it. and that way 2006 ;) ;) ;) |
Oh! Well I worked at Washington Mutual and saw the types of technologies banks still use - so that's a really, really bad example.
Of course, with your unbelievably limited experience you don't have much to pull from so I at least understand where you're coming from.
But keep on creating those PSVs! Like I said, RIDICULOUSLY handy like 20 years ago.  |
|
|
| Masonious |
| quote: | Originally posted by getfoul
ADO.NET now, ASP.NET next quarter :P Wait, screw that, JAVA next quarter :D |
Java...yessssss. Excellent language!!! |
|
|
| Orbax |
| citigroups trading at 48 per share, Wamu 36.nice try. go work for someone successful ;) |
|
|
|
|