How to add attributes correctly upon rendering with a HtmlTextWriter?
I want to add the href attribute to a link element. This is my code: System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); using (System.IO.StringWriter stringWriter = new System.IO.StringWriter(stringBuilder)) { using (System.Web.UI.HtmlTextWriter htmlTextWriter = new System.Web.UI.HtmlTextWriter(stringWriter)) {...