- Joined
- 31 Dec 2003
- Posts
- 5,172
- Location
- Barrow-In-Furness
All the information i've found for doing this relies on the UserName being the PK, this isn't the case for the table i'm using. I am however using the default membership provider tables and controls.
I basically just need a way of showing ONLY the data for the user that is logged in using a GridView control.
The SQL query is in the Dataset as:
SELECT ID, WorkCode, WorkDate, Hours
FROM Hours
WHERE UserName = (@username)
Really can't find how to do this
I know i've asked a lot of questions on here lately and thanks for helping guys, really struggle to find decent information for this though.
Thanks for any help.
I basically just need a way of showing ONLY the data for the user that is logged in using a GridView control.
The SQL query is in the Dataset as:
SELECT ID, WorkCode, WorkDate, Hours
FROM Hours
WHERE UserName = (@username)
Really can't find how to do this

I know i've asked a lot of questions on here lately and thanks for helping guys, really struggle to find decent information for this though.
Thanks for any help.
Last edited: