• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Paste html to a webcontrol

What webcontrol can be used to put html and would wrap it correctly?

textbox doesn't seem to do it.

tks.
0
epmo
Asked:
epmo
  • 4
  • 3
  • 2
1 Solution
 
praneethaCommented:
what do u mean wrap it correctly..if u mean rendering <br> to put a new line...

try literal control...
0
 
epmoAuthor Commented:
can you access an html control from code behind?
0
 
raterusCommented:
<asp:literal>  will hold any text you want it to hold.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
epmoAuthor Commented:
which one is that control from the toolbox list?
0
 
epmoAuthor Commented:
actually, which control would render html code when assigned to it?
0
 
raterusCommented:
The Literal, but unless you have absolutely no control over the html, the real solution would be to use a mixture of other webcontrols to create the HTML.
0
 
praneethaCommented:
<asp:Literal id="Literal1" runat="server"></asp:Literal>
0
 
epmoAuthor Commented:
still rendering html as text..
0
 
raterusCommented:
Oh, I see what you want now, in script

someControl.text = Server.HTMLEncode("<html>blahblah</html>")
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now