gridview omitting <BR> in databound field

Posted on 2006-03-29
Last Modified: 2008-01-09
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??????
Question by:lyntron4545

    Author Comment

    I solved my own question.

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

    Can I have my points back please?
    LVL 22

    Expert Comment

    Hi lyntron4545,

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

    To do so, post a zero-point question in

    Subject: Moderator Please PAQ
    Body: Please PAQ this question, I answered it myself

    Thank you!

    -- Jason
    LVL 5

    Accepted Solution

    Closed, 500 points refunded.
    Site Admin

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now