Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Dataset filtering for Authenticated users

Reply
Thread Tools

Dataset filtering for Authenticated users

 
 
Nugs
Guest
Posts: n/a
 
      04-24-2004
Hey there guys, This is the first time I am working with forms
authentication. That said here is a really simple/stupid question:

Once the user is authenticated how do I filter the datasets for there
specific records. I have a common field in most of my tables in the DB
called 'MemberNum' it would be nice to be able to filter the datasets by
there member numbers.

I don't even need to know how to do it but rather what to do. Any advice or
resources on the process/subject would be a great help.

Nugs


 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      04-24-2004
Take a look at the DataView class. DataView has a RowFilter property
which you can use, for example:

DataView dv = new DataView();
dv.Table = myDataSet.Tables["Members"];
dv.RowFilter = "MemberNum = 1 OR MemberNum = 2";


HTH,

--
Scott
http://www.OdeToCode.com

On Sat, 24 Apr 2004 14:19:25 -0700, "Nugs" <(E-Mail Removed)>
wrote:

>Hey there guys, This is the first time I am working with forms
>authentication. That said here is a really simple/stupid question:
>
>Once the user is authenticated how do I filter the datasets for there
>specific records. I have a common field in most of my tables in the DB
>called 'MemberNum' it would be nice to be able to filter the datasets by
>there member numbers.
>
>I don't even need to know how to do it but rather what to do. Any advice or
>resources on the process/subject would be a great help.
>
>Nugs
>


 
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
How to Synchronize anonymous users with authenticated users using profiles? Rodusa ASP .Net 2 09-08-2005 08:12 PM
Finding Authenticated Users Wayne Carlaw ASP .Net 1 03-08-2005 11:17 PM
Prevent a page in an authenticated application from being authenticated Abhijit ASP General 0 04-12-2004 02:10 PM
Specifying all files except Login.aspx and Join.aspx are restricted to authenticated users SamIAm ASP .Net 1 12-04-2003 02:59 PM
Sessions of non-authenticated users expire en masse Jeff 'Jones' Putz ASP .Net 0 11-14-2003 01:48 AM



Advertisments