in

AlertPay Developers Community

Help with decoding url

Last post 07-02-2009 2:50 PM by AlertPay_Ali. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-27-2009 5:12 PM

    • josip
    • Not Ranked
    • Joined on 06-27-2009
    • Posts 2

    Help with decoding url

    Hello,

    can some one help me with decoding the url in ASP.NET C#  please.

    I dont know how to cath the url and decode.

    Thank you.

  • 06-29-2009 12:17 PM In reply to

    Re: Help with decoding url

    Hi,

    You can use HttpUtility.UrlDecode(string s) in order to decode URL using C#.

    Regards,

    Ali

  • 07-02-2009 5:16 AM In reply to

    • manola
    • Not Ranked
    • Joined on 07-02-2009
    • Posts 1

    Re: Help with decoding url

    Thank you for your posts.

    sonnerie portable gratuite

  • 07-02-2009 7:22 AM In reply to

    • josip
    • Not Ranked
    • Joined on 06-27-2009
    • Posts 2

    Re: Help with decoding url

    Thank you for your post,

    can you also tell me how to get the url string s so i can put it into

    HttpUtility.UrlDecode(string s)

    Thanks! :)

  • 07-02-2009 2:19 PM In reply to

    Re: Help with decoding url

    Hello,

    You may use the Request.Form in order to capture the data that we send via POST method. For more information about Request.Form, you can visite the following link: http://msdn.microsoft.com/en-us/library/ms525985.aspx

    You can also refer to our AlertPay Instant Payment Notification C# Sample here: http://dev.alertpay.com/files/folders/asp_net/entry37.aspx

     

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
  • 07-02-2009 2:50 PM In reply to

    Re: Help with decoding url

     Hi,

    If you are using this for the IPN, you only need to "URL decode" the values passed to you by the IPN through the post. the term URL decode does not mean that you actually have to get the URL, it is just a form of encoding in order to insure that the values are passed correctly to your server.

    Here is an example of a form valriable that you would need to decode

    string ap_CustFirstName = HttpUtility.UrlDecode(Request.Form["ap_custfirstname"]);

    Regards,

    Ali

     

Page 1 of 1 (6 items)

  AlertPay - Verified by Visa AlertPay - secure credit card and checking services BBBOnline Reliability Program