Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Mar 03, 2006 03:53 PM|LINK
I'm not sure how you plan to organize it but one way would be to make each Advert editable where it sits. Let say you were using a Datalist for this. You create a template to display all the information for an advert and an edittemplate for editing an advert. You
could associate the user name with the advert in the Advert table when an advert is added. Then have an edit button next to each advert that has a visible property set to false.
In code you look for a logged in user. If you find one you get the user name and compare it to each Advert record in the Datalist. If the the logged in user is the same as the user associated with a particlular record set the edit button visible to true.
If you downloaded my source code you could look at the FavoriteLinks.ascx. It allows for add, edit, and delete for each item based on being logged in using the administrator role.