Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2006, 07:31 AM
Registered User
 
Join Date: Oct 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default update/delete fails when row contains null values

Hello ... I have a form that is straight forward, with little code behind (code is for a more friendly error msg when attempting insert,update, delete from a detailsview). I have had this problem before and the usual fix of reconfiguring the sqldataAdapter and detailsview does not work. The problem is when I have a row that contains column with a null value it will not update or delete. I can insert the row with a column that contains a null value, but cannot update or delete it. There is no error or exception thrown, the row simply fails to update or delete.

I am curious to know if anyone else is having this problem? If so what did you do to fix it?

Any information is certainly appreciated ... Thanks!

Dave

 
Old December 6th, 2006, 01:39 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

davej,
Were you able to find a solution to this problem? I am having the same problem and have run out of options.
Thanks,
Angela
 
Old December 6th, 2006, 03:47 PM
Registered User
 
Join Date: Oct 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Angela ... I really didn't solve the problem ... but did a work around. I check the fields and plug them with " " a space. Everything works fine when I do this. Like I said, I really didn't fix it but worked around it.
Hope this helps!
Dave






Similar Threads
Thread Thread Starter Forum Replies Last Post
Fails To Update sirmilt BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 12 May 8th, 2008 11:16 AM
delete null records stealthdevil Access VBA 3 January 23rd, 2007 04:48 PM
How to update or delete a row in CSV file parthsar5 Pro VB 6 0 April 7th, 2006 03:30 AM
odbc update fails iecanfly MySQL 0 February 22nd, 2005 08:23 PM
how to delete a row when click delete hyperlink naveenkumarg1 Pro JSP 1 August 16th, 2004 01:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.