Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Populate from a Table..?

Reply
Thread Tools

Populate from a Table..?

 
 
Kent Johnson
Guest
Posts: n/a
 
      11-23-2003
Hi all,

I'm trying to give 180 sessionvariables a value from a table.
I have tried:

Dim MyObj As Object,intCnt As Integer, intTest As Integer
For intCnt = 0 To 180
MyObj = myDS.Tables(0).Rows(intCnt).Item("myField")
intTest = MyObj
Session(intCnt.ToString) = intTest
Next

What have I missed?

/Kent J.


 
Reply With Quote
 
 
 
 
Sergey Poberezovskiy
Guest
Posts: n/a
 
      11-24-2003
You missed .Value:

Session(intCnt.ToString) = myDS.Tables(0).Rows
(intCnt).Item("myField").Value

>-----Original Message-----
>Hi all,
>
>I'm trying to give 180 sessionvariables a value from a

table.
>I have tried:
>
>Dim MyObj As Object,intCnt As Integer, intTest As Integer
> For intCnt = 0 To 180
> MyObj = myDS.Tables(0).Rows(intCnt).Item

("myField")
> intTest = MyObj
> Session(intCnt.ToString) = intTest
> Next
>
>What have I missed?
>
>/Kent J.
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
EAP type list doesn't populate with anything =?Utf-8?B?Z3MzMDBib2k=?= Wireless Networking 0 07-11-2005 08:51 PM
Best way to recursively populate a tree based on SQL Server 2000 backend Mark ASP .Net 9 05-28-2005 08:54 PM
populate one list box with selected values from another list box steven.cooper@infocision.com ASP .Net 1 03-12-2005 11:29 PM
Populate a popup window with clickable records from an Access DB and upon clicking, populate a selectbox on the original webpage with the clicked record Enjoy Life ASP General 2 02-23-2005 10:48 PM
How to populate a checkbox from a database Lamine Darbouche ASP .Net 1 02-16-2004 02:02 PM



Advertisments