How to insert a newline into dataview headertext?

G

Guest

Hi there,
I am trying to put a newline into a headertext property of a detailsview in
my asp.net application. I've tried \r\n with no luck, and putting <br /> in
the asp doesn't work either. Here's the code I'm trying to work with:

<asp:BoundField DataField="Metric_1" HeaderText="List presentation of DIRs,
via e-mail or in person. Briefly note donor response:"
SortExpression="Metric_1">
<ControlStyle Height="80px" Width="400px" />

Can I just place some kind of special character reference in the HeaderText
property to insert a newline?

Thanks!
 
G

Guest

I figured it out - you need to set the HTMLEncode propert to false in order
for it to render correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top