Writes markup characters and text to an ASP.NET server control output stream. This class provides formatting capabilities that ASP.NET server controls use when rendering markup to clients.
Questions tagged [htmltextwriter]
89 questions
0
votes
1 answer
HTMLTextWriter Remove Hyperlinks and formatting in C#
Some of my fields get exported as hyperlinks and I want it to format to standard font and remove hyperlinks. How do I do that in C#?

user1800674
- 223
- 1
- 7
- 18
0
votes
0 answers
ASP.NET Output HTML within a control? Or some other way?
Was using a Literal Control to output a ton of HTML, but this caused the site to load rather slowly. The HTML is user inputted and is different, so not sure what Control, if any to use. I am able to get the string of the HTML within Umbraco to be…

Solomon Closson
- 6,111
- 14
- 73
- 115
0
votes
1 answer
Page.Session not set to an instance
I'm having trouble understanding how Page.Request.QueryString and Page.Session works. How would I assign a name to this string
protected override void Render(HtmlTextWriter output)
{
SqlConnection sqlConnection = new…

vadim
- 211
- 1
- 5
- 19
0
votes
0 answers
HtmlTextWriter AddAttribute No Quotes In Output
Currently when I use
HtmlTextWriter.AddAttribute(HtmlSomething.Class, "Attribute-I-Add")
I get the resulting output:
Is there a way to use AddAttribute (or something else) and not receive quotes in the output? I…

Thomas927
- 853
- 1
- 11
- 19
0
votes
2 answers
how to append string in a HtmlTextWriter asp.net c# webform
Let say i have a function like below, which returns option tag as a string.
public static string writeDropDownOptionHTML(string tablename, string id_col, string value_col)
{
StringWriter stringwriter = new StringWriter();
…

MD TAHMID HOSSAIN
- 1,581
- 7
- 29
- 54
0
votes
1 answer
Adding async keyword to script tag using HtmlTextWriter
We are dynamically adding script tags to a page using HtmlTextWriter, which works great. We have a few that need to have async keyword added and I'm not sure how to do it.
I want the tag to look like this.