如何添加目标使用htmltextwwriter。我需要target='_blank'。谁来帮帮我。
有代码:
Dim sw As StringWriter = New StringWriter()
Using ht As HtmlTextWriter = New HtmlTextWriter(sw)
ht.RenderBeginTag(HtmlTextWriterTag.A)
ht.AddAttribute(HtmlTextWriterAttribute.Href, "Order" & "/" & "FileName")
ht.Write("Order1")
ht.RenderEndTag()
End Using
我需要这个代码,html . addattribute (HtmlTextWriterAttribute)。目标,"_blank")