在控制台vb.net内的锚中传递函数

在控制台vb.net内的锚中传递函数,vb.net,Vb.net,请问我如何才能传递一个函数的链接,该函数从一个函数获取一个id Dim Email As String = "ultimadan@hotmail.com" Dim msgBody As New StringBuilder() msgBody.Append("Thank you, please click the link below.") msgBody.Append("<a href=http://localhost:49789/Seller/Part1/De

请问我如何才能传递一个函数的链接,该函数从一个函数获取一个id

 Dim Email As String = "ultimadan@hotmail.com"
    Dim msgBody As New StringBuilder()
    msgBody.Append("Thank you, please click the link below.")

    msgBody.Append("<a href=http://localhost:49789/Seller/Part1/Default.aspx?" & GetUserID(Email))
Dim Email As String=”ultimadan@hotmail.com"
将msgBody作为新的StringBuilder()进行尺寸标注
附加(“谢谢,请点击下面的链接。”)

msgBody.Append(“看起来您只是没有构建完整的锚标记。您缺少查询字符串值的键,没有关闭标记,等等。您当前的代码可能会生成以下内容:

<a href=http://localhost:49789/Seller/Part1/Default.aspx?123
”
)
这将产生更像:

<a href="http://localhost:49789/Seller/Part1/Default.aspx?userid=123">click here</a>


是,但现在存在此问题。未声明错误1“单击”。由于它的保护级别,它可能无法访问。@user3246292:考虑到问题中的代码,这个错误没有多大意义。到底是什么造成了这个错误?你能用更多的信息更新你的问题吗?所以我正在做一个控制台,通过一个链接向用户发送电子邮件,这个链接将包含函数getuserid,它可以将电子邮件传递到我的本地主机上的网站。单击此处不显示为链接:(@user3246292:电子邮件是HTML格式的吗?你能更具体地说明这个问题吗?你问的很多问题都超出了原始问题的范围,与发布的代码无关。
<a href="http://localhost:49789/Seller/Part1/Default.aspx?userid=123">click here</a>