Microsoft KB Archive/941155

= An ASP.NET 2.0 Web application does not send actual values to the parameters of the Update method of the data source when you use data binding to update data in a templated control =

Article ID: 941155

Article Last Modified on 10/12/2007

-

APPLIES TO


 * Microsoft ASP.NET 2.0

-



SYMPTOMS
In an ASP.NET 2.0 Web application, you use data binding to update data. However, the application does not send actual values to the parameters of the data source Update method. Instead, the application sends 0 values or null values to the data source.

This problem occurs if the following conditions are true:
 * The control that is used to update data is nested in another control.
 * These two controls are in a templated control.

Note This problem does not occur when you use data binding to view data.



CAUSE
This problem occurs because of a limitation of ASP.NET 2.0. If the two conditions that the &quot;Symptoms” section mentions are true when you use data binding to update data, ASP.NET 2.0 cannot parse the control tree. The operation stops when ASP.NET 2.0 is parsing the first complex control.



RESOLUTION
To resolve this problem, do not use nested ASP.NET controls in templated controls.

Keywords: kbexpertiseadvanced kbtshoot kbprb KB941155

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.