Hi ,I want to fetch visitors computername and username When visitors click a button .
I try this code and not fetch visitors value ..
Code
HttpContext.Current.Request.ServerVariables["REMOTE_USER"];
HttpContext.Current.Request.ServerVariables["REMOTE_HOST"];
Arunava BhattacharjeeRank #635 · 3.8K reputationPosted Sep 22, 2014, 7:12 PM EDT
If the authentication configured correctly, you can get the client user from IIdentity.Name.
In the context of a Page, you can use Request.UserHostAddress, Request.UserHostName and User.Identity.Name.
Mark the answer as accepted if you get what you desired!
Deepak Kumar ChoudharyRank #4,523 · 339 reputationPosted Sep 23, 2014, 1:09 AM EDT
string IPAddress = Request.ServerVariables["REMOTE_HOST"];
string HostName=System.Net.Dns.GetHostByAddress(addr).HostName ;
Response.Write("Host Name="+HotName+ "adder=" +IPAddress);
I Hop this will help you.
Thanks!
Demir Acar94 reputationPosted Sep 23, 2014, 2:13 AM EDT
Demir Acar94 reputationPosted Sep 23, 2014, 2:15 AM EDT
Deepak Kumar ChoudharyRank #4,523 · 339 reputationPosted Sep 24, 2014, 1:49 AM EDT
veriable
code given below
I amd also attaching the demo website this will helpful for you.
Thanks!
Demir Acar94 reputationPosted Sep 24, 2014, 4:51 AM EDT
The requested protocol has not been configured into the system, or no implementation for it exists