Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASCX Arbitrary HTML blob insertion
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Versions des environnements
Environment:
ASP.NET
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01351190
Message ID:
01351205
Vues:
13
>I need to find a way to easily render a blob of HTML text onto an ascx page. I can't find any control that seems to fit the purpose. The specific case is I have a | delimited string that I want to render out via:
>
>
>x.Text.Replace( "|", "<br>" );
>
>
>I don't really want to convert the delimited string to a dataset and bind it to a datagrid that seems like a ton more code than it should have to be.

I tend to just use a label for this kind of thing. Generate the string then set the labels .Text property to it. You can wrap it with some <pre> tags if you don't want the browser screwing with the layout.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform