473,806 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Embed VB.NET usercontrol DLL in Website

2 New Member
Hi Coding-Gurus :)

I hope you can help me:) I'm trying to embed my VB.NET usercontrol into a HTML document. I builded one that returns some HTML code.

When I call it on the body's event "onload" it says the object doesn't support the attribute or method. Please help me :) Whats going wrong? When I debug the VB.Net control everything works fine.

Expand|Select|Wrap|Line Numbers
  1. //Getting HTMLCode for the table 
  2. //called on body's onload event:
  3. function getTable()     
  4. {                  
  5. document.getElementById('content').innerHTML = myControl.initData();
  6. }
  7.  

Expand|Select|Wrap|Line Numbers
  1. //Embed Control at the end of html body
  2. <object id="myControl" name="myControl" classid="http:ActiveXDotNet.dll#ActiveXDotNet.myControl" width="0" height="0" style="visibility:hidden;" VIEWASTEXT>
  3. </object>    
  4.  
Have you got any idea what i did wrong?
Please help,
Best Regards,
Steffen
Jan 24 '08 #1
1 2064
Plater
7,872 Recognized Expert Expert
Is initData() marked as public in your DLL?
It's also possible that 'content' is either not found, or not returning an object that allows you to change the .innerHTML on. The latter is the most likely of scenarios.
Jan 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
13153
by: Stefan van Roosmalen | last post by:
Hi there, The first page of my Internet website must be INDEX.HTM. But, if I want to embed some PHP code in this page, I must rename it to INDEX.PHP. Easy, but not simple, because INDEX.PHP will not load as the default startup-page of my website. So, my question is: How can I embed some PHP code within a normal HTML page (without using the
0
3117
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format, which needs a Quicktime plugin, and one Java applet. He's also kindly supplied me with sample HTML code for each. The code looks like this (simplified):
7
2342
by: Sky | last post by:
What I have currently: I have a user control called mod_container.aspx that is basically two divs -- the top a toolbar, that expands/collapse the second div which can contain other modules/controls (eg a newsfeed, quick phonelist, login, etc.) But the controls end up too 'deep': it appears that it would be lighter/better if I could just enherit the uc_login.aspx directly off of the uc_container.aspx so that all modules have the same...
1
1524
by: Patrick | last post by:
Problem I have an ASPX file, with a table of 3 columns, 2 rows with a usercontrol in the middle column (in the code snippet stated below, although in reality, the left hand column would also have a user control). I have a "footer" on the second/bottom row. However, when the User Control in the middle column, first row is generating a lot of text, the text is "squashing" the text in the second role!
3
1706
by: Jeff Turner | last post by:
I want to install a few .NET assemblies on the local machine and then embed a UserControl in IE via COM -- in other words, I will wrap the assembly in COM and call it form IE so that my UserControl (that is installed locally) shows up on a web page. Has anyone done anything like this before? I can't imagine this isn't possible. Basically I want to leverage a .NET assembly installed on the local machine from inside the browser (with...
24
6278
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I can't figure out how to embed an image. Thanks for your time. -- Manuel
3
3043
by: Jeff | last post by:
Hey ASP.NET 2.0 This the ObjectDataSource in my UserControl, <asp:ObjectDataSource ID="odsMessage" runat="server" SelectMethod="ExecuteMessage" TypeName="AH.MyNetwork.BLL.Network.Message"> <SelectParameters> <asp:ProfileParameter Name="user" PropertyName="UserName"
3
2103
by: Carlo | last post by:
I would like to package several usercontrols in a dll. Then use them in another website. How do i accomplish this? I tried to add a reference of the 2nd website to the dll of the first website containing the usercontrols but i couldn't make it work.
3
1692
by: DougS | last post by:
I have a ASP.Net 1.1 application where I have several usercontrols, one is called DetailLine, that I add to a panel dynamically. I am converting the app to ASP.Net 2.0 and I cant do this anymore. LineType1 inherits from DetailLine which inherits from UserControl. 1 Dim ucLine As DetailLine ' this line bombs 2 ucLine = CType(Page.LoadControl("..\UserControls\LineType1.ascx"), DetailLine)
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10620
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10372
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.