Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

url encode not working for @ in email

Status
Not open for further replies.

ciberperson

Programmer
Aug 31, 2000
29
CA
I am trying to pass several variables from a jsp page to a aspx page. This works fine using a link, a redirect, etc as long as my variable does not have @ symbol.

I use Server.UrlEncode () on the string - it still does not work.
I use a Replace on the string (replace @ with %40 - it still does not work.

I get a 404 whenever there is an @ or %40 in the querystring. If I remove the @, (or the %40 after encoding), it all works fine.

Is this a bug?
Has anyone seen this before? I am using .NET 4.0

If noone has any ideas I will just use a clunky method of splitting the email address, pass it in query string and then re-construct it at the other end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top