PC Review


Reply
Thread Tools Rate Thread

Overriding a control to remove an attribute?

 
 
PJ
Guest
Posts: n/a
 
      18th Jan 2006
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


 
Reply With Quote
 
 
 
 
PJ
Guest
Posts: n/a
 
      18th Jan 2006
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" <(E-Mail Removed)> wrote in message
news:hKSdndi7aJKMGlDeRVn-(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Overriding (Shadowing) list's Add, AddRange, Remove, etc DippyDog Microsoft VB .NET 2 18th Nov 2008 03:40 PM
Overriding == and != when overriding Equals()? Kenneth Baltrinic Microsoft C# .NET 8 17th May 2006 01:29 PM
Overriding == and != when overriding Equals()? Kenneth Baltrinic Microsoft C# .NET 3 9th May 2006 02:02 PM
Re: problem in user control overriding Text property Stoitcho Goutsev \(100\) [C# MVP] Microsoft Dot NET Framework Forms 3 3rd Jun 2004 07:40 PM
Overriding Control.Font =?Utf-8?B?UGF1bCBL?= Microsoft Dot NET Framework Forms 1 8th Apr 2004 10:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:02 PM.