I'm generating an html email in code that is to be sent to a recipient so they can click on a link and open up a certain .ascx control on my dnn 4 site passing in a querystring value.
Here's the relevant portion of my code,
"<a href=""" & "http://" & Request.ServerVariables("SERVER_NAME") & _
EditUrl("ID", intNewlyInsertedAuthID.ToString, "Sign") & _
""">Accept or Reject</a>
In my module definitions, I have an.ascx control that has a Key of "Sign" and Type of "Edit".
The link that gets sent in the email looks like this,
http://localhost/DotNetNuke/DesktopModules/UtilityAuthorization/DotNetNuke/Default.aspx?tabid=53&ctl=Sign&mid=365&ID=76
which I realize has an extra DotNetNuke in it so I copy and paste into the browser like this,
http://localhost/DotNetNuke/DesktopModules/UtilityAuthorization/Default.aspx?tabid=53&ctl=Sign&mid=365&ID=76
but it gives me a 404 error and my Page_Load event of my "Sign" control never fires.
What am I doing wrong?
Thanks,
Greg