"Literal" Control in Mobile ASPX?

Discussion in 'ASP .Net' started by Guest, Jun 25, 2007.

  1. Guest

    Guest Guest

    I am confused about how I can insert literal text into a page from C# in the
    ASP.NET 2.0 Mobile Page model. There is no supported "Literal" control as
    there is in ASPX (standard), though I don't understand why not. So the
    question is, how do I get literal HTML text into a certain spot on my ASPX
    page in mobile? It seems I cannot even insert a <p> and then run it at the
    server and control it's InnerText or anything.


    Guest, Jun 25, 2007
    1. Advertisements

  2. Guest

    Masudur Guest


    span ... with runat attribute set to server...
    and in spans innerhtml drop what you like...

    Masudur, Jun 25, 2007
    1. Advertisements

  3. Guest

    Guest Guest


    Guest, Jun 25, 2007
  4. Hi Alex,

    As for the ASP.NET mobile page, since the built-in mobile controls are not
    decidated to html based web pages, it may not contains all those controls
    in standard ASPNET control collection. However, as I've mentioned in some
    former threads, if your mobile page will target certain device that HTML
    content, you can use device filter to supply HTML or ASP.NET standard
    controls based template. Here are some reference on this:

    #ASP.NET 2.0 Mobile Controls - Device Specific Rendering

    #Device-Specific Content


    Steven Cheng

    Microsoft MSDN Online Support Lead

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Steven Cheng[MSFT], Jun 26, 2007
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.