Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 845637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:29:03+00:00 2026-05-15T06:29:03+00:00

We have just updated our application from ASP.Net 2.0 to ASP.Net 4.0. We have

  • 0

We have just updated our application from ASP.Net 2.0 to ASP.Net 4.0.

We have included in the web.config in the <system.web> element:

<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />

My understanding is that this is supposed to render the controls the same as .Net 2.0/3.5 would.

However… it’s not… here is one example

This is rendered in 2.0:

<input id="grdUserEntity__ctl1_chkSelectAll" type="checkbox"
   name="grdUserEntity:_ctl1:chkSelectAll" onclick="javascript:iSelectAll();" />

This is in 4.0:

<input id="grdUserEntity_ctl01_chkSelectAll" type="checkbox" 
   name="grdUserEntity$ctl01$chkSelectAll" onclick="javascript:iSelectAll();" />

The difference:

2.0 id=grdUserEntity__ctl1_chkSelectAll
4.0 id=grdUserEntity_ctl01_chkSelectAll

According to what I read that config setting will cause ASP.Net 4.0 to render the server controls and client id’s identically to the previous version.

What are we doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:29:03+00:00Added an answer on May 15, 2026 at 6:29 am

    There was a change to how IDs were rendered from ASP.NET 2.0 to ASP.NET 3.5. Since you’re going from 2.0 to 4.0, you’re still seeing that difference. The change was due to XHTML compliance improvements.

    You can try switching back to the 2.0 rendering with the xhtmlCompliance compat setting. Yet another compat setting, yes 🙂 It should work, but honestly, I’m not sure how well tested that old compat setting is in 4.0, and I know it wouldn’t be compatible with the UpdatePanel, if you were planning on using that.

    Is there a reason why you want to keep the 2.0 rendering? Just fear of regressions, or do you have any known actual regressions?

    XHTML setting: http://msdn.microsoft.com/en-us/library/ms178159.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just updated an app from .NET 2.0 to .NET 4.0 and I have
Background Information Our application reads/writes from 3 components: ASP.NET MVC 3 customer front end
We have a huge ASP.NET web application which needs to be deployed to LIVE
I have a scenario wherein my ASP.NET MVC 3 web application hosted in IIS
We have a .NET web application installed on our server at the location: C:\Inetpub\fmtool\
We have an ASP.NET 3.5 application that has been in production for over a
I have an ASP.NET application that does a large database read. It loads up
I have an ASP.NET MVC application where I need to allow to customers configure
We have an ASP Classic legacy web application , which is hosted in Windows
Our company releases updates of our rich client application (written mainly with ASP.NET, WCF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.