Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embed HTML in GridView data

Status
Not open for further replies.

dgerdner

Programmer
Mar 30, 2005
41
0
0
US
I have a gridview with a sql datasource. In one of the columns I would like to have the data include html tags. However, when the data is shown in the gridview the html tags are either ignored or cause formatting problems.

For instance, if I have the following data:

line1<br>line2<br>

it displays just like above rather than actually having line breaks. Is there a way to have the gridview translate the html tags?
 
set the gridview bound column HTMLEncode="False".

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top