Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Updating null value fields in DetailsView

This is a discussion on Updating null value fields in DetailsView within the Microsoft .NET forums, part of the Programming Talk category; Hi I have master/detail web forms and form1 has a GridView and form2 has a DetailsView. I have some filelds ...

  1. #1
    ngk
    ngk is offline Junior Member Array
    Join Date
    Apr 2006
    Answers
    1

    Updating null value fields in DetailsView

    Hi

    I have master/detail web forms and form1 has a GridView and form2 has a DetailsView. I have some filelds on the DetailView with null values in some records and when I try to update those records by entering some data, DetailsView is not updating the backend database. I am not getting any eorror message either. If any record with all fields populated with some values when initially displayed in DetailsView gets updated fine.

    I am using SQLServer datasource and the table accepts Null values in the fields that are giving problem.

    I am hoping someone would help me out with this problem.

    Thanks in advance.


  2. #2
    techvinny is online now Moderator Array
    Join Date
    Dec 2010
    Answers
    56
    hi..its a common problem when people use DetailsView and are not able to update the NULL value fields through it.
    While configuring the DataSource, please be sure to uncheck the "Use Optimistic Concurrency" option under the Advanced Settings.
    Your updates on NULL value fields should work fine now.

    HTH!!!


Latest Article

Network Security Risk Assessment and Measurement

Read More...