how can I write text from codebehind to html - without html rendering

  • Thread starter Alex Papadimoulis
  • Start date
G

Guest

Try adding a SPAN to to your html with the runat set

<SPAN id="myText" runat="server"></SPAN

You can then access the text from the codebehind using the follow

myText.innerHTML = "Blah Blah Blah <B>Bold Blah</B>

Oliver
 
L

Leo Muller

Hi,
How can I write text from code behind without getting HTML tags added to it?
Up till now I used the label control. But when I call the label.text =
"something" then the HTML will output "<span>something</span>", and I want
to write "something" without any tags around it. (this is a simplified
example of course).

(response.write from the codebehind adds the text to the beginning of the
page.)

How can this be done?

Thanks,

Leo


--

-----------------------------------------------
Leo Muller ìéàå îéìø
Webmaster Keshet Interactive
(e-mail address removed)
03 - 7676383 / 067 - 972985
--------------------------------------
http://www.keshet-i.com
http://www.mooma.com
http://www.hakasefet.co.il
http://www.bip.co.il
http://www.keshet-tv.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top