
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2014 07:02 AM
Hey , I need to made a page with some informatioms , and this my code ,
I need the statement to shows the logged user name to be showen :
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<%@ Import Namespace="System.Activities.Expressions" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="LS" %>
<% LS.User.Current().CheckWebsiteAccess(); %>
<%
var DsAsset = DB.ExecuteObject("web50oneasset", DB.NewDBParameter("@assetid", Request["AssetID"]));
var dsos = DB.ExecuteObject("web50hwos", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dssystem = DB.ExecuteObject("web50hwsystem", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dssystemproduct = DB.ExecuteObject("web50hwsystemproduct", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsschassis = DB.ExecuteObject("web50hwchassis", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsprocessor = DB.ExecuteObject("web50hwprocessor", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dssound = DB.ExecuteObject("web50hwsound", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsvideo = DB.ExecuteObject("web50hwvideo", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsdrives = DB.ExecuteObject("web50hwdrives", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsbios = DB.ExecuteObject("web50hwbios", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsmemory = DB.ExecuteObject("web50hwmemory", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsmemoryarray = DB.ExecuteObject("web50hwmemoryarray", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dsnetwork = DB.ExecuteObject("web50hwnetwork", DB.NewDBParameter("@AssetID", Request["AssetID"]));
var dssoftware = DB.ExecuteObject("web50hwsoftware", DB.NewDBParameter("@AssetID", Request["AssetID"]));
int tel = 1;
%>
<body style="background:#FFFFFF">
<% }%>
<tr>
<td class="lijntje"><span class="bigt" >< The Currant Loged User is: </span> </td>
</tr>
</body>
Solved! Go to Solution.
Labels:
- Labels:
-
General Discussion
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2015 03:53 PM
The following widget page will show the username which is logged on to the web console:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="LS.BaseControl" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="LS" %>
<% Response.CacheControl = "no-cache";%>
<% Response.AddHeader("Pragma", "no-cache"); %>
<% Response.Expires = -1; %>
<% LS.User.Current().CheckWebsiteAccess(); %>
<p>The current logged on user is: <%= LS.User.Current().UserName %> </p>
<script type="text/javascript">
$('#WTitle<%=TabControlID %>', window.top.document).text("Username");
</script>
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2015 11:53 AM
Users log on to IIS Express or IIS. Not sure if there is any way to get a list from there.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2015 02:25 PM
Is there a way to make it show all logged on users on the web console?
Also can I make the username link to the profile so when you click on the user it will take you to there user asset page on lansweeper?
Thanks
Also can I make the username link to the profile so when you click on the user it will take you to there user asset page on lansweeper?
Thanks


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2015 03:53 PM
The following widget page will show the username which is logged on to the web console:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="LS.BaseControl" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="LS" %>
<% Response.CacheControl = "no-cache";%>
<% Response.AddHeader("Pragma", "no-cache"); %>
<% Response.Expires = -1; %>
<% LS.User.Current().CheckWebsiteAccess(); %>
<p>The current logged on user is: <%= LS.User.Current().UserName %> </p>
<script type="text/javascript">
$('#WTitle<%=TabControlID %>', window.top.document).text("Username");
</script>
