Click here to Skip to main content
15,890,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 13:57
VB Noobie31-Mar-09 13:57 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 14:19
protectorChristian Graus31-Mar-09 14:19 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 14:54
VB Noobie31-Mar-09 14:54 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 15:14
protectorChristian Graus31-Mar-09 15:14 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 15:43
VB Noobie31-Mar-09 15:43 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 17:13
protectorChristian Graus31-Mar-09 17:13 
Generalupdating a database Pin
c#_novice31-Mar-09 12:23
c#_novice31-Mar-09 12:23 
GeneralRe: updating a database Pin
Colin Angus Mackay31-Mar-09 12:53
Colin Angus Mackay31-Mar-09 12:53 
c#_novice wrote:
Im gettin an argumentnull exception


It would be good to know where you are getting that exception as it makes it easier to help you. However, there are a limited number of places you could get that exception in the code you've shown.

My guess is that the ArgumentNullException was triggered on this line:
Usage = retail_ProductsTableAdapter.Update(changes);


The reason would be that changes is null. Which means that stocktrackerDataSet.GetChanges() returned null.

I'm therefore guessing further that GetChanges is either broken or is supposed to return null if there are no changes. If it is the latter then the solution is to check if changes is null, and if not then pass the changes through to the database.


QuestionExecute File.exe From Resource HELP ME Pin
ajusagmar31-Mar-09 11:01
ajusagmar31-Mar-09 11:01 
AnswerRe: Execute File.exe From Resource HELP ME Pin
Garth J Lancaster31-Mar-09 11:36
professionalGarth J Lancaster31-Mar-09 11:36 
QuestionUploading a file but zero bytes are shown Pin
T_Teef31-Mar-09 10:49
T_Teef31-Mar-09 10:49 
AnswerRe: Uploading a file but zero bytes are shown Pin
agent00zelda31-Mar-09 10:55
agent00zelda31-Mar-09 10:55 
QuestionTo string or not to string Pin
Skymir31-Mar-09 10:14
Skymir31-Mar-09 10:14 
AnswerRe: To string or not to string Pin
agent00zelda31-Mar-09 10:58
agent00zelda31-Mar-09 10:58 
GeneralRe: To string or not to string Pin
Garth J Lancaster31-Mar-09 11:37
professionalGarth J Lancaster31-Mar-09 11:37 
GeneralRe: To string or not to string Pin
Skymir31-Mar-09 13:58
Skymir31-Mar-09 13:58 
AnswerRe: To string or not to string Pin
Luc Pattyn31-Mar-09 16:33
sitebuilderLuc Pattyn31-Mar-09 16:33 
GeneralRe: To string or not to string Pin
Skymir1-Apr-09 2:48
Skymir1-Apr-09 2:48 
QuestionHow to make Clean publish ??? Pin
resha12331-Mar-09 10:09
resha12331-Mar-09 10:09 
AnswerRe: How to make Clean publish ??? Pin
Mycroft Holmes31-Mar-09 12:02
professionalMycroft Holmes31-Mar-09 12:02 
QuestionNo WMI query results from code, but results from WMIC? Pin
bbranded31-Mar-09 8:49
bbranded31-Mar-09 8:49 
AnswerRe: No WMI query results from code, but results from WMIC? Pin
bbranded3-Apr-09 10:32
bbranded3-Apr-09 10:32 
Questioncarry textbox pointer forward or back Pin
behzadcp31-Mar-09 6:35
professionalbehzadcp31-Mar-09 6:35 
AnswerRe: carry textbox pointer forward or back Pin
0x3c031-Mar-09 6:45
0x3c031-Mar-09 6:45 
GeneralRe: carry textbox pointer forward or back Pin
behzadcp31-Mar-09 7:13
professionalbehzadcp31-Mar-09 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.