→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎10-16-2007 12:09 AM
<%@ Page Language="VB" ContentType="text/html" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
runat="Server"
id="DScomputers"
IsStoredProcedure="true"
CreateDataSet="true"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_Lansweeper") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_Lansweeper") %>'
CommandText="dbo.WebComputers"
Debug="true"
><Parameters>
<Parameter Name="@RETURN_VALUE" Type="Int" Direction="ReturnValue" />
<Parameter Name="@computername" Value='<%# request("computername") %>' Type="VarChar" Direction="Input" />
<Parameter Name="@description" Value='<%# request("description") %>' Type="VarChar" Direction="Input" />
<Parameter Name="@addomaindns" Value='<%# request("addomaindns") %>' Type="VarChar" Direction="Input" />
</Parameters></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>New Page 3</title>
<link href="CSS/lansweeper.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0" bottommargin="0">
<table border="0" cellpadding="2" cellspacing="0" width="100%" id="table1">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="1" cellspacing="1" id="Resulttable">
<tr>
<td width="18" class="columngrey"> </td>
<td class="columngrey">Computer (<%= DScomputers.RecordCount %>)</td>
<td class="columngrey">Description</td>
<td class="columngrey">Domain</td>
<td class="columngrey">Last seen</td>
</tr>
<ASP:Repeater runat="server" DataSource='<%# DScomputers.DefaultView %>'>
<ItemTemplate>
<tr>
<td width="18"><font size="1"><img src="Icons/exe.gif" width="16" height="16"></font></td>
<td><font size="1"><a href="process.aspx?computername=<%# DScomputers.FieldValue("Computername", Container) %>&description=<%# DScomputers.FieldValue("theDescription", Container) %>" target="frmprocess" class="hotlink"><%# DScomputers.FieldValue("Computername", Container) %></a></font></td>
<td><font size="1"><%# DScomputers.FieldValue("thedescription", Container) %></font></td>
<td><font size="1"><%# DScomputers.FieldValue("ADdomainDNS", Container) %></font></td>
<td><font size="1"><%# DScomputers.FieldValue("Lastseen", Container) %></font></td>
</tr>
</ItemTemplate>
</ASP:Repeater>
</table></td>
</tr>
</table>
</body>
</html>
<%@ page language="VBSCRIPT" ASPCompat="true"%>
<%
if request("link") <> "" then
session("bottomsubbar")= request("link")
else
'session("bottomsubbar")= "empty"
end if
if session("bottomsubbar")="" then
session("bottomsubbar")= "empty"
end if
%>
<Script runat="server">
function getclass(byval sessie as string) as string
if session("bottomsubbar") = sessie then
return "seltext"
else
return "normaltext"
end if
end function
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>New Page 1</title>
<link href="CSS/lansweeper.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE=javascript>
function change() {
parent.parent.frames["frmbottom"].document.location = "<%=session("bottomsubbar")%>.aspx?computername=<%=session("computername")%>";
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="return change()">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<%select case session("bottombar")%>
<%case "extra"%>
<tr>
<td align="left" valign="top" > <span class="small"><img src="Icons/scan.gif" align="absbottom"> <a href="bottomsubbar.aspx?link=lastscan" class="<%=getclass("lastscan")%>">Last Scan</a> </span> <span class="small"> |</span><span class="small"> </span><span class="small"><img src="Icons/error.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=errors" class="<%=getclass("errors")%>">Errors</a> </span> <span class="small"> |</span><img src="Icons/linkicon_external.gif" width="26" height="12"><a href="http://www.lansweeper.com" target="_blank">Lansweeper.com</a></td>
</tr>
<%case "userinfo"%>
<tr>
<td align="left" valign="top" > <img src="Icons/logoninfo.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=logoninfo" class="<%=getclass("logoninfo")%>">Logon</a> <span class="small">|</span><span class="small"> <img src="Icons/user.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=users" class="<%=getclass("users")%>">Users</a> <span class="small">| <img src="Icons/groups.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=groups" class="<%=getclass("groups")%>">Groups</a> <span class="small">| <img src="Icons/usersgroups.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=usergroups" class="<%=getclass("usergroups")%>">Users in Groups</a></td>
</tr>
<%case "hardware"%>
<tr>
<td align="left" valign="top" > <img src="Icons/printer.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Printers" class="<%=getclass("Printers")%>">Printer</a><span class="small"> | <img src="Icons/netw.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=Network" class="<%=getclass("Network")%>">Network</a><span class="small"> |</span><span class="small"> </span><img src="Icons/floppy.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Floppy" class="<%=getclass("Floppy")%>">Floppy</a><span class="small"> |</span><img src="Icons/cpu.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Baseboard" class="<%=getclass("Baseboard")%>">Baseboard</a><span class="small"> |</span><img src="Icons/battery.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Battery" class="<%=getclass("Battery")%>">Battery</a><span class="small"> |</span><img src="Icons/empty.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Bus" class="<%=getclass("Bus")%>">Bus</a><span class="small"> |</span> <img src="Icons/cd.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Cdrom" class="<%=getclass("Cdrom")%>">CDrom</a><span class="small"> |</span><img src="Icons/system2.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Systemproduct" class="<%=getclass("Systemproduct")%>">SystemProduct</a><span class="small"> | </span><img src="Icons/ide.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=IDE" class="<%=getclass("IDE")%>">IDE</a><span class="small"> |</span><img src="Icons/infrared.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Infrared" class="<%=getclass("Infrared")%>">Infared</a><span class="small"> |</span> <img src="Icons/keyboard.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Keyboard" class="<%=getclass("Keyboard")%>">Keyboard</a><span class="small"> |</span><br>
<img src="Icons/device.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Onboard" class="<%=getclass("Onboard")%>">Onboard</a><span class="small"> |<img src="Icons/port.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Parallelport" class="<%=getclass("Parallelport")%>">Parallelport</a> |</span><img src="Icons/pcmcia.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=pcmcia" class="<%=getclass("pcmcia")%>">PCMCIA</a><span class="small"> |</span><img src="Icons/mice.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=pointing" class="<%=getclass("pointing")%>">Pointing</a><span class="small"> |</span><img src="Icons/battery.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=portablebattery" class="<%=getclass("portablebattery")%>">PortableBattery</a><span class="small"> |<img src="Icons/device.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=portconnector" class="<%=getclass("portconnector")%>">Portconnector</a> |</span><img src="Icons/modem.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=modem" class="<%=getclass("modem")%>">Modem</a><span class="small"> |</span><img src="Icons/processor.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=processor" class="<%=getclass("processor")%>">Processor</a><span class="small"> |</span><img src="Icons/ide.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=scsi" class="<%=getclass("scsi")%>">SCSI</a><span class="small"> |<img src="Icons/port.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=serialport" class="<%=getclass("serialport")%>">Serialport</a> |</span><img src="Icons/sound.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=sound" class="<%=getclass("sound")%>">Sound</a><span class="small"> |<br>
<img src="Icons/tape.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=tape" class="<%=getclass("tape")%>">Tape</a> |<img src="Icons/rdp.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Terminal" class="<%=getclass("Terminal")%>">Terminal</a> |</span><img src="Icons/usb.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Usb" class="<%=getclass("Usb")%>">USB</a><span class="small"> |</span><img src="Icons/device.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Video" class="<%=getclass("Video")%>">Video</a><span class="small"> </span></td>
</tr>
<%case "installation"%>
<tr>
<td align="left" valign="top" > <img src="Icons/arp.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=Software" class="<%=getclass("Software")%>">Software</a><span class="small"> | <img src="Icons/dcom.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=Com" class="<%=getclass("Com")%>">COM</a><span class="small"> |</span><img src="Icons/dcom.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=dcom" class="<%=getclass("dcom")%>">DCOM</a><span class="small"> |</span><img src="Icons/dcom.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=componentcategory" class="<%=getclass("componentcategory")%>">ComponentCategory</a><span class="small"> |</span><img src="Icons/codec.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=codecs" class="<%=getclass("codecs")%>">Codecs</a></td>
</tr>
<%case "configuration"%>
<tr>
<td align="left" valign="top" > <img src="Icons/empty.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=boot" class="<%=getclass("boot")%>">Boot</a><span class="small"> | <img src="Icons/desktop.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=desktop" class="<%=getclass("desktop")%>">Desktop</a><span class="small"> |</span><img src="Icons/monitor.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=desktopmonitor" class="<%=getclass("desktopmonitor")%>">Desktopmonitor</a><span class="small"> |</span><img src="Icons/disk.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=diskpartition" class="<%=getclass("diskpartition")%>">Diskpartition</a><span class="small"> |</span><img src="Icons/vid.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=display" class="<%=getclass("display")%>">Display</a><span class="small"> |</span><img src="Icons/device.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=displaycontroller" class="<%=getclass("displaycontroller")%>">Displaycontroller</a><span class="small"> |</span><img src="Icons/driver.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=drivers" class="<%=getclass("drivers")%>">Drivers</a><span class="small"> |</span><img src="Icons/empty.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=environment" class="<%=getclass("environment")%>">Environment</a><span class="small"> |</span><img src="Icons/empty.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=extensionaction" class="<%=getclass("extensionaction")%>">ExtensionAction</a><span class="small"> |</span><br>
<img src="Icons/empty.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=logicalprogramgroup" class="<%=getclass("logicalprogramgroup")%>">LogicalProgramGroup</a><span class="small"> |</span><img src="Icons/empty.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=recovery" class="<%=getclass("recovery")%>">Recovery</a><span class="small"> | </span> </td>
</tr>
<%case "windows"%>
<tr>
<td align="left" valign="top" > <img src="Icons/shares.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=shares" class="<%=getclass("shares")%>">Shares</a><span class="small"> | <img src="Icons/disk.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=harddisk" class="<%=getclass("harddisk")%>">Harddisk</a><span class="small"> |</span><img src="Icons/service.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=services" class="<%=getclass("services")%>">Services</a><span class="small"> |</span><span class="small"> </span><img src="Icons/netw.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=networkclient" class="<%=getclass("networkclient")%>">Networkclient</a><span class="small"> | </span><img src="Icons/pagefile.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=pagefile" class="<%=getclass("pagefile")%>">Pagefile</a><span class="small"> | </span><img src="Icons/fix.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=quickfix" class="<%=getclass("quickfix")%>">Quickfix</a><span class="small"> | </span></td>
</tr>
<%case "running"%>
<tr>
<td align="left" valign="top" > <img src="Icons/run.gif" width="16" height="16" align="absbottom"> <a href="bottomsubbar.aspx?link=autorun" class="<%=getclass("autorun")%>">Autorun</a><span class="small"> | <img src="Icons/process.gif" width="16" height="16" align="absbottom"> </span><a href="bottomsubbar.aspx?link=processes" class="<%=getclass("processes")%>">Processes</a><span class="small"> |</span><span class="small"> </span>
</td>
</tr>
<%case "ie"%>
<tr>
<td align="left" valign="top" > <img src="Icons/activex.png" width="16" height="15" align="absbottom"> <a href="bottomsubbar.aspx?link=activex" class="<%=getclass("activex")%>">ActiveX</a> <span class="small">| <img src="Icons/activex.png" width="16" height="15" align="absbottom"> </span><a href="bottomsubbar.aspx?link=bars" class="<%=getclass("bars")%>">Browser Bars</a><span class="small"> |</span><span class="small"> </span><span class="small"><img src="Icons/activex.png" width="16" height="15" align="absbottom"> </span><a href="bottomsubbar.aspx?link=bho" class="<%=getclass("bho")%>">Browser Helper Objects</a><span class="small"> |</span><span class="small"> </span><span class="small"><img src="Icons/activex.png" width="16" height="15" align="absbottom"> </span><a href="bottomsubbar.aspx?link=extensions" class="<%=getclass("extensions")%>">Browser Extensions</a><span class="small"> |</span><span class="small"> </span> </td>
</tr>
<%case else%>
<%end select%>
</table>
</body>
</html>
‎10-16-2007 10:29 AM
‎10-16-2007 04:19 PM
Smikkel wrote:
Make sure that you have the dotnet 2.0 framework installed on the server.
Make sure IIS is registered for asp.net (check this link http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx)
Use aspnet_regiis -i to install asp.net on IIS.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now