simple database question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mensuur

    #1

    simple database question

    hi,

    i have a webpage that contains a DataList control. it retrieves the data
    from a database. if one of the entries contains an HTML tag eg <b></b> it
    will appear bold on the page. i want people to enter data into the database
    from the website via a multiline textbox. will the enterer have to enter <br
    /> if he/she wants a line break or will a press of the return key suffice? i
    cant try it for myself because the data entry form doesn't work yet.

    i hope you've understood my question!
    --
    mensuur
  • Robbe Morris [C# MVP]

    #2
    Re: simple database question

    Typically, you let them type normally and convert \n
    to <BR> when you render the text in html.

    --
    Robbe Morris - 2004-2006 Microsoft MVP C#






    "mensuur" <mensuur@discus sions.microsoft .com> wrote in message
    news:B75C9B69-18BA-45B8-82A9-E929E6A84126@mi crosoft.com...[color=blue]
    > hi,
    >
    > i have a webpage that contains a DataList control. it retrieves the data
    > from a database. if one of the entries contains an HTML tag eg <b></b> it
    > will appear bold on the page. i want people to enter data into the
    > database
    > from the website via a multiline textbox. will the enterer have to enter
    > <br
    > /> if he/she wants a line break or will a press of the return key suffice?
    > i
    > cant try it for myself because the data entry form doesn't work yet.
    >
    > i hope you've understood my question!
    > --
    > mensuur[/color]


    Comment

    Working...