|
-
Aug 2nd, 2006, 10:39 AM
#1
Thread Starter
Addicted Member
VB.NET 2003 Usercontrol on HTML page - what am I missing here...
This is going to sound like a really stupid question,
I'm not new to programming, but I am new to VB.Net and web development. I'm learning "web stuff" in my spare time and had a question about usercontrols on a web page.
namely - how do you do it?
Here's what I've done so far:
I have a user control - it works fine on a windows form.
I have added the namespace and interfaces to it:
Namespace ActiveXDotNet
Public Interface AxMyControl
Property Scaling() As Integer
Property ImageName() As String
Sub ShowImage()
End Interface
End Namespace
Now (if I understand it correctly) I should be able to go into a html file and use a object tag to "pull it in"..
<OBJECT id="uc_imageViewer1" name="uc_imageViewer1" classid="ActiveXDotNet.uc_ImageViewer">
This doesn't work but I don't know enough to know why. The HTML displays but not the control.
And help would be appriciated.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|