Last post Apr 05, 2017 01:55 PM by bbcompent1
Apr 04, 2017 08:02 PM|bbcompent1|LINK
Hey folks, my sql parameter converts the html table I am storing into something like this:
I am trying to respond this into the browser formatted correctly and showing as an html table, not HTML source like this <table>
How can I get this to work properly? I have tried HTMLDecode thinking that would get my values to present correctly but that did not seem to work. Please let me know what I can do in this case. Thanks!
Apr 05, 2017 01:25 AM|KathyW|LINK
How are you displaying the value in the page? Show us that code. (HTML decoding will change <Table> to <Table>, but what do you do with this HTML code?)
Apr 05, 2017 08:28 AM|Cathy Zou|LINK
I use the WebUtility.HtmlDecode() method. it work well on my side:
using System.Net;string strindb = "<Table>";TextBox1.Text = WebUtility.HtmlDecode(strindb);
Output screenshot as below:
For more information, you could refer to the following links:
Apr 05, 2017 01:55 PM|bbcompent1|LINK
Ok, that worked quite well. Now, I have another question related to the formatting of the paging.
I'll submit a new question and put it into the CSS forum.