I know how to get the server information on the user but the former programmer did all this in C# and I have to do it in VB. Now he took the easy way out and only called certain directory attributes out for the stuff he knew. I am left sifting through all his code trying to find out how to get to the attributes he couldn't. There are hardcoded permissions so I can't post the code on a public website.
But I can write some Pseudo Code:
This is just one instance of this there are more for the managers in each dept. But thats not the half of it. What I want to do is have a table with information already filled in Ex:
What I am asking help on is the fact that I want to know how to go about diagnosing where these directories might be and when I find them how to call them. Now you may not be able to tell me how to find them but I really want to know how to call these things without hardcoding them as the last person did. That just seems like more work and after I get this one done and know how to do it then I won't have worry about how to do it next time. I am so new at this Web Application thing. It was so much easier in Software Applications.
Thanks in Advance.
But I can write some Pseudo Code:
Code:
if (username == "director_it")
{
name.Visible = true;
changename.Visible = false;
changename.Value = "manager/officelocation/employeename/Phonenumber";
}
reqdate.Text = DateTime.Now.Month.ToString() + " - ";
reqdate.Text += DateTime.Now.Day.ToString() + " - ";
reqdate.Text += DateTime.Now.Year.ToString();
This is just one instance of this there are more for the managers in each dept. But thats not the half of it. What I want to do is have a table with information already filled in Ex:
Code:
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
usenamelbl.Text = Page.User.Identity.Name
loclbl.Text = Page.User.
datetimelbl.Text = Date.Today
nametxt.Text = Page.User.Identity.Name
datetext.Text = Date.Today
phonetext.Text = Page.UniqueID(I am not sure how to do this one)
emailtext.Text = Page.User.Identity.Email(example purposes only)
End Sub
Thanks in Advance.
Comment