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

C#

 
GeneralRe: Variable error Pin
Melanius26-Dec-03 4:59
Melanius26-Dec-03 4:59 
QuestionHow do I read the Identity Column using ADO.NET Pin
derik_konark26-Dec-03 4:24
derik_konark26-Dec-03 4:24 
Need some help :
When I tried to read Identity column with ADO.NET DataReader, I'm getting the following error::=>
"The data value could not be converted for reasons other than sign mismatch or data overflow.For example, the data was corrupted in the data store but the row was still retrievable."..

The Code which I wrote is described below:
oDR is data reader
while(oDR.Read())
{ListItem oItem = new ListItem(oDR.GetString(2),oDR.GetInt32(0).ToString());
wsdrpdwnlst1.Items.Add(oItem);} //wsdrpdwnlst1 is a list box
Note : (where oDR.GetInt32(0) supposed to give me the identity column.) but I am getting the above error. I need the help at the earliest if possible.
Cry | :(( Cry | :((
AnswerRe: How do I read the Identity Column using ADO.NET Pin
LongRange.Shooter30-Dec-03 10:01
LongRange.Shooter30-Dec-03 10:01 
GeneralProvideProperty Attribute Problem Pin
Takeru Koushirou26-Dec-03 2:22
Takeru Koushirou26-Dec-03 2:22 
GeneralRe: ProvideProperty Attribute Problem Pin
Alex Korchemniy26-Dec-03 7:29
Alex Korchemniy26-Dec-03 7:29 
GeneralRe: ProvideProperty Attribute Problem Pin
Takeru Koushirou26-Dec-03 8:07
Takeru Koushirou26-Dec-03 8:07 
GeneralAdd Column to Access database using OleDB Pin
Wouter Van Ranst26-Dec-03 1:32
Wouter Van Ranst26-Dec-03 1:32 
GeneralRe: Add Column to Access database using OleDB Pin
Heath Stewart27-Dec-03 5:09
protectorHeath Stewart27-Dec-03 5:09 
GeneralRe: Add Column to Access database using OleDB Pin
Wouter Van Ranst27-Dec-03 6:56
Wouter Van Ranst27-Dec-03 6:56 
GeneralRe: Add Column to Access database using OleDB Pin
Heath Stewart27-Dec-03 7:01
protectorHeath Stewart27-Dec-03 7:01 
GeneralRe: Add Column to Access database using OleDB Pin
Wouter Van Ranst27-Dec-03 7:23
Wouter Van Ranst27-Dec-03 7:23 
QuestionSocket Program>????? Pin
h_wing25-Dec-03 22:45
h_wing25-Dec-03 22:45 
AnswerRe: Socket Program>????? Pin
Heath Stewart27-Dec-03 5:07
protectorHeath Stewart27-Dec-03 5:07 
Generalsimple generic add,mod,delete Pin
gotohellthen25-Dec-03 21:59
gotohellthen25-Dec-03 21:59 
GeneralRe: simple generic add,mod,delete Pin
Heath Stewart27-Dec-03 5:02
protectorHeath Stewart27-Dec-03 5:02 
Generaldetect connection Pin
heba_zien25-Dec-03 12:05
heba_zien25-Dec-03 12:05 
GeneralPrinting Page Number Pin
Mazdak25-Dec-03 9:07
Mazdak25-Dec-03 9:07 
GeneralRe: Printing Page Number Pin
Heath Stewart27-Dec-03 5:00
protectorHeath Stewart27-Dec-03 5:00 
GeneralRe: Printing Page Number Pin
Mazdak27-Dec-03 8:50
Mazdak27-Dec-03 8:50 
GeneralRe: Printing Page Number Pin
Heath Stewart27-Dec-03 11:20
protectorHeath Stewart27-Dec-03 11:20 
GeneralRe: Printing Page Number Pin
Mazdak27-Dec-03 19:35
Mazdak27-Dec-03 19:35 
GeneralClicking through transparent windows Pin
Anonymous25-Dec-03 5:06
Anonymous25-Dec-03 5:06 
GeneralRe: Clicking through transparent windows Pin
Takeru Koushirou26-Dec-03 8:12
Takeru Koushirou26-Dec-03 8:12 
Generalmulti-thread multicast server Pin
GTR3425-Dec-03 1:19
GTR3425-Dec-03 1:19 
GeneralRe: multi-thread multicast server Pin
Heath Stewart27-Dec-03 4:56
protectorHeath Stewart27-Dec-03 4:56 

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.