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

  • Thread starter Thread starter Alex Papadimoulis
  • Start date Start date
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
 
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
 
Back
Top