Control with literal content

Discussion in 'ASP .Net Web Controls' started by news.microsoft.com, Dec 16, 2003.

  1. Hi,

    I try to create simple Asp.Net control
    <cs:xdiv runat="server">some text</cs:xdiv>

    this control should create following output :
    for IE -> <div>some text</div>
    for Netscape -> <layer>some text</layer>

    But I received following exception : HttpException : Literal content is not
    allowed within .......

    Max
     
    news.microsoft.com, Dec 16, 2003
    #1
    1. Advertising

  2. [ParseChildren(false)]
    [PersistChildren(true)]
    public class XDiv : Control
    {
    }

    --
    http://www.lostinet.com/
    Lostinet.Web Controls&Components
    ComboBox,ComboCalendar DatePicker,SafePwdBox,SmartIFrame,
    AlertElement,ConfirmElement,PromptElement,DialogElement,ControlHelper
    -----------------------

    "news.microsoft.com" <> дÈëÓʼþ
    news:Okyh$...
    > Hi,
    >
    > I try to create simple Asp.Net control
    > <cs:xdiv runat="server">some text</cs:xdiv>
    >
    > this control should create following output :
    > for IE -> <div>some text</div>
    > for Netscape -> <layer>some text</layer>
    >
    > But I received following exception : HttpException : Literal content is

    not
    > allowed within .......
    >
    > Max
    >
    >
     
    Lostinet.Web Support, Dec 17, 2003
    #2
    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. =?Utf-8?B?RGF2ZQ==?=

    "Literal content is not allowed within a user control"?

    =?Utf-8?B?RGF2ZQ==?=, May 17, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    3,116
    =?Utf-8?B?RGF2ZQ==?=
    May 17, 2004
  2. hazz
    Replies:
    6
    Views:
    49,646
    SkyUCHC
    Jun 9, 2010
  3. Stephen Miller
    Replies:
    12
    Views:
    774
    Stephen Miller
    Jan 20, 2004
  4. Donal McWeeney

    Ignore literal content when parsing custom control children?

    Donal McWeeney, Sep 3, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    152
    Donal McWeeney
    Sep 6, 2004
  5. 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:
    381
    Anonieko Ramos
    Sep 27, 2004
Loading...

Share This Page