Select to view content in your preferred language

Decoding URL string which has been Encoded in VB.Net...

2707
2
07-14-2010 09:01 PM
PaulRichards
Deactivated User
Hi,
     I am using a webservice method in vb.net (for sending Email) which will be called from flex application. Then say user will receive a mail with link which has been encoded (I am Encoding the URL string using the HttpUtility.UrlEncode method).  Then, I am using the ExternalInterfaceCall for getting the parameters in flex.  Now, my query is - "How to decode that URL string(Encoded) here in my flex application(action script).  Is there any direct method in flex which will decode the URLstring which has been encoded using .Net objects.


Thanks in advance...
Paul.
Tags (2)
0 Kudos
2 Replies
Drew
by
Frequent Contributor
If the URL is just &name=value pairs you can use the URLVariables object.
There is a decode() method that should do the trick.

Adobe Docs
http://www.adobe.com/livedocs/flex/201/langref/flash/net/URLVariables.html

Some samples here:
http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using...


Drew
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos