ASP.NET - FormView - Datasource updates only some of the fields

I have an ASP.NET page that contains formview and ObjectDataSource. On the page, I have only 4 fields mapped to the fields in my data source. My data source contains 10 fields. When I invoke the update, it sets 6 fields for which I do not bind to a null value. The only way to find this is to add hidden fields for 6 unrelated fields and bind them to the data source.

Anyway, without using hidden fields? I would think that he should only update the fields to which you are attached, and ignore others.

Any suggestions?

Thank.

+3
source share
1

, .

, , . SQL.

0

Source: https://habr.com/ru/post/1763874/


All Articles