url encoding

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/5/2011 9:52:29 AM
Gravatar
Total Posts 19

url encoding

I have a url with a query string:

http://localhost:50522/search?area=Bath+%26+Bristol&timestamp=634508341999930312

when I try and access 'area' - request.QueryString("area") I get 'Bath' and NOT 'Bath and Bristol' as I'm expecting.

I've tried this on a standalone web page and it works as expected.

Any help would be appreciated.

Thanks

9/5/2011 2:21:08 PM
Gravatar
Total Posts 18439

Re: url encoding

try something like this:

string area = HttpUtility.UrlDecode(Request.QueryString["area"]);

though you would want to wrap that in a check to make sure the param is not null

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.