Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
HELLO
how can i catch(get) systeminfo by asp.net language.
put a button in asp form and write a code in it,
when user click on it send her system info to my server.
system info(like cpu 2.4 -hdd 500g -ram 2ddr3 -main ASUS Monitor Acer 15 &...).

do that by

source code or run a syntax or a component


plase send a copy of aswer to my email:azeran2010@yahoo.com
thanks

[edit]Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know - OriginalGriff[/edit]
Posted
Updated 5-Dec-12 19:26pm
v3

No.
The server does not have access to your clients system - security prevents it.
 
Share this answer
 
Comments
azeran 1-Jan-12 3:10am    
systems are in my office lan,
and i change ther security setting
please solve my problem
Sergey Alexandrovich Kryukov 1-Jan-12 10:39am    
Setting don't matter. Please don't re-post the question -- it cannot help. Use "Improve question" and comment on this page, if you want.
--SA
Sergey Alexandrovich Kryukov 1-Jan-12 10:39am    
My 5.
--SA
You can use System.Environment like this:
C#
private string SystemInformation()
 {
     StringBuilder StringBuilder1 = new StringBuilder(string.Empty);
     try
     {
         StringBuilder1.AppendFormat("Operation System: {0}<br />", Environment.OSVersion);
         if (Environment.Is64BitOperatingSystem)
             StringBuilder1.AppendFormat("64 Bit Operating System<br />");
         else
             StringBuilder1.AppendFormat("32 Bit Operating System<br />");
         StringBuilder1.AppendFormat("SystemDirectory: {0}<br />", Environment.SystemDirectory);
         StringBuilder1.AppendFormat("ProcessorCount: {0}<br />", Environment.ProcessorCount);
         StringBuilder1.AppendFormat("UserDomainName: {0}<br />", Environment.UserDomainName);
         StringBuilder1.AppendFormat("UserName: {0}<br />", Environment.UserName);
                     //Drives
         StringBuilder1.AppendFormat("LogicalDrives:<br />");
         foreach (System.IO.DriveInfo DriveInfo1 in System.IO.DriveInfo.GetDrives())
         {
             try
             {
                 StringBuilder1.AppendFormat("Drive: {0}<br />VolumeLabel: {1}<br />DriveType: {2}<br />DriveFormat: {3}<br />TotalSize: {4}<br />AvailableFreeSpace: {5}<br />",
                     DriveInfo1.Name, DriveInfo1.VolumeLabel, DriveInfo1.DriveType, DriveInfo1.DriveFormat, DriveInfo1.TotalSize, DriveInfo1.AvailableFreeSpace);
             }
             catch
             {
             }
         }
         StringBuilder1.AppendFormat("SystemPageSize: {0}<br />", Environment.SystemPageSize);
         StringBuilder1.AppendFormat("Version: {0}", Environment.Version);
     }
     catch
     {
     }
     return StringBuilder1.ToString();
 }

The most commonly used method to do this is to use java script, for example you can use this code to find out resolution of his/her computer:
JavaScript
<script type="text/javascript">
    // get width of scree
    document.write(screen.width);
    // get height of screen
    document.write('*');
    document.write(screen.height);
</script>


You can use JavaScript to collect some valuable information such as user’s IP or location of user etc. Just search Google and you will find plenty of this useful Java Scripts. You can also use other .NET classes to do this, for example for finding IP of client you can use:
C#
Request.UserHostAddress
or
C#
Request.ServerVariables["REMOTE_ADDR"].ToString()
or to show URL of the client's previous request that linked to your webpage you can use Request.UrlReferrer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900