Question : ASP.Net Using a VB Class Libarary Help

Hi

I'm trying to follow a tutorial and am getting stuck when I try to move away from it and use what I have learnt.

I have created a test web site/app and a Class Library, but when I try to use the CL in my app nothing is displayed. My code is below.  

Can any one tell me where I'm going wrong.

 
 
Web app rename to .rar
 
 
 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
'Class Lib
Namespace ActiveXDotNet

    Public Interface AxMyControl
        Property UserText() As String

    End Interface 'AxMyControl

End Namespace

Public Class UserControl1

    Private mStr_UserText As [String]

    Public Property UserText() As String
        Get
            Return mStr_UserText
        End Get
        Set(ByVal Value As String)
            mStr_UserText = Value
            'Update the text box control value also.
            txtUserText.Text = Value
        End Set
    End Property

End Class 'myControl


'WEb App COde
<html>
<head>
<title>
</title>
</head>

 <body >
  <hr/>  
      <font face="arial" size="1">
       <object id="myControl1" name="myControl1" classid="ClassLibrary2.dll#ActiveXDotNet.UserControl1"  
         width="288" height="72">
       </object>
       </font>  
     <form name="frm" id="frm">
       <input type="text" name="txt" value="enter text here"/><input type="button" value="Click me" onclick="doscript();"/>
      </form>
  <hr/>
 </body>  
<script type="text/javascript">
    function doscript() {
        UserControl1.UserText = frm.txt.value;
    }
</script>
</html>

Answer : ASP.Net Using a VB Class Libarary Help

You can use this link
http://grrargh.com/blog/publishing-a-microsoft-access-application-mde-with-clickonce/

which talks about Access, but the logic is the same. Pretty much any file or set of files can be included.
Random Solutions  
 
programming4us programming4us