A Conversation for The H2G2 Programmers' Corner

ASP decode

Post 1

Pastey

Okay, here's one for you guys.
I've got a string of data recieved from a form that is url encoded. I need to decode this using asp and can't seem to figure out how.
I've tried a few of the functions on the 'net but they leave things like =20 instead of new lines and don't touch the C escape slashes amongst other things.

Ideas?

smiley - rose


ASP decode

Post 2

Martin Harper

Isn't there a function called 'URLDecode' ?


ASP decode

Post 3

Pastey

That's what I thought, but you need to use it like Server.URLDecode(string) and I get an error message saying that it's not supported.smiley - erm
I've got this sinking feeling that the version of asp on the server is a tad old, and the URLDecode function is .Net smiley - sadface

smiley - rose


ASP decode

Post 4

MaW

I'm pretty sure I've used URLDecode of some sort on pre-.NET versions of ASP. I haven't got a clue how I invoked it though, I'm not really an ASP developer, I just did it 'cos I got paid.


ASP decode

Post 5

Pastey

Which is exactly why I'm using it, and why I'm currently learning .Net

smiley - rose


ASP decode

Post 6

MaW

Poor Pastey
smiley - hug

Will say one thing for the .NET application framework - C# is nicer than Java.


ASP decode

Post 7

Pastey

Thankfully I've never had to learn Java. Couldn't actually find a use for it in what I was doing.

I'm starting to like asp.net, not sure yet what I actually think of it, but at least it's understandable.

smiley - rose


ASP decode

Post 8

MaW

Makes a nice change from JSP. You really don't want to have to learn those, trust me.


ASP decode

Post 9

Pastey

Well, I'm currently playing with ASP.Nets' database connection abilities, and all I can say is they are smiley - run (that's fast)

smiley - rose


ASP decode

Post 10

MaW

Wow, makes a change. The stuff I had to use from VBScript when I was using pre-NET ASP was awful.


ASP decode

Post 11

Pastey

Don't get me wrong, it's a heck of a lot more complicated than a similar page in php, and apparantly asp.net is riddled with bugs, but once it works, it's very fast.

smiley - rose


ASP decode

Post 12

MaW

Excellent. That makes a nice change too smiley - smiley


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more