Rahul Sutar
Rahul Sutar

Reputation: 260

How to remove HTML tags from the gridview Row

I have a textbox which uses the CKeditor functionality. The issue is that, when I add the text and links in the textboxes and submit it. I can the see the HTML tags also in the gridview like this

What I want it that, whenever the data is added, it should hide/ make invisible the HTML tags.

Also see the HTML code for the textbox.

<ckeditor:ckeditorcontrol id="txtreportdescription" basepath="/ckeditor/" runat="server">

Upvotes: 0

Views: 2009

Answers (1)

user4340666
user4340666

Reputation: 1473

Disable the HTML render in the wanted column, Try :

<asp:BoundField DataField="MyColumn" HtmlEncode="false" />

Upvotes: 3

Related Questions