Hello everyone. I have a page that shows information about accommodation, and then the user ID of the person who created this information in DetailsView.
I also have a button that should look at what UserID is and when clicked so that this userID will convert it to a username so that I can then use this username to change the role of individuals to the tenant. However, I'm not sure, using C #, how can I grab the UserID from the details view, do the conversion, and update the role. Any ideas?
Mark
@Tim
Here is the code I added:
public partial class adminonly_approval : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } void DetailsView1_ItemCommand(Object sender, DetailsViewCommandEventArgs e){ if (e.CommandName == "SetToRenter") {
I added a button on the page below the details view and set the name of the SetToRenter command. When I press the button, although it does not change the role. I'm new to ASP and C #, but need this feature for a university assignment. Any ideas?
source share