Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: fill checkBoxList


Message #1 by "Hovik Melkomian" <melvik@b...> on Tue, 4 Mar 2003 12:27:21 +0430
Hovik,

With DataReader you would not use a For/Each. It would look something like
this:

System.Data.DataRow dr;
.
.
while (rdrMyReader.Read())
{
dr = this...  (Get the dataRow here)
(Perform an add to the checkListBox collection here using the dataRow
elements)
}

Regards
----- Original Message -----
From: "Hovik Melkomian" <melvik@b...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Tuesday, March 04, 2003 6:02 PM
Subject: [aspx_professional] Re: fill checkBoxList


> Tnx 4 responce, I use DataReader!
>
> Im waiting. :)
>
> ----- Original Message -----
> From: "Jerry Lanphear" <jerrylan@q...>
> To: "ASPX_Professional" <aspx_professional@p...>
> Sent: Tuesday, March 04, 2003 6:32 PM
> Subject: [aspx_professional] Re: fill checkBoxList
>
>
> First question is, how is the database being accessed?  Ie. DataReader,
> DataAdapter with DataSet...
>
> ----- Original Message -----
> From: "Hovik Melkomian" <melvik@b...>
> To: "ASPX_Professional" <aspx_professional@p...>
> Sent: Tuesday, March 04, 2003 12:57 AM
> Subject: [aspx_professional] fill checkBoxList
>
>
> > Hi there:
> > How can I fill checkBoxList text & values from Database with foreach-in
> > I use MS-SQL 2000 &  C#.
> >
> > please just tell me the foreach loop part, rest is mine :)
> >
> > Thanks in advance,
> > Hovik.
> >
> >
> >
> >
>
>
>
>
>
>
>


  Return to Index