Link to home
Start Free TrialLog in
Avatar of lyntron4545
lyntron4545

asked on

gridview omitting <BR> in databound field

After doing a conversion from asp 1.0 to 2.0 I'm also upgrading all of my datagrids to gridviews.  What I'm doing is using a mysql query to bind it to a databound field in a gridview.  The datagrids were able to handle the <BR> and add the appropriate line break, however the gridview is actually adding <BR> to the text.  I've tried adding controlchars.NewLine within my concat function of mysql but that didn't work.  I also tried doing a .replace("<BR>", "****"), the '*' is for testing, during RowDataBound and PreRender but to no avail.

Any Ideas??????
Avatar of lyntron4545
lyntron4545

ASKER

I solved my own question.

The solution was to convert the databound column to a template field.

Can I have my points back please?
Hi lyntron4545,

Please, when you get a chance, close this question.  

To do so, post a zero-point question in https://www.experts-exchange.com/Community_Support/

Subject: Moderator Please PAQ
Body: Please PAQ this question, I answered it myself
https://www.experts-exchange.com/questions/21793827/gridview-omitting-BR-in-databound-field.html

Thank you!

-- Jason
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial