Click here to Skip to main content
16,008,942 members
Home / Discussions / C#
   

C#

 
QuestionOnPaint() What am I missing? Pin
albean15-Aug-02 17:49
albean15-Aug-02 17:49 
AnswerRe: OnPaint() What am I missing? Pin
Ray Cassick15-Aug-02 17:58
Ray Cassick15-Aug-02 17:58 
AnswerRe: OnPaint() What am I missing? Pin
Nish Nishant15-Aug-02 19:09
sitebuilderNish Nishant15-Aug-02 19:09 
GeneralRe: OnPaint() What am I missing? Pin
albean15-Aug-02 19:30
albean15-Aug-02 19:30 
GeneralRe: OnPaint() What am I missing? Pin
Nish Nishant15-Aug-02 22:32
sitebuilderNish Nishant15-Aug-02 22:32 
AnswerRe: OnPaint() What am I missing? Pin
James T. Johnson16-Aug-02 0:52
James T. Johnson16-Aug-02 0:52 
QuestionHow to add a new record and get an autonumber field value Pin
Luis Alonso Ramos15-Aug-02 17:31
Luis Alonso Ramos15-Aug-02 17:31 
AnswerRe: How to add a new record and get an autonumber field value Pin
albean15-Aug-02 18:46
albean15-Aug-02 18:46 
In 1 Step? I can only do it in 2 steps:
I'm guessing that you are using an identity column.
If this is true then @@IDENTITY will give you the last identity inserted.

(Well, it gets some what complicated if there are triggers that are inserting rows into other tables that have identity columns so you need to watch out for that.)


I don't know much about the DataAdapter but you might want to run it and see what SQL it generates. I think it creates some stored procs that will return newly inserted records.



GeneralRe: How to add a new record and get an autonumber field value Pin
Luis Alonso Ramos15-Aug-02 22:28
Luis Alonso Ramos15-Aug-02 22:28 
GeneralRe: How to add a new record and get an autonumber field value Pin
James T. Johnson16-Aug-02 1:15
James T. Johnson16-Aug-02 1:15 
GeneralRe: How to add a new record and get an autonumber field value Pin
Nnamdi Onyeyiri16-Aug-02 1:51
Nnamdi Onyeyiri16-Aug-02 1:51 
GeneralRe: How to add a new record and get an autonumber field value Pin
James T. Johnson16-Aug-02 1:54
James T. Johnson16-Aug-02 1:54 
GeneralRe: How to add a new record and get an autonumber field value Pin
Luis Alonso Ramos16-Aug-02 6:00
Luis Alonso Ramos16-Aug-02 6:00 
GeneralRe: How to add a new record and get an autonumber field value Pin
Luis Alonso Ramos16-Aug-02 6:17
Luis Alonso Ramos16-Aug-02 6:17 
GeneralRe: How to add a new record and get an autonumber field value Pin
James T. Johnson16-Aug-02 8:20
James T. Johnson16-Aug-02 8:20 
GeneralRe: How to add a new record and get an autonumber field value Pin
Luis Alonso Ramos17-Aug-02 8:20
Luis Alonso Ramos17-Aug-02 8:20 
GeneralControls not appearing correctly Pin
Luis Alonso Ramos15-Aug-02 17:23
Luis Alonso Ramos15-Aug-02 17:23 
GeneralRe: Controls not appearing correctly Pin
TigerNinja_15-Aug-02 18:57
TigerNinja_15-Aug-02 18:57 
GeneralRe: Controls not appearing correctly Pin
Luis Alonso Ramos15-Aug-02 22:31
Luis Alonso Ramos15-Aug-02 22:31 
GeneralNice Link :) Pin
leppie15-Aug-02 15:20
leppie15-Aug-02 15:20 
GeneralRe: Nice Link :) Pin
David Stone15-Aug-02 19:11
sitebuilderDavid Stone15-Aug-02 19:11 
GeneralRe: Nice Link :) Pin
Nnamdi Onyeyiri16-Aug-02 0:49
Nnamdi Onyeyiri16-Aug-02 0:49 
GeneralPassing null to extern functions Pin
leppie15-Aug-02 15:14
leppie15-Aug-02 15:14 
GeneralRe: Passing null to extern functions Pin
albean15-Aug-02 18:02
albean15-Aug-02 18:02 
GeneralRe: Passing null to extern functions Pin
leppie16-Aug-02 0:27
leppie16-Aug-02 0:27 

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.