Direct selected users to edit page
I need help for the code below. This page display the user info based on their windows authentication user ID. It is working fine and I need that. Then it is also letting admin to edit anybodys profileâ¦which is working fine too. Now I have created a table name UserCheck with username and editusername fields (just 2 fields). Now I want to link the table in this page where user can edit other user profile based on the username authorization in the table UserCheckâ¦..Check if username is allowed to change editusernameâ¦if yes then direct to edit page else take him back to the main pageâ¦
Connection string is already built up in webconfig fileâ¦all I need to put connection to the table in this codeâ¦â¦plz help and let me know if you didnât understand anythingâ¦.
protected void Page_Load(object sender, System.EventArgs e)
//if the admin is Sadia then she could edit anybody's profile.
//Checking to see if the user is present in the database
SPAHPUser fsUser = new SPAHPUser();
else //The user is new and he needs to be added into the database
url="the user is new";
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
private void InitializeComponent()