Click here to Skip to main content
15,920,633 members
Home / Discussions / C#
   

C#

 
GeneralRe: string searching?? Pin
Skippums7-Dec-07 9:53
Skippums7-Dec-07 9:53 
GeneralRe: string searching?? Pin
pmarfleet7-Dec-07 10:40
pmarfleet7-Dec-07 10:40 
GeneralRe: string searching?? Pin
Pete O'Hanlon7-Dec-07 11:18
mvePete O'Hanlon7-Dec-07 11:18 
Generalevent for adding item in listbox Pin
Xmen Real 7-Dec-07 5:59
professional Xmen Real 7-Dec-07 5:59 
GeneralRe: event for adding item in listbox Pin
Anthony Mushrow7-Dec-07 6:22
professionalAnthony Mushrow7-Dec-07 6:22 
GeneralRe: event for adding item in listbox Pin
Xmen Real 7-Dec-07 14:42
professional Xmen Real 7-Dec-07 14:42 
Generaldatagridview cell colour Pin
arkiboys7-Dec-07 5:29
arkiboys7-Dec-07 5:29 
GeneralRe: datagridview cell colour Pin
Giorgi Dalakishvili7-Dec-07 5:44
mentorGiorgi Dalakishvili7-Dec-07 5:44 
Generalincrement by 1 Pin
eyeseetee7-Dec-07 4:41
eyeseetee7-Dec-07 4:41 
AnswerRe: increment by 1 Pin
Guffa7-Dec-07 4:51
Guffa7-Dec-07 4:51 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 4:58
eyeseetee7-Dec-07 4:58 
AnswerRe: increment by 1 Pin
Guffa7-Dec-07 5:04
Guffa7-Dec-07 5:04 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 5:10
eyeseetee7-Dec-07 5:10 
GeneralRe: increment by 1 Pin
Ian Shlasko7-Dec-07 5:21
Ian Shlasko7-Dec-07 5:21 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 5:26
eyeseetee7-Dec-07 5:26 
GeneralRe: increment by 1 Pin
Ian Shlasko7-Dec-07 5:41
Ian Shlasko7-Dec-07 5:41 
Thought so... Try putting it in an object instead of an int (Without casting), just for debugging, and see what type it is (Set a breakpoint and take a look at it). If it's a different numeric type, just use Convert.ToInt32() instead of a direct cast. If you're getting a DBNull or a non-numeric type, there's something wrong with your query.

Also, in light of the other branch of this thread, remember that this isn't going to modify the database. All you're doing is asking the database for a number, and incrementing your copy of that number. If you want to make a change to the database, that's a separate operation.
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 6:26
eyeseetee7-Dec-07 6:26 
GeneralRe: increment by 1 Pin
Ian Shlasko7-Dec-07 7:27
Ian Shlasko7-Dec-07 7:27 
GeneralRe: increment by 1 Pin
Ennis Ray Lynch, Jr.7-Dec-07 4:58
Ennis Ray Lynch, Jr.7-Dec-07 4:58 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 5:10
eyeseetee7-Dec-07 5:10 
GeneralYes Pin
Ennis Ray Lynch, Jr.7-Dec-07 5:13
Ennis Ray Lynch, Jr.7-Dec-07 5:13 
GeneralRe: Yes Pin
eyeseetee7-Dec-07 5:18
eyeseetee7-Dec-07 5:18 
GeneralRe: Yes Pin
Ennis Ray Lynch, Jr.7-Dec-07 5:19
Ennis Ray Lynch, Jr.7-Dec-07 5:19 
GeneralRe: Yes Pin
eyeseetee7-Dec-07 5:21
eyeseetee7-Dec-07 5:21 
GeneralRe: Yes Pin
Xmen Real 7-Dec-07 5:54
professional Xmen Real 7-Dec-07 5:54 

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.