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

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. Pedro Miguel Carvalho

    Problem initializing class with literal array!

    Pedro Miguel Carvalho, Oct 21, 2004, in forum: C++
    Replies:
    3
    Views:
    7,964
    Victor Bazarov
    Oct 21, 2004
  2. Stephen Miller
    Replies:
    12
    Views:
    791
    Stephen Miller
    Jan 20, 2004
  3. Henry
    Replies:
    0
    Views:
    458
    Henry
    Feb 10, 2004
  4. 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:
    391
    Anonieko Ramos
    Sep 27, 2004
  5. 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:
    187
    Desmond Fitzgerald
    Jan 18, 2006
Loading...

Share This Page