Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Need to filter a menu option to only pick issues which have been assigned to a user who has logged on.

How do you accomplish this ?


Table ::Master_file

idno name region officer_in_charge
---------------------------------------
001 pet east james
002 pal east james
003 ama east james
004 joe east james

005 jon east paul
006 mic east paul

0051 dav east allen




Login_file
----------
user_id
------------------------------------
james
paul
allen

How do you link the login file such if james select the menu option to work on the issues assigned to him he will only get those and only those which have been assigned to him

idno name region officer_in_charge
---------------------------------------
001 pet east james
002 pal east james
003 ama east james
004 joe east james


Please assist

What I have tried:

Done my own research and tried to see a similar one on the net
Posted
Updated 25-Sep-16 17:14pm
Comments
David_Wimbley 24-Sep-16 17:56pm    
Is this webforms or mvc?
[no name] 24-Sep-16 19:40pm    
You search your "Master_file" for the issues assigned to james....
ZurdoDev 24-Sep-16 21:52pm    
There is no built-in magic way to do it. You just have to write the code.
Member 10744248 25-Sep-16 0:49am    
In which part of the form do you filter. please assist .

new to c# asp.net
Karthik_Mahalingam 25-Sep-16 1:50am    
Always use  Reply   button to post comments/query to the concerned user, so that the user gets notified and respond to your text.

1 solution

I would assume you retain the user login value in your application somewhere.

When you get your dataset from the database you need to filter the collection on the officer_in_charge == LoginUserName
 
Share this answer
 
Comments
Member 10744248 26-Sep-16 7:19am    
Please that is the challenge.

Where can you keep it.

Thanks
Mycroft Holmes 26-Sep-16 8:02am    
Session

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900