Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Fri, 3 Jul 2009 08:31:00 -0700,    group: microsoft.public.dotnet.framework.aspnet        back       


xhtmlConformance mode="Strict"   
I have the following line in my web.config file:

<xhtmlConformance mode="Strict" />

however the form element is still rendering with the "name" attribute. I 
think a potential problem is that I am using precompilation for the site. Is 
there a way for me to have the precompiler use strict mode?
date: Fri, 3 Jul 2009 08:31:00 -0700   author:   MCM am

Re: xhtmlConformance mode="Strict"   
Hi,

You have just updated the web config file ? Or you also recompiled the site 
?

Not sure for this one but in some cases, settings stored in web.config are 
used at compile time to build the pages so if your site is precompiled with 
updates disallowed, you have to recompile the site...

If I remember I heard also about some other issues but not sure if having 
still the name attribute is one of them (I made a quick search, actually it 
seems to be Ajax issues with the "legacy" mode)...

--
Patrice

"MCM" <MCM@newsgroup.nospam> a écrit dans le message de groupe de discussion 
: 268C6D53-8902-4748-AE2D-6636AE1A8A20@microsoft.com...
> I have the following line in my web.config file:
>
> <xhtmlConformance mode="Strict" />
>
> however the form element is still rendering with the "name" attribute. I
> think a potential problem is that I am using precompilation for the site. 
> Is
> there a way for me to have the precompiler use strict mode?
>
date: Fri, 3 Jul 2009 17:54:35 +0200   author:   Patrice http://scribe-en.blogspot.com/

Re: xhtmlConformance mode="Strict"   
> You have just updated the web config file ? Or you also recompiled the site 
> ?

I updated web.config, then recompiled the site.

> Not sure for this one but in some cases, settings stored in web.config are 
> used at compile time to build the pages so if your site is precompiled with 
> updates disallowed, you have to recompile the site...

I do have updates disallowed, but I recompiled.
date: Fri, 3 Jul 2009 10:36:01 -0700   author:   MCM am

Re: xhtmlConformance mode="Strict"   
the browser detection logic (HttpBrowserCapabilities) needs to report 
W3CDOMVersion.Major as greater > 0.

check you browser version (agent string), and the browserCaps (in 
config) is setting this for your browser.

-- bruce (sqlwork.com)

MCM wrote:
> I have the following line in my web.config file:
> 
> <xhtmlConformance mode="Strict" />
> 
> however the form element is still rendering with the "name" attribute. I 
> think a potential problem is that I am using precompilation for the site. Is 
> there a way for me to have the precompiler use strict mode?
>
date: Fri, 03 Jul 2009 13:55:11 -0700   author:   bruce barker

RE: xhtmlConformance mode="Strict"   
Hi,

>I have the following line in my web.config file:

><xhtmlConformance mode="Strict" />

>however the form element is still rendering with the "name" attribute. I 
>think a potential problem is that I am using precompilation for the site. 
Is 
>there a way for me to have the precompiler use strict mode?

I cannot reproduce this issue, even using precompiled web site. Are you 
sure it only happens when it's a precompiled web site? Does it happen if 
you create a new ASP.NET Web Application? Is it possible that you're using 
page cache that causes this issue?

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to 
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 2 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions. Issues of this 
nature are best handled working with a dedicated Microsoft Support Engineer 
by contacting Microsoft Customer Support Services (CSS) at 
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Mon, 06 Jul 2009 02:32:43 GMT   author:   (Allen Chen [MSFT])

RE: xhtmlConformance mode="Strict"   
I am not caching anything. I can e-mail you my web.config file if that is 
helpful.

Also, to be more clear - I am using a "Web Deployment Project" to do the 
precompilation. I can also e-mail you the settings I use for that as well.

My website is an "ASP.NET Web Application" using VB and .NET 3.5.


"Allen Chen [MSFT]" wrote:

> Hi,
> 
> >I have the following line in my web.config file:
> 
> ><xhtmlConformance mode="Strict" />
> 
> >however the form element is still rendering with the "name" attribute. I 
> >think a potential problem is that I am using precompilation for the site. 
> Is 
> >there a way for me to have the precompiler use strict mode?
> 
> I cannot reproduce this issue, even using precompiled web site. Are you 
> sure it only happens when it's a precompiled web site? Does it happen if 
> you create a new ASP.NET Web Application? Is it possible that you're using 
> page cache that causes this issue?
> 
> Regards,
> Allen Chen
> Microsoft Online Support
> 
> Delighting our customers is our #1 priority. We welcome your comments and 
> suggestions about how we can improve the support we provide to you. Please 
> feel free to let my manager know what you think of the level of service 
> provided. You can send feedback directly to my manager at: 
> msdnmg@microsoft.com.
> 
> ==================================================
> Get notification to my posts through email? Please refer to 
> http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
> 
> Note: MSDN Managed Newsgroup support offering is for non-urgent issues 
> where an initial response from the community or a Microsoft Support 
> Engineer within 2 business day is acceptable. Please note that each follow 
> up response may take approximately 2 business days as the support 
> professional working with you may need further investigation to reach the 
> most efficient resolution. The offering is not appropriate for situations 
> that require urgent, real-time or phone-based interactions. Issues of this 
> nature are best handled working with a dedicated Microsoft Support Engineer 
> by contacting Microsoft Customer Support Services (CSS) at 
> http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
> 
> 
> 
>
date: Mon, 6 Jul 2009 17:06:01 -0700   author:   MCM am

