Click here to Skip to main content
15,921,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir
how can i show any html code into a gridview like other text
if i insert in grid this code <select>
<option>
this show as same like other text but in my project not show in text format
this show as html tag format
making listbox into grid
Posted

if you want to render html as a plain text, use <asp:literal xmlns:asp="#unknown"> tag

<asp:Literal runat="server"     Text  = "<select><option>option1</option><option>option2</option></select>" Mode=Encode ></asp:Literal>


Make sure to have literal Mode to Encode
 
Share this answer
 
This article [^]may help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900