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
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