Displaying Formatted data in formsview

Discussion in '.NET' started by mayank1987, Mar 12, 2011.

  1. mayank1987

    mayank1987

    Joined:
    Mar 10, 2011
    Messages:
    2
    I AM WORKING ON A FORM-VIEW WHICH IS RECEIVING DATA FROM A XML FILE.
    I WANT TO DISPLAY DATA WITH NEWLINE. HOW CAN THAT BE DONE PLEASE HELP.
    I M USING C# .

    protected void FormView1_DataBound(object sender, EventArgs e)
    {
    if (FormView1.Row.RowType == DataControlRowType.DataRow)
    {

    FormView1.Row.Cells[0].Text = FormView1.Row.Cells[0].Text.Replace("\n", "<p/>");

    }
    }

    I USED THIS CODE BUT IT IS NOT WORKING
     
    Last edited: Mar 12, 2011
    mayank1987, Mar 12, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jty202
    Replies:
    4
    Views:
    418
    Cor Ligthert
    Jan 18, 2005
  2. Joe Flynt
    Replies:
    5
    Views:
    741
    Dennis Lee Bieber
    Nov 9, 2003
  3. custard_pie

    Displaying formatted - data with TKinter

    custard_pie, May 2, 2005, in forum: Python
    Replies:
    1
    Views:
    349
    Harlin Seritt
    May 2, 2005
  4. Mr. R

    FormsView

    Mr. R, Feb 8, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    535
    Mark Rae [MVP]
    Feb 8, 2008
  5. LawrenceLau

    Formsview and stored proc

    LawrenceLau, Nov 21, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    134
    LawrenceLau
    Nov 21, 2005
Loading...

Share This Page