How to add DropDownlist of all users to ListView

jesse_0115

New Member
I have a ListView control, I want to edit the InsertItem Template to include a Dropdownlist Item which contains a list of users in Membership Directory.I tried this:\[code\] MembershipUserCollection users = Membership.GetAllUsers(); assigned_volunteerDropDownBox.DataSource = users; assigned_volunteerDropDownBox.DataBind();\[/code\]The biggsest issue is that it says \[code\]assigned_volunteerDropDownBox\[/code\] does not exist in the current context... In fact none of the TextBox items on the insert template are in the current context (is this normal)?How would I go about doing this? I want to be able to only allow the row to be updated with valid usernames.I looked at this, but it doesn't actually contain the code to DataBind to the DropDownList item.
 
Back
Top