Get User Name

  • Thread starter Thread starter John
  • Start date Start date
J

John

My web.config has this line:

<authentication mode="Windows" />

My page has a label named MyLabel

My page load event has this code:
Mylabel.Text = user.identity.name

The label is blank when I view it in a browser.

What am I missing?

Thanks!
CJ
 
Did you disable anonymous access for the web application

Mike McMaste
WellSpan Healt
York, P

----- John wrote: ----

My web.config has this line

<authentication mode="Windows" />

My page has a label named MyLabe

My page load event has this code
Mylabel.Text = user.identity.nam

The label is blank when I view it in a browser

What am I missing

Thanks
C
 
Back
Top