Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i doing a project.now i want when a user login then it went to index page.on index page there is a tab my task when he click on it.it will show the task ko that person and he can also upload picture.now another user login same will happen to him.each user has her on task.when admin login it will show all the task......
how can i do this????
Posted
Comments
ZurdoDev 30-May-13 8:56am    
It sounds like you are asking "how do I do my project." You need to be more specific with where you are stuck.
E.F. Nijboer 30-May-13 8:59am    
How does it work in real life? Simply identify the user and get his/her stuff to serve.
Prasad Khandekar 30-May-13 9:05am    
Here is a simple version of what E.F. Nijboer is trying to say. You are saying after login user is taken to index page. So you must be having a HttpSession and storing some information in it to acertain that the user has successfully authenticated to your site (Simply identify the user).

Now that you know you have some information (say userid) in HttpSession you can use it as an argument to your query and retrieve the tasks specific to that user. (See SQLCommand documentation on MSDN)

Regards,
Ankur\m/ 30-May-13 9:08am    
ASP.NET identifies a user by it's session. I think you got the keyword to move forward. Try and show us some effort. We can only help with specific issues.

1 solution

You can easily identify users by login credentials. I assume you must be displaying tasks in some container like grid view etc, it can help you to upload pictures and save. While binding grid view you juts have to modify grid view data source for different users based on their login either on web side or DB side.
 
Share this answer
 

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