Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hii.
I need client's computer name using activex Control in Asp.net.. C#
Send me some solved Example.
Posted
Updated 11-Apr-16 0:12am
Comments
sachin10d 19-Oct-11 8:14am    
you can google it instead of asking for a solved example.
try some thing and we can help you

I found this on google:

Writing an ActiveXcrement control with C#[^]

But over and above the technical hurdles, most people aren't even using IE, and therefore, and activeX control isn't viable unless you REQUIRE users to be using IE. Anyone with half a brain wouldn't allow ActiveX controls to run from the browser, so unless your users are on a corporate intranet that REQUIRES them to use IE, you're implementation will be garbage.
 
Share this answer
 
var WinNetwork = new ActiveXObject("WScript.Network");
alert("Sys name is : " + WinNetwork.ComputerName);
 
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