473,797 Members | 3,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Embed UserControl in IE from local assembly or GAC ?

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 permissions granted from
the user, of course).

Any ideas? Thanks for the help.

Nov 20 '05 #1
3 1705
The problem you will face is that the control is processed by IIS before
being given to the browser. IE knows nothing about the UserControl or
ASP.NET, but rather just renders the HTML. It is not really a matter of how
to get the UserControl rendered in IE. As long as it is given HTML, it is
fine. The problem is, what will process the ASP.NET code and generate the
HTML.

"Jeff Turner" <zi****@gmail.c om> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
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 permissions granted from
the user, of course).

Any ideas? Thanks for the help.

Nov 20 '05 #2
Peter - thanks for the reply.

I should clarify, that when I say "UserContro l", I'm talking about a
WinForm UserControl, not an ASPNET control...

In more detail I'm actually trying to display a video preview window
from a webcam attached to the local machine that I control through a
(winform) UserControl installed on the local machine.

Nov 20 '05 #3
Peter, thanks for the reply.

I should clarify that when I say "UserContro l" I'm talking about a
WinForm UserControl, not an ASPNET control...

In more detail, I'm trying to display a live video feed from a webcam
through a (winform) UserControl that is installed locally.

So I'm really trying to embed a WinForm control in the browser but I
want that control to be installed locally so it can have a specific set
of permissions that are set on install.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3180
by: Dave McCracken | last post by:
I am hosting .Net UserControls in HTML pages with Object Tags. These UserControls are clients of remotable objects that run on the same machine. The remote objects execute callbacks via sponsor objects. The UserControl client creates and passes these sponsor objects to the remote objects. I am able to launch .Net UserControls and their dependent .Net components in HTML pages using the Object tag. I had to do the following to get it to...
2
3822
by: Eric Barr | last post by:
I've found myself using XSD files for my datasets. I'm loading them up from disk right now. I was hoping there was a way to embed the file in the assembly, so I could have access to it without the disk read. I know I could build a kludge of a string builder function ...I was looking for a way to embed the entire file in my assembly. Is this possible ?
0
3800
by: keith | last post by:
I have a win app that will load a usercontrol which is in a dll file, e.g. UserControl1.dll. The UserControl1.dll refers another usercontrol which is in another dll file, e.g. UserControl2.dll. In the win app, Assembly assembly=Assembly.LoadFrom(@"c:\temp\usercontrol1.dll"); Control control=(Control)System.Activator.CreateInstance(namespace.classname); Then add the control to a form in the win app.
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...
2
4633
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation for me! I apologize for the length of this posting, but I wanted to make sure that I get an answer other than "Hey man, just use LoadControl!", because this is not what I want. The Task: Isolate a collection of web forms which are created as
2
1245
by: Kym | last post by:
I have an application which dynamically inserts a UserControls at run time. When I instansiate the UserControl I need to pass it an object however I am getting errors like... 'Value of type MyWinApp.cObject cannot be converted to MyUserControl.cObject' Can someone please let me know how to do this? All the Best Kym
2
1654
by: Alex Maghen | last post by:
I want to create a utility function that will seach the current page for one of my UserControls by it's type. So, let's say that I have a UserControl whose class I defined as follows: namespace MyUtils { public partial class SomeUserControl : System.Web.UI.UserControl { ... }
0
1585
by: Mark | last post by:
I am converting a VB6/COM application to VB.NET and must remove all COM objects. VB6/COM App Architecture: Windows Form hosts WebBrowser which loads HTML snippets from local disk. Some of the HTML snippets contain <objecttags for ActiveX Control. ActiveX Control loads and works without issue. VB.NET App Architecture: SAME as above except for: The WebBrowser Control is initially seeded by loading HTML from local disk. All Other
1
2064
by: Kaysetoaster | last post by:
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. //Getting HTMLCode for the table //called on body's onload event: function getTable()
0
10468
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...
0
10245
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10205
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
10021
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
9063
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
6802
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2933
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.