Click here to Skip to main content
16,007,843 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Foreign Key in DataGrid Pin
Ramasubramaniam23-Aug-06 8:02
Ramasubramaniam23-Aug-06 8:02 
GeneralRe: Foreign Key in DataGrid Pin
Dayekh23-Aug-06 22:33
Dayekh23-Aug-06 22:33 
GeneralRe: Foreign Key in DataGrid Pin
Dayekh24-Aug-06 0:38
Dayekh24-Aug-06 0:38 
Questionusing EntLibJune2005 with VS2005 Pin
Praveen_S23-Aug-06 3:43
Praveen_S23-Aug-06 3:43 
AnswerRe: using EntLibJune2005 with VS2005 Pin
ToddHileHoffer23-Aug-06 3:51
ToddHileHoffer23-Aug-06 3:51 
GeneralRe: using EntLibJune2005 with VS2005 Pin
Praveen_S23-Aug-06 18:37
Praveen_S23-Aug-06 18:37 
QuestionHow to save 'Migración Líneas 1&2' in SQL SERVER 2000 Pin
BalasahebK23-Aug-06 3:10
BalasahebK23-Aug-06 3:10 
Questionlooping through arraylist Pin
playout23-Aug-06 2:42
playout23-Aug-06 2:42 
Hi,

I am having problems looping through an array.

I have an arraylist, that has no values to it, once I start a while loop that fills a datareader. Once I get a specific value from a field in the database, I write that value to the arraylist. Once the reader is done, I also want to display the results from the arraylist in a label.

My code:

<br />
dim arrErrors as new Arraylist()<br />
<br />
While (objDr.Read())<br />
                        objInvoice = New Invoice()<br />
                        objInvoice.InvoiceDate = objDr(0).ToString<br />
                        objInvoice.InvoiceNumber = objDr(1).ToString<br />
                        objInvoice.InvoiceSubHead = objDr(2).ToString<br />
                        objInvoice.InvoiceTotal = objDr(3).ToString<br />
                        objInvoice.InvoiceSignoffBy = objDr(4).ToString<br />
                        objInvoice.InvoiceSubmittedBy = objDr(5).ToString<br />
<br />
<br />
                        If objInvoice.InvoiceSubmittedBy = "" Then<br />
                            arrErrors.Add("An error occured retrieving record" & objInvoice.InvoiceNumber)<br />
<br />
                        Else<br />
                            <br />
                          objInvoiceDetails.Add(objInvoice)<br />
                        End If<br />
<br />
                    End While<br />
'' I need code here to display the arraylist in an label<br />
<br />


Would really appreciate the help.
AnswerRe: looping through arraylist Pin
ToddHileHoffer23-Aug-06 3:05
ToddHileHoffer23-Aug-06 3:05 
GeneralRe: looping through arraylist Pin
playout23-Aug-06 4:03
playout23-Aug-06 4:03 
GeneralRe: looping through arraylist Pin
_AK_23-Aug-06 4:12
_AK_23-Aug-06 4:12 
GeneralRe: looping through arraylist Pin
playout23-Aug-06 4:23
playout23-Aug-06 4:23 
GeneralRe: looping through arraylist Pin
_AK_23-Aug-06 4:27
_AK_23-Aug-06 4:27 
GeneralRe: looping through arraylist Pin
playout23-Aug-06 4:33
playout23-Aug-06 4:33 
GeneralRe: looping through arraylist Pin
_AK_23-Aug-06 18:37
_AK_23-Aug-06 18:37 
GeneralRe: looping through arraylist [modified] Pin
ToddHileHoffer23-Aug-06 4:22
ToddHileHoffer23-Aug-06 4:22 
GeneralRe: looping through arraylist Pin
playout23-Aug-06 4:37
playout23-Aug-06 4:37 
GeneralRe: looping through arraylist [modified] Pin
ToddHileHoffer23-Aug-06 4:49
ToddHileHoffer23-Aug-06 4:49 
GeneralRe: looping through arraylist Pin
playout23-Aug-06 7:39
playout23-Aug-06 7:39 
QuestionArray in Javascript page Pin
Irshad Sulaimani23-Aug-06 2:19
Irshad Sulaimani23-Aug-06 2:19 
AnswerRe: Array in Javascript page Pin
Not Active23-Aug-06 3:54
mentorNot Active23-Aug-06 3:54 
QuestionHi datagrid experts....... Pin
Nagraj Naik23-Aug-06 1:58
Nagraj Naik23-Aug-06 1:58 
QuestionHow to get the disk space usage of server Pin
Amit Agarrwal23-Aug-06 1:56
Amit Agarrwal23-Aug-06 1:56 
Questionhow to configuration asp.net in vs2005 ? Pin
hdv21223-Aug-06 1:53
hdv21223-Aug-06 1:53 
AnswerRe: how to configuration asp.net in vs2005 ? Pin
Naveed Kamboh23-Aug-06 3:09
Naveed Kamboh23-Aug-06 3:09 

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.