Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What control can render text with carriage returns?
Message
De
06/11/2009 10:04:52
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
What control can render text with carriage returns?
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01433564
Message ID:
01433564
Vues:
115
A have a field in one of my database tables that contains text with carriage returns. I need to bind this (read only) to a UI control to show these comments to the user on the page. What control or technique should I use? I tried < asp:TextBox > with a wide width and tall height, but it does honor the carriage returns.

The text in the table field is like this:

1. Information / Comment number one will go here.
2. Then, Information / Comment number two will go here.
3. And, Again, Information / Comment number three will go here.
4. And so on...

I manually edit this data as an admin when I add the record, then I need to show it like plain text on a page when the user is viewing the record.

Also, what is the proper data type to make this field in the table? Right now it is a type called "ntext", and I'm not even sure why it is that type. This data was given to me by the customer in Access, and I upsized it into SQL Server. I can change the type however I need to, so what is best for this case?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform