Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

URL Encoding [ASP.NET/C#]

  • 21-04-2010 3:14pm
    #1
    Registered Users, Registered Users 2 Posts: 527 ✭✭✭


    Hi all,

    I am working on a site where URL encoding is paramount. I have a few URL's with the following structure...
    http://www.site.com/page.aspx/[URL ENCODED TEXT]/123
    

    I have a few URL's that contain the ® symbol (® in HTML). So I am using .NET's HttpUtiliry.UrlEncode() on the [ ]'s part.

    However, when they are clicked I am getting HTTP: 400 Bad Request

    The ampersand is replaced with %26 and the semi-colon is %3b, as expected.
    So the URL looks something like
    http://www.site.com/page.aspx/some-text-here%26reg%3b/123
    

    This works fine locally on my dev machine. As always doesn't work on the test/live site.

    The test/live site is running Windows Server 2003 and IIS 6.0


Advertisement