I am trying to convert some vb.net to C #, but I am getting errors. At the moment, I get an error in the name.
Problem line:
string[] strUserInitials = HttpContext.Current.Request.ServerVariables("LOGON_USER").Split(Convert.ToChar("\\"));
Does anyone know why this is happening?
I am working on a web service (asmx file).
I have the following at the top of the code:
using System.Web; using System.Web.Services; using System.Web.Script.Services; using System.Collections.Generic; using System.Data; using System.Data.SqlClient;
source share