Results 1 to 3 of 3
  1. #1

    data binding question?

    I have little problem with binding data to a form.

    I have an object called GuestSpeaker which has a property 'Abstract'. I would like to present the information on a form using the FormView component.

    The problem now is that de string Abstract can contain newline characters but in HTML they are not displayed. How can I replace all newline characters in the string Abstract to '<br />' tags. Same question for other characters that need to be replaced like , ?, ...


  2. #2
    Join Date
    Oct 2005
    Which language/script are you using? Sounds like something.NET? If you can provide this information, it will be more likely that someone will be able to assist you.

    If the language was PHP, you could use the nl2br() function to convert your newlines to a breakrule.

    I don't know if .NET includes an nl2br alternative ( I doubt it though ) so you would need to do a string replacement on any newlines (\n) or returns (\r\n) to the <br /> string tags. Similarly, you would need to do string replacements on any other characters or entities that need converting in this regard.

    I'm not entirely sure what you mean as the "other" characters don't have HTML equivalents (at least not with ?) but they do have URL encoding equivalents (? -> %3F).

  3. #3


    thanks much....

Similar Threads

  1. binding to another port
    By Lem0nHead in forum Programming Discussion
    Replies: 1
    Last Post: 08-08-2004, 08:14 PM
  2. Apache Not Binding
    By joshiee in forum Hosting Security and Technology
    Replies: 2
    Last Post: 12-05-2003, 04:41 AM
  3. binding IP to NAME in proFTPd
    By oc3 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 02-24-2003, 11:40 AM
  4. Binding Name Server?
    By andy18 in forum Hosting Security and Technology
    Replies: 2
    Last Post: 01-06-2003, 12:48 PM
  5. IP binding problems
    By mushrew in forum Hosting Security and Technology
    Replies: 9
    Last Post: 11-16-2002, 07:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts