运算符“+”不能应用于 'string' 和 'void' 类型的操作数 C# WebMethod

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

我有这个 link 要在 gmail 中发送:

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

当我执行此代码时,出现此错误

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

有人帮忙吗?

HttpContext.Current.Response.Redirect 不是 return 字符串。

我想你想做的是:

"<br /><a href='CS_Activation.aspx?ActivationCode='>Click here to change your password.</a>";