Problem with literal

  • Thread starter s b via .NET 247
  • Start date
S

s b via .NET 247

Hi,

I am trying a simple thing as copying the contents of a textboxto literal and here is my problem:

From msdn website I found that scripts with html tags can beentered into text for a literal.
http://msdn.microsoft.com/library/d...pgenref/html/gnconliteralwebservercontrol.asp

But when I tried this, it is html encoding the text! For example:I am entering <input type=button value=name> Hello in mytextbox, and in c# I am copying it to literal text asliteral1.text=textbox1.text; In the result the button appearsand I want to see the text.

What am I missing? This seems such a simple thing... yet, I amlost!
Any help is greatly appreciated.
Thanks,
SB
 

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top