You are viewing limited content. For full access, please sign in.

Question

Question

username, and machine name automatic entry on a form

asked on June 26, 2017

Hello,

In my c# code, I like to populate the username field, and the computer name field with  already-defined variables like so:

for username:  string strLoginName = Environment.UserName.ToString().ToLower();

for computer name:  string strCompName = System.Environment.MachineName; 

Does anyone know of any way to do this type of thing in Laserfiche?

 

Thanks...........................................................Sheela.

 

0 0

Replies

replied on June 26, 2017

Any C# code you run will be server-side, so neither of those values are likely to be what you want.  You would need to do a reverse DNS lookup to get the client machine name, and can get the remote user name from the current HttpContext if they have authenticated.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.