Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my web i have two role one for admin and others for users.

lets say we have two users with different orders details. when the user login using his username and password. he have his own page with welcome jack(say jack a user name) ( only have welcome jack and page is emply). now i want to put a link control on that users loged in page . so that everyuser just can b able to see the particulars orders detail he made from the database dynamically.

please help me i am completly new in it.


Pls give me some coding example
Posted
Updated 4-Jul-11 0:53am
v2

1 solution

You don't need to create dynamic pages for each an every user. You just need to create on single page for all the users where you show the order details on the basis of logged-in user id. You need to pull the data from the database and bind the data to the appropriate controls in the page.

You should understand the basic of the data access in ASP.NET, you can start the step by step tutorials here http://www.asp.net/data-access/tutorials[^]
 
Share this answer
 
v2
Comments
codegeekalpha 4-Jul-11 6:52am    
u mean one page i can put order details by user id. is it done by using properties????
codegeekalpha 4-Jul-11 7:01am    
but when user loged in on has. it is in my mind that on that page we put grid view and bind the data to the gridveiw using that user id . then how can it b same for all the users??
codegeekalpha 4-Jul-11 7:02am    
when user logged in on his page ..it is in my mind that on that page we put grid view and bind the data to the gridveiw using that user id . then how can it b same for all the users??

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