Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to configure a secure page for the users after login and pasword. someone tell me hear that after login in u have a secure page .u can bind the data say orders details on that secure page from the database on the bases of users id.

but it is in my mind that on a secure page if i have a grid and i bind it with database using user id than how can it be dynamic. it will be the same for all the users. i am wrong in concepts. pls help me to correct my concept.
Posted
Updated 4-Jul-11 1:14am
v2

1 solution

Hello,

While login you can store userID in session. on page load event you can fire the query based on that session varible.

Cause for every user there will be different id so your data will be different for every user.

hope it is useful to you. do comment if some more clearifaction is required.

thanks
sanjeev singh
 
Share this answer
 
Comments
codegeekalpha 4-Jul-11 7:59am    
thanks for ur nice answer. i got it now. do u have any coding example for it..
[no name] 4-Jul-11 8:02am    
can not post code here but yes you can search for login page + session in ASP.net it will give you multiple links.
[no name] 4-Jul-11 8:03am    
or you can search how to store user in session
codegeekalpha 4-Jul-11 8:13am    
ok thanks

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