Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASCX Arbitrary HTML blob insertion
Message
General information
Forum:
ASP.NET
Category:
Web forms
Environment versions
Environment:
ASP.NET
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01351190
Message ID:
01351205
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform