hi Again!
You can achive your functionality in one the following way! In a Visual Studio.NET open the project properties go to the Build action tab and check the checkbox Register Control for COM interoperability.
Now Open the Registry and find the Name of your Root NameSpace of your Project in the Registry. To manually find where there COM ids are stored in your Pc's Open the following Registry Keys
MyComputer\HKEY_CLASSES_ROOT\CLSID\ and click the check box in the front of CLSID
a new tree-view hierarchy loads. Now find your clsid in that list. YOu can use Registry Find Feature.
Now do one thing Export all these registry keys to some folder as .reg file. Open this fileFor- example see here Sample
------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{00000010-0000-0000-0010-0000001A2B3C}]
@="Sehmi.Web.Files.Uploader"
[HKEY_CLASSES_ROOT\CLSID\{00000010-0000-0000-0010-0000001A2B3C}\Implemented Categories]
@=""
[HKEY_CLASSES_ROOT\CLSID\{00000010-0000-0000-0010-0000001A2B3C}\Implemented Categories\{00000020-0000-0000-0020-0000001A2B3C}]
@=""
[HKEY_CLASSES_ROOT\CLSID\{00000010-0000-0000-0010-0000001A2B3C}\InprocServer32]
@="mscoree.dll"
"Assembly"="FileUploader, Version=1.0.1961.20031, Culture=neutral, PublicKeyToken=null"
"Class"="Sehmi.Web.Files.Uploader"
"CodeBase"="file:///C:/WINDOWS/Downloaded Program Files/FileUploader.dll"
"RuntimeVersion"="1.1.4322"
"ThreadingModel"="Both"
[HKEY_CLASSES_ROOT\CLSID\{00000010-0000-0000-0010-0000001A2B3C}\InprocServer32\1.0.1961.20031]
@=""
"Assembly"="FileUploader, Version=1.0.1961.20031, Culture=neutral, PublicKeyToken=null"
"Class"="Sehmi.Web.Files.Uploader"
"CodeBase"="file:///C:/WINDOWS/Downloaded Program Files/FileUploader.dll"
"RuntimeVersion"="1.1.4322"
[HKEY_CLASSES_ROOT\CLSID\{00000010-0000-0000-0010-0000001A2B3C}\ProgId]
@="Sehmi.Web.Files.Uploader"
----------------------------------------------------------------------------------------------------
E.g if {00000010-0000-0000-0010-0000001A2B3C} is your project's CLSID note it and keep it in a safe place
and now use the following piece Of Code to load your Control in as ASP.NET or html Page
<html>
<object id="MyObject" classid="clsid:{00000010-0000-0000-0010-0000001A2B3C}" >
</object>
</object>
</html>
and open that page from your server in a an internet explorer
--------------------------------------------------------------------------------------------------------------------------
Thanks!
Er.Sehmi
Infotrust.com.sg
Singapore