Overriding a control to remove an attribute?

Discussion in 'ASP .Net' started by PJ, Jan 18, 2006.

  1. PJ

    PJ Guest

    The dropdownlist renders language="javascript" when the autopostback is set
    to true. This is invalid markup and I would like to remove it by inheriting
    from the control and overriding the appropriate methods. How would I do
    this?

    Thanks,
    ~PJ
     
    PJ, Jan 18, 2006
    #1
    1. Advertising

  2. PJ

    PJ Guest

    Well, apparently asp.net 2.0 adds a new setting to the web.config.

    <xhtmlConformance mode="Legacy"/>

    Changing the mode to Strict or Transitional prevents the rendering of the
    language attribute.


    "PJ" <> wrote in message
    news:...
    > The dropdownlist renders language="javascript" when the autopostback is

    set
    > to true. This is invalid markup and I would like to remove it by

    inheriting
    > from the control and overriding the appropriate methods. How would I do
    > this?
    >
    > Thanks,
    > ~PJ
    >
    >
     
    PJ, Jan 18, 2006
    #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. Simon-Pierre  Jarry
    Replies:
    2
    Views:
    2,373
    Henrik
    Aug 10, 2005
  2. Dietmar Gräbner
    Replies:
    1
    Views:
    384
    Priscilla Walmsley
    Jul 19, 2004
  3. Thomas Heller
    Replies:
    1
    Views:
    317
    Michael Hudson
    Aug 20, 2004
  4. tshad
    Replies:
    6
    Views:
    21,469
    tshad
    Aug 8, 2006
  5. TJ
    Replies:
    4
    Views:
    366
    Steven Cheng[MSFT]
    Apr 7, 2006
Loading...

Share This Page