-5

I have this link to send in gmail:

"<br />< a href = '"
 + HttpContext.Current.Response.Redirect("CS_Activation.aspx?ActivationCode=",false)
 + "' >Click here to change your password.</a>";

When I do this code it gives me this error

Operator '+' cannot be applied to operands of type 'string' and 'void' C# WebMethod

Someone help please?

GSerg
  • 76,472
  • 17
  • 159
  • 346

1 Answers1

1

HttpContext.Current.Response.Redirect doesn't return a string.

I suppose you wanted to do:

"<br /><a href='CS_Activation.aspx?ActivationCode='>Click here to change your password.</a>";
Marco Salerno
  • 5,131
  • 2
  • 12
  • 32