Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 25th, 2006, 07:31 AM
Registered User
 
Join Date: Oct 2006
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old December 6th, 2006, 01:39 PM
Registered User
 
Join Date: Dec 2006
Location: , , .
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
Reply With Quote
  #3 (permalink)  
Old December 6th, 2006, 03:47 PM
Registered User
 
Join Date: Oct 2006
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:27 AM.


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