RE: xhtmlConformance mode="Strict"   
Hi Alex,

> I am not caching anything. I can e-mail you my web.config file if that is 
>helpful.

Then could you try bruce's suggestion to check this value (please set a 
breakpoint in Page_Load and check it in the watch window):

Request.Browser.W3CDomVersion

Is it 0? If so it'll still render the name attribute even though 
xhtmlConformance is set as strict. See below logic:

  if (writer.IsValidFormAttribute("name"))
    {
        if (((page != null) && (page.RequestInternal != null)) && 
((page.RequestInternal.Browser.W3CDomVersion.Major == 0) || 
(page.XhtmlConformanceMode != XhtmlConformanceMode.Strict)))
        {
            writer.WriteAttribute("name", this.Name);
        }
        base.Attributes.Remove("name");
    }


If this is the cause, you can add a browserCaps section in web.config to 
force web controls render as if the browser supports w3cdomversion 1.0. 

http://www.4guysfromrolla.com/demos/printPage.aspx?path=/articles/050504-1.a
spx

Please let me know if it works.

Regards,
Allen Chen
Microsoft Online Support
date: Tue, 07 Jul 2009 02:49:47 GMT   author:   (Allen Chen [MSFT])

RE: xhtmlConformance mode="Strict"   
You and Bruce were right about the Dom version. But the broswerCaps section 
is not helping. I am getting a value of 1 for the Dom version in all major 
browsers - which is good. But I am trying to validate with the w3c validator. 
That system is giving me a value of 0 for the Dom. The browserCaps section 
isn't changing it.

"Allen Chen [MSFT]" wrote:

> Hi Alex,
> 
> > I am not caching anything. I can e-mail you my web.config file if that is 
> >helpful.
> 
> Then could you try bruce's suggestion to check this value (please set a 
> breakpoint in Page_Load and check it in the watch window):
> 
> Request.Browser.W3CDomVersion
> 
> Is it 0? If so it'll still render the name attribute even though 
> xhtmlConformance is set as strict. See below logic:
> 
>   if (writer.IsValidFormAttribute("name"))
>     {
>         if (((page != null) && (page.RequestInternal != null)) && 
> ((page.RequestInternal.Browser.W3CDomVersion.Major == 0) || 
> (page.XhtmlConformanceMode != XhtmlConformanceMode.Strict)))
>         {
>             writer.WriteAttribute("name", this.Name);
>         }
>         base.Attributes.Remove("name");
>     }
> 
> 
> If this is the cause, you can add a browserCaps section in web.config to 
> force web controls render as if the browser supports w3cdomversion 1.0. 
> 
> http://www.4guysfromrolla.com/demos/printPage.aspx?path=/articles/050504-1.a
> spx
> 
> Please let me know if it works.
> 
> Regards,
> Allen Chen
> Microsoft Online Support
> 
>
date: Tue, 7 Jul 2009 09:01:03 -0700   author:   MCM am

RE: xhtmlConformance mode="Strict"   
Hi,

>You and Bruce were right about the Dom version. But the broswerCaps 
section 
>is not helping. I am getting a value of 1 for the Dom version in all major 
>browsers - which is good. But I am trying to validate with the w3c 
validator. 
>That system is giving me a value of 0 for the Dom. The browserCaps section 
>isn't changing it.

Could you send me a demo that can reproduce this issue? I'll try to see if 
there's a way to solve it. My email is allenc@microsoft.com.Please update 
here after sending the project in case I missed that email.

Regards,
Allen Chen
Microsoft Online Support
date: Wed, 08 Jul 2009 02:08:45 GMT   author:   (Allen Chen [MSFT])

RE: xhtmlConformance mode="Strict"   
Don't worry about it. Thanks though.

"Allen Chen [MSFT]" wrote:

> Hi,
> 
> >You and Bruce were right about the Dom version. But the broswerCaps 
> section 
> >is not helping. I am getting a value of 1 for the Dom version in all major 
> >browsers - which is good. But I am trying to validate with the w3c 
> validator. 
> >That system is giving me a value of 0 for the Dom. The browserCaps section 
> >isn't changing it.
> 
> Could you send me a demo that can reproduce this issue? I'll try to see if 
> there's a way to solve it. My email is allenc@microsoft.com.Please update 
> here after sending the project in case I missed that email.
> 
> Regards,
> Allen Chen
> Microsoft Online Support
> 
>
date: Wed, 8 Jul 2009 11:14:02 -0700   author:   MCM am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us