Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Inline data-binding expressions in a templated web user control disappear after you generate a local resource for an ASP.NET 2.0 web application


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You create a Microsoft ASP.NET 2.0-based web application in Microsoft Visual Studio.
  • You have the Microsoft .NET Framework 2.0 installed on the computer.
  • You create a templated ASP.NET web user control (.ascx file).
  • You create a web form that uses a server control to support the templated user control. For example, you use the Repeater control to include the user control.
  • You use inline data-binding expressions to specify the property for the user control.
  • In the design view, on the Tools menu, you click Generate Local Resource to generate a local resource for the Web application.
In this scenario, you find that the inline data-binding expressions disappear after you switch to the source view.

For example, you create a user control that is named Control1, and you put the user control inside a repeater server control, as in the following example.
<asp:Repeater ID="repeater1" runat="server">

<ItemTemplate>

<test:Control1 ID="ucControl1" runat="server" Control1Text='<%#DataBinder.Eval(Container.DataItem, "Test")%>' />

<span> - </span>

<a href="#"><%#DataBinder.Eval(Container.DataItem, "TestData")%></a>

<br />

</ItemTemplate>

</asp:Repeater>
Then, you use the Generate Local Resource tool to create a local resource. In this case, the code changes to the following.
<asp:Repeater ID="repeater1" runat="server">

<ItemTemplate>

<test:Control1 ID="ucControl1" runat="server" />

<span> - </span>

<a href="#"><%#DataBinder.Eval(Container.DataItem, "TestData")%></a>

<br />

</ItemTemplate>

</asp:Repeater>
You find that some inline data-binding expressions in the user control disappear.

↑ Back to the top


Cause

The issue occurs because of an error in System.design.dll in the .NET Framework 2.0.

Note This issue also exists in Microsoft Visual Studio 2010. Even if you use Visual Studio 2010 to target Microsoft ASP.NET 3.5, you may encounter this issue because System.design.dll version 4.0 is used in that scenario. The hotfix that is described in this article does not apply to Visual Studio 2010.

For more information about ASP.NET inline expressions, please see the following article:
976112� Introduction to ASP.NET inline expressions in the .NET Framework

↑ Back to the top


Resolution

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have the Microsoft .NET Framework 3.5 Service Pack 1 (SP1) installed to apply this hotfix. The .NET Framework 3.5 SP1 contains the .NET Framework 2.0 Service Pack 2.�

Additionally, the computer must be running one of the following operating systems:
  • Windows Vista Service Pack 2 (SP2)
  • Windows Server 2008 Service Pack 2 (SP2)

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix package does not replace a previously released hotfix package.

File information

The global version of this hotfix package uses a Microsoft Windows Installer package to install the hotfix package. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of Windows Vista and of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.44765,062,65602-Sep-201010:52x86
For all supported x64-based versions of Windows Vista and of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.44765,062,65602-Sep-201010:52x64
For all supported IA64-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.44765,062,65602-Sep-201010:51IA-64

↑ Back to the top


Workaround

To work around the issue, you have to convert the user controls (.ascx files) to server controls (.cs or .vb files). For more information about how to do this, visit the following MSDN webpages:

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

Additional file information for Windows Vista and for Windows Server 2008

Additional file information for all supported x86-based versions of Windows Vista and of Windows Server 2008

Collapse this tableExpand this table
File nameMsil_system.design_b03f5f7f11d50a3a_6.0.6002.22480_none_9e60534f1d10ae1c.manifest
File versionNot Applicable
File size6,393
Date (UTC)02-Sep-2010
Time (UTC)17:33
File nameUpdate.mum
File versionNot Applicable
File size38,612
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_04d40963fa93febd045dbe3ada9b8e81_b03f5f7f11d50a3a_6.0.6002.22480_none_d7c10e49c244d89b.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_13e80b18b2073d8186a205232d9cc14c_b03f5f7f11d50a3a_6.0.6002.22480_none_32f041293263cbf6.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_1b7e2b8d533b39c2e2c392ce25169c3a_b03f5f7f11d50a3a_6.0.6002.22480_none_5979a5d6f1db9e7a.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_1b86e92566f7101b9d7b1ddb714c02b1_b03f5f7f11d50a3a_6.0.6002.22480_none_41d473b02c6c2679.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_1d95342c7a9210f926b5acfd428bfd2f_b03f5f7f11d50a3a_6.0.6002.22480_none_9d8edbdf1ce7ccdc.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_20df901acf324dcf68d56d4f01609a90_b03f5f7f11d50a3a_6.0.6002.22480_none_5b7ae4c203b12e40.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_22818f4514e8f4f40b73a60d1c10a0cc_b03f5f7f11d50a3a_6.0.6002.22480_none_7e5ceaef8e5d1414.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_2347b9c9e2a65d303f8de3e0bb4e0631_b03f5f7f11d50a3a_6.0.6002.22480_none_9a0a82e48d456f77.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_2e2c376c863f5e81efdbbee62ea2d8ea_b03f5f7f11d50a3a_6.0.6002.22480_none_2b2f9a6fa05c7f7d.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_35273af8756526ae386baa487815a58d_b03f5f7f11d50a3a_6.0.6002.22480_none_b108dfa3f7fcd529.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_3f1f115bdf14371db26c9ab1bfd15e76_b03f5f7f11d50a3a_6.0.6002.22480_none_db849531bbc1bd5e.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_5315c94c81b3c485aacf83689ed978e3_b03f5f7f11d50a3a_6.0.6002.22480_none_5b92614cbbb9eda6.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_618345df010809fa6ae54aabd61ba45a_b03f5f7f11d50a3a_6.0.6002.22480_none_68d892721cb5319e.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_64e8f594f560250d840b68bb15e5f178_b03f5f7f11d50a3a_6.0.6002.22480_none_cbdd3d2f9ab28b7a.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_6f0edb53fbf588e55659ecffb6bd9e96_b03f5f7f11d50a3a_6.0.6002.22480_none_a6921040c9685e8f.manifest
File versionNot Applicable
File size622
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_8579b058157f5fab9479344f16ac232b_b03f5f7f11d50a3a_6.0.6002.22480_none_b521d801e3983da8.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_a5d8c9e329d19ff671568eab5c6a5472_b03f5f7f11d50a3a_6.0.6002.22480_none_0f5fe634c4c32ed8.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_a61bc339a551bd9933eea872ad21580a_b03f5f7f11d50a3a_6.0.6002.22480_none_5cd633359d0f463d.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_b41beafa176b4abaf7f51652bf1baa87_b03f5f7f11d50a3a_6.0.6002.22480_none_592b5894f9716ec1.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_dae73240fcb3de13882f54942989bc8e_b03f5f7f11d50a3a_6.0.6002.22480_none_fef158550fc3da34.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_dcee4e542709efeacea3e5c1a7312cd0_b03f5f7f11d50a3a_6.0.6002.22480_none_5ec88e8534b15642.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_e0d46e04b87b6c4677d74e81d52b796e_b03f5f7f11d50a3a_6.0.6002.22480_none_2f4943989f77709c.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_ef4e4055ee348295ee6f045d2d2b5035_b03f5f7f11d50a3a_6.0.6002.22480_none_42148d2e554dd9f4.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_f706f2b9c5a33865bdee972965ced1c9_b03f5f7f11d50a3a_6.0.6002.22480_none_a1acbf314c7633f8.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameX86_ff976b3e22376517f256f6a422125b83_b03f5f7f11d50a3a_6.0.6002.22480_none_6be16a5b8052e81d.manifest
File versionNot Applicable
File size630
Date (UTC)02-Sep-2010
Time (UTC)22:17

Additional file information for all supported x64-based versions of Windows Vista and of Windows Server 2008

Collapse this tableExpand this table
File nameAmd64_04d40963fa93febd045dbe3ada9b8e81_b03f5f7f11d50a3a_6.0.6002.22480_none_33dfa9cd7aa249d1.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_13e80b18b2073d8186a205232d9cc14c_b03f5f7f11d50a3a_6.0.6002.22480_none_8f0edcaceac13d2c.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_1b7e2b8d533b39c2e2c392ce25169c3a_b03f5f7f11d50a3a_6.0.6002.22480_none_b598415aaa390fb0.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_1b86e92566f7101b9d7b1ddb714c02b1_b03f5f7f11d50a3a_6.0.6002.22480_none_9df30f33e4c997af.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_1d95342c7a9210f926b5acfd428bfd2f_b03f5f7f11d50a3a_6.0.6002.22480_none_f9ad7762d5453e12.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_20df901acf324dcf68d56d4f01609a90_b03f5f7f11d50a3a_6.0.6002.22480_none_b7998045bc0e9f76.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_22818f4514e8f4f40b73a60d1c10a0cc_b03f5f7f11d50a3a_6.0.6002.22480_none_da7b867346ba854a.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_2347b9c9e2a65d303f8de3e0bb4e0631_b03f5f7f11d50a3a_6.0.6002.22480_none_f6291e6845a2e0ad.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_2e2c376c863f5e81efdbbee62ea2d8ea_b03f5f7f11d50a3a_6.0.6002.22480_none_874e35f358b9f0b3.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_35273af8756526ae386baa487815a58d_b03f5f7f11d50a3a_6.0.6002.22480_none_0d277b27b05a465f.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_3f1f115bdf14371db26c9ab1bfd15e76_b03f5f7f11d50a3a_6.0.6002.22480_none_37a330b5741f2e94.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_5315c94c81b3c485aacf83689ed978e3_b03f5f7f11d50a3a_6.0.6002.22480_none_b7b0fcd074175edc.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_618345df010809fa6ae54aabd61ba45a_b03f5f7f11d50a3a_6.0.6002.22480_none_c4f72df5d512a2d4.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_64e8f594f560250d840b68bb15e5f178_b03f5f7f11d50a3a_6.0.6002.22480_none_27fbd8b3530ffcb0.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_6f0edb53fbf588e55659ecffb6bd9e96_b03f5f7f11d50a3a_6.0.6002.22480_none_02b0abc481c5cfc5.manifest
File versionNot Applicable
File size624
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_84f815cdb7c839ed122c2f39d67a1e4a_b03f5f7f11d50a3a_6.0.6002.22480_none_42d9fb1261e3c31c.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_8579b058157f5fab9479344f16ac232b_b03f5f7f11d50a3a_6.0.6002.22480_none_114073859bf5aede.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_a5d8c9e329d19ff671568eab5c6a5472_b03f5f7f11d50a3a_6.0.6002.22480_none_6b7e81b87d20a00e.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_a61bc339a551bd9933eea872ad21580a_b03f5f7f11d50a3a_6.0.6002.22480_none_b8f4ceb9556cb773.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_b41beafa176b4abaf7f51652bf1baa87_b03f5f7f11d50a3a_6.0.6002.22480_none_b549f418b1cedff7.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_dae73240fcb3de13882f54942989bc8e_b03f5f7f11d50a3a_6.0.6002.22480_none_5b0ff3d8c8214b6a.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_dcee4e542709efeacea3e5c1a7312cd0_b03f5f7f11d50a3a_6.0.6002.22480_none_bae72a08ed0ec778.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_e0d46e04b87b6c4677d74e81d52b796e_b03f5f7f11d50a3a_6.0.6002.22480_none_8b67df1c57d4e1d2.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_ef4e4055ee348295ee6f045d2d2b5035_b03f5f7f11d50a3a_6.0.6002.22480_none_9e3328b20dab4b2a.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_f706f2b9c5a33865bdee972965ced1c9_b03f5f7f11d50a3a_6.0.6002.22480_none_fdcb5ab504d3a52e.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_ff976b3e22376517f256f6a422125b83_b03f5f7f11d50a3a_6.0.6002.22480_none_c80005df38b05953.manifest
File versionNot Applicable
File size632
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameAmd64_netfx-system.design_b03f5f7f11d50a3a_6.0.6002.22480_none_9f741dd772e494af.manifest
File versionNot Applicable
File size8,364
Date (UTC)02-Sep-2010
Time (UTC)16:59
File nameMsil_system.design_b03f5f7f11d50a3a_6.0.6002.22480_none_9e60534f1d10ae1c.manifest
File versionNot Applicable
File size6,393
Date (UTC)02-Sep-2010
Time (UTC)17:33
File nameUpdate.mum
File versionNot Applicable
File size39,016
Date (UTC)02-Sep-2010
Time (UTC)22:17

Additional file information for all supported IA64-based versions of Windows Server 2008

Collapse this tableExpand this table
File nameIa64_20df901acf324dcf68d56d4f01609a90_b03f5f7f11d50a3a_6.0.6002.22480_none_5b7c88b803af373c.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_2347b9c9e2a65d303f8de3e0bb4e0631_b03f5f7f11d50a3a_6.0.6002.22480_none_9a0c26da8d437873.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_2e2c376c863f5e81efdbbee62ea2d8ea_b03f5f7f11d50a3a_6.0.6002.22480_none_2b313e65a05a8879.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_35273af8756526ae386baa487815a58d_b03f5f7f11d50a3a_6.0.6002.22480_none_b10a8399f7fade25.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_618345df010809fa6ae54aabd61ba45a_b03f5f7f11d50a3a_6.0.6002.22480_none_68da36681cb33a9a.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_64e8f594f560250d840b68bb15e5f178_b03f5f7f11d50a3a_6.0.6002.22480_none_cbdee1259ab09476.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_6f0edb53fbf588e55659ecffb6bd9e96_b03f5f7f11d50a3a_6.0.6002.22480_none_a693b436c966678b.manifest
File versionNot Applicable
File size623
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_b41beafa176b4abaf7f51652bf1baa87_b03f5f7f11d50a3a_6.0.6002.22480_none_592cfc8af96f77bd.manifest
File versionNot Applicable
File size631
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_c4df2e7deecfef5f51070abc977f50e4_b03f5f7f11d50a3a_6.0.6002.22480_none_ad61071864e3a40b.manifest
File versionNot Applicable
File size629
Date (UTC)02-Sep-2010
Time (UTC)22:17
File nameIa64_netfx-system.design_b03f5f7f11d50a3a_6.0.6002.22480_none_e72132708760f599.manifest
File versionNot Applicable
File size8,342
Date (UTC)02-Sep-2010
Time (UTC)17:21
File nameMsil_system.design_b03f5f7f11d50a3a_6.0.6002.22480_none_9e60534f1d10ae1c.manifest
File versionNot Applicable
File size6,393
Date (UTC)02-Sep-2010
Time (UTC)17:33
File nameUpdate.mum
File versionNot Applicable
File size5,330
Date (UTC)02-Sep-2010
Time (UTC)22:17

↑ Back to the top


Keywords: kbpubtypekc, kbsurveynew, kbexpertiseadvanced, kbfix, kbhotfixserver, kbqfe, kbautohotfix, kberrmsg, KB2289553

↑ Back to the top

Article Info
Article ID : 2289553
Revision : 2
Created on : 10/5/2010
Published on : 10/5/2010
Exists online : False
Views : 466