Re: How to use DataSets without DataBinding?
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Thu, 7 Jun 2007 09:48:08 -0400
Westicle wrote:
Hi all
I am creating a function that is called after a user logs in to my
app; I want the function to use their UPN to return certain details
from a DataSet and then store the values in Session variables so I
can use them throughout the users session. I can access data with a
DataSet and bind it to all sorts of controls until the cows come home
but I have no idea how to pull out individual values from a DataSet.
There was no way for you to know it (except maybe by browsing through
some of the previous questions in this newsgroup before posting yours -
always a recommended practice) , but this is a classic ADO newsgroup.
ADO.Net bears very little resemblance to classic ADO so, while you may
be lucky enough to find a dotnet-knowledgeable person here who can
answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest microsoft.public.dotnet.framework.adonet.
To answer your question, you need to access the relevant datatable in
the dataset (there could be more than one) and then access the DataRows
collection of the datatable to get to the particular DataRow object you
want to work with. The documentation for the DataTable class can be
found here:
http://msdn2.microsoft.com/en-us/library/9186hy08(VS.71).aspx
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Prev by Date: Re: tweak of A2002 Enterprise Dev Handbook fails?
- Next by Date: Re: To the person who answered my previous query....
- Previous by thread: Recordset.AbsolutePage - strange problem
- Next by thread: Re: How to use DataSets without DataBinding?
- Index(es):
Relevant Pages
|