Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 12-12-2005, 04:58 PM ASP URLdecode help
Experienced Talker

Posts: 38
Trades: 0
Hi, i am using server.URLencode and is fine but when the url lands on the other side i need it to decode but so far i have had no luck in finding something that will do it. Any help that anyone can offer be would be great.

For example, the url comes out like this
http://phreakyphonez.co.uk/download/...918&b=46769927

and i need it to come out last this

http://phreakyphonez.co.uk/download/...918&b=46769927

If i can't decode the string then it won't pick up on the ses. Thanks for any help
phreakyphonez is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-12-2005, 05:29 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
here's one I wrote earlier URLDecode
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-13-2005, 06:04 AM
Experienced Talker

Posts: 38
Trades: 0
This may seem like a silly question but how do i call on that function? Dio place the code on the landing page? thanks
phreakyphonez is offline
Reply With Quote
View Public Profile
 
Old 12-13-2005, 03:46 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
just llike any other function

strReturn = URLDecode(strIn)

make sure the function is available either in your included function library or in the page it is required on
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-13-2005, 04:06 PM
Experienced Talker

Posts: 38
Trades: 0
Sorry, i should have mentioned that i am new to using functions. I am still quite new to ASP. I have the function itself on an included file but do i just place <%=strReturn = URLDecode(strIn)%> on the page for the url which i wanted de-coding? thanks for your help.
phreakyphonez is offline
Reply With Quote
View Public Profile
 
Old 12-14-2005, 06:22 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There always seems to be this confusion over functions. Using a UDF (User Defined Function) is no different to using predefined functions.

so just as you can use, say ucase(strIn) to convert a string to all uppercase in two ways
strOut = ucase(strIn) to assign the output from the function to a variable
or
<%=ucase(strIn)%> to send the output direct to the output device

UDFs are no different
strReturn = URLDecode(strIn) would assign the output value
<% = URLDecode(strIn)%> would write the output to the browser.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to ASP URLdecode help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22870 seconds with 12 queries