Posted on: 8/8/2013 2:24:40 PM | Views : 235

Trying to resolve an issue with a search feature on a History page.
What I'm Trying to do is this:
When a non manager is logged in, the person is not available to check anyones history but thier own.  So the EmpID will be set to their own and the text box and label will not be visible.
That works as coded here.
protected void Page_Load(object sender, EventArgs e) { PcsMembershipUser oUser = Membership.GetUser() as PcsMembershipUser; if (oUser == null) throw new Exception("Invalid Provider"); //EmployeeId.Value = Convert.ToString(oUser.User.AdjusterNumber); txtEmpID.Text = Convert.ToString(oUser.User.AdjusterNumber); if (!this.IsPostBack) { if (!Roles.IsUserInRole("Manager")) { pnlEmpID.Visible = false; } ...

Go to the complete details ...