How to skip special character (#)

kate2001
kate2001 used Ask the Experts™
on
Dear experts,

I am having a problem of getting my project code, because the project code that I am passing contains a special character which is #.
so, every number after # sign is being ignored, and end up with wrong project code in my linq query.
How can I encode this project code before it is passing to the query.

Thank you in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Okey it is solved now using
HttpUtility.UrlEncode (project_code);

See:

http://stackoverflow.com/questions/602642/server-urlencode-vs-httputility-urlencode

Author

Commented:
Solved by my self.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial