tags:

views:

116

answers:

0

Hi,

my c# aspx page sends an email containing a link like this:

http://akerbrygge.cust.avento.no/default.aspx?lang=3&redirect=default.aspx%3fmenu%3d64%26event_id%3d23

When logged in, I want the user to be redirected to the redirect= part of the url. However, .net only finds default.aspx?menu=64 when I output Request["redirect"].

body +="Følgende event må gjøres live: <a href='http://" + HttpContext.Current.Request.Url.Host + "/default.aspx?lang=3&redirect=" + Server.UrlEncode("default.aspx?menu=64&event_id=" + Request["event_id"]) + "'>" + Request["CUSTOM_EVENT"] + "</a><br/>";

What's wrong here?

Kind regards, nitech