API/CodeSamples/CurrentUserName.md
... ...
@@ -22,7 +22,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
22 22
//Creates a connection to Microsoft SQL Server
23 23
AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
24 24
AdHocSettings.AdHocConfig = new CustomAdHocConfig();
25
- AdHocSettings.CurrentUserName = (String)HttpContext.Current.Session["UserName"]; //The relevant settign
25
+ AdHocSettings.CurrentUserName = (String)HttpContext.Current.Session["UserName"]; //The relevant setting
26 26
HttpContext.Current.Session["ReportingInitialized"] = true;
27 27
}
28 28
}