ASP.NET C# Add/Update User to Role
问题 Hi all I have a page that shows Accommodation info and then the UserID of the person that created that information in a DetailsView. I also have a button that should look at that that UserID and when clicked take that userID convert it to a username so that then I can use that username to change the persons role to a renter. However I am unsure using C# how I can grab the UserID from details view do the conversion and update the role. Any ideas? Mark @Tim Here is the code I have added: public