Aargh!
Do you read replies to questions you've answered, so that you don't
propagate the *same* mistaken code which you have previously
proposed and which has been corrected by others ?
From my previous reply to you :
-------------------------------------------
That's not what he was looking for.
He was looking for "the IP Address of the
server where the code behind is running".
re:
lblAccount.text = System.Security.Principal.WindowsIdentity.GetCurrent().Name
That should be
System.Security.Principal.WindowsIdentity.GetCurrent.Name()
-----------------------------------------------
Now, you come back with :
Label.text = system.security.principal.windowsidentity.getcurrent().name
That should be :
Label.text = system.security.principal.windowsidentity.getcurrent.name()
Please, if you must recommend code, make sure it's correct
....and pay attention to the corrections sent to your posts.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================