How to get specified user name records in grid view ASP.net

Nov 10 2017 6:24 AM
Hi all,
 
I created a shopping cart and save them into database.
 
I want to show those shopping cart data according to the logged in user.
 
But when I'm retrieving data from database using a grid view it shows every user's data.
 
How to retrieve data without filtering (using textbox or dropdown)
 
I want to do it code behind.How can I do that?
 
Thank you n advance.

Answers (2)