title: Query Active Directory Username from login, to match a Name stored in another database
body: <p>I am developing an application in Asp.net using Active Directory to authenticate users. I have been asked to create a timesheet and project management application. The application should allow managers to; select a user,assign a task and show their personal information. </p>
  
  <p>To do this I will need to connect to one of their databases that holds all the relevant data. </p>
  
  <p>What I have done so far is create a modal with a dropdownlist and a connection string to the database needed. The dropdownlist allows you to select a name,a task, task department and task description. I would like it to bind the selected data into a second grid view on their personal profile page.</p>
  
  <p>My problem is that it needs to match the username stored in Active directory when they login, to the name selected from the database in the dropdownlist.</p>
  
  <p>I am lost on how this can be done, I really hope that this makes sense I may have got lost in the woods on this!! I am new to AD.</p>
  
  <p><a href="http://i.stack.imgur.com/kXFf3.png" rel="nofollow">Attached Image gives you an idea on the dropdownlist and data to bind to the gridview</a></p>