Steps for embedding a windows forms user control in web page

后端 未结 3 1315
鱼传尺愫
鱼传尺愫 2021-01-16 05:19

I am developing a windows forms user control in Visual Studio 2005. It is a file upload control and uses only 2 elements.

  1. A button for showing opnefiledialog<
相关标签:
3条回答
  • 2021-01-16 05:41

    Provide the complete url for the classid attribute

    ex: classid="http://localhost/FirstServiceTestForm.dll#TestForm.myControl"

    0 讨论(0)
  • 2021-01-16 05:51

    For doing this, the users will have to have .NET framework installed on their machines (most of the users have it). Then to view the control, they will have set the .NET security policies.

    I had once used Atalasoft's .NET component for ASP.NET, and it required performing the settings given on this page.

    You can try creating a normal COM ActiveX in .NET instead of a .NET web component. This way you'll only have to digitally sign it and the users will have to permit the control to be installed on their machine.

    0 讨论(0)
  • 2021-01-16 06:02

    Windows Forms and html really don't mix that well. Why don't you just use the asp control? Just add it to your aspx page like so:

    <asp:FileUpload ID="FileUpload1" runat="server" />
    

    Matthew

    0 讨论(0)
提交回复
热议问题