QUOTE(PsychoCoder @ 9 May, 2008 - 07:11 PM)

Can you please define "But it didn't work". Are you receiving any errors, if so what are they? What is this code doing versus what you want/need it to do? These are vital pieces of information needed to help us help you. You cannot just post code and expect us to figure out what you want or what's going wrong

I am trying to develop a website (a digital repository for learning objects) ,,this site has a log in capablity ,,so each user has its own profile.
and can create one or more personal collections.
personal collection= collection has a name and attached to a user and contains a number of learning objects chosen by that user
in the database there are two tables for personal collections.
1- PersonalCollection (PCID, PCName,UserId)
2- PersonalCollection_LO (PCID,LOID)
LO=learning object
each user after browsing any learning object will see at the bottom of the page , a dropdownlist that contains his/her previosly created personal collections to choose one of them and click add ,,so this browsed learning object will be contained in the selected personalcollection
There was no errors in my code but after running the page, the dropdownlist is empty
ok,, I want to know how to make the list items of a dropdownlist dynamic depending on a user ID ,,so the items of this dropdownlist will change depending on the current logged in user for example:
-Amanda will see her personal collection names in this drop downlist:
my collection1
amanda1
amanda2
- Jhon will see:
collection
jhon2
my collection3
Actully I will use
CODE
Dim user As MembershipUser = Membership.GetUser()
User.ProviderUserKey.ToString()
to get the current user Id but in the previous code I put a specific USER_ID just to test the code..
thank you very much PsychoCoder..
I hope it is clear now
This post has been edited by Najla: 10 May, 2008 - 03:04 AM