System Informations
-
Hi everbody, How can i get system informations(cpu,ram,hdd,ip,user name...) using c#? Also, how can i post this informations to asp.net web page? Please help me? Thanks...
-
-
Thanks to reply my message, this article is very good. However, can i post this informations to asp.net web page? Can u help me? A lot of thanks...
Sure and there are many ways to do this depending on how you want to display the information. For example you could insert a
Literal
control into your page and use its Text property to dynamically fill it with the information. The following example should show the you the principle and doesn't claim to be 100% correct:<script runat="server">
void Page_Load(object sender, EventArgs e)
{
//retrieve info via wmi and assign it
this.literal1.Text = "Your info";
}
</script>
<html>
<body>
<asp:Literal id="literal1" runat="server" />
</body>
</html>
-
Thanks to reply my message, this article is very good. However, can i post this informations to asp.net web page? Can u help me? A lot of thanks...
Just to clarify... using C# and WMI, you'll get the information for the server, not the client. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome