Problem with literal

Discussion in 'ASP .Net Web Controls' started by s b via .NET 247, Jun 7, 2005.

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


    --------------------------------
    From: s b

    --------------------------------
    From: s b

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>5nGtmX9Toka6WBW/vTV1yQ==</Id>
     
    s b via .NET 247, Jun 7, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Urbanus
    Replies:
    4
    Views:
    4,033
    Tim Hubberstey
    Jan 12, 2005
  2. les

    asp:literal and hyperlink field

    les, Jul 5, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    1,216
    msnews.microsoft.com
    Jul 14, 2003
  3. C K

    ASP:Image vs ASP:Literal

    C K, Oct 28, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    1,643
  4. Pedro Miguel Carvalho

    Problem initializing class with literal array!

    Pedro Miguel Carvalho, Oct 21, 2004, in forum: C++
    Replies:
    3
    Views:
    8,127
    Victor Bazarov
    Oct 21, 2004
  5. Stephen Miller
    Replies:
    12
    Views:
    995
    Stephen Miller
    Jan 20, 2004
  6. Henry
    Replies:
    0
    Views:
    588
    Henry
    Feb 10, 2004
  7. Anonieko Ramos

    What's wrong with rpc-literal? Why use doc-literal?

    Anonieko Ramos, Sep 27, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    588
    Anonieko Ramos
    Sep 27, 2004
  8. Desmond Fitzgerald

    Problem with VS Web Reference to document-literal style web service

    Desmond Fitzgerald, Jan 18, 2006, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    325
    Desmond Fitzgerald
    Jan 18, 2006
Loading...