all groups > dotnet distributed apps > october 2006 >
You're in the

dotnet distributed apps

group:

Why .net dos'nt allow to use the windows Control on web


Why .net dos'nt allow to use the windows Control on web Prabakar Samiyappan
10/19/2006 4:08:02 AM
dotnet distributed apps: Why .net dos'nt allow to use the windows Control on web.

when it was OCX we can able to use the same control for both windows and
web.Since now its DLL we are not able to use it .Is there is any specific
reason to this problem .if so why

Regards
Re: Why .net dos'nt allow to use the windows Control on web Bryan Phillips
10/19/2006 2:05:50 PM
Windows controls *ARE* allowed on the web if the .Net Framework is
installed on the end-user's machine. Like ActiveX controls, you can use
the <OBJECT> tag to host .Net Framework controls. See this example:

<OBJECT id="upload1"
classid="Upload.dll#TestCorp.ClientControls.MultiUploadCtrl" width=800
height=300 style="font-size:12;">
<PARAM Name="FileUploadURL"
Value="http://localhost/ServerFileUpload/UploadFile.aspx">
<PARAM Name="MaxSessionUpload" Value="10646">
</OBJECT>

This embeds the MultiUploadCtrl class in the TestCorp.ClientControls
namespace from the Upload.dll file. The path to the dll file is
relative. In this case, it is in the same directory as the html file
using it.

See this example from MSDN for the complete code:
http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com




"Prabakar Samiyappan" <PrabakarSamiyappan@discussions.microsoft.com>
[quoted text, click to view]
AddThis Social Bookmark Button