Hi,
Was wondering if anybody could point me in the right direction.
I'm looking at developing a Windows User Control using Visual Studio .NET
2005 in C#. The user control is to be used on a web page to replace an
existing Java applet. One of the main reasons for switching from Java to
the Windows User Control is to reduce the amount of the time spent maintain
two lots of source code, keeping the online and offline versions in sync.
So the creating a Windows User Control, would help in this matter.
I haven't seen many samples on how to achieve creating a Windows User
Control using C#. The ones that I have seen, seem to implement the Windows
User Controls like ActiveXs. Using the Object Tag in the HTML file, as
follows:
<object id="HelloWorldC ontrol1"
classid="http://localhost/HelloWorldContr olHost/HelloWorldContr ol.dll#HelloWor ldControl.Hello WorldCtl"
height="500" width="500" VIEWASTEXT>
</object>
Using the # to specify the Assemblyname and class to invoke.
Firstly, is this the correct way of doing it. Or is there a better method
that I haven't found as yet?
I also noticed that the when the custom control is download, it states that
it is unsigned. Am I correct in thinking that I will need to sign the
custom control, using a digital signature from Verisign?
Once signed, will the user still be prompted to install the control or is
there someway of avoiding the dialog be presented to them?
Is it also possible to use a cab file, just in case there are an additional
dlls that are required by the custom control ? If so will this be
transparent to the users, or will they see some sort of installation being
performed?
My major problem, is that I want this to work on as many machines as
possible. But nowadays a lot of system managers are restricting what can
and can't be installed on the users machines and I don't want to lose these
users....
Thanks
Wayne 3 2279
Hello Wayne,
On the MSDN site there is a webcast nugget that should help. You can download
it at: http://download.microsoft.com/downlo...in_Browser.zip
Regards,
Andrew McNerlin Hi, Was wondering if anybody could point me in the right direction. I'm looking at developing a Windows User Control using Visual Studio .NET 2005 in C#. The user control is to be used on a web page to replace an existing Java applet. One of the main reasons for switching from Java to the Windows User Control is to reduce the amount of the time spent maintain two lots of source code, keeping the online and offline versions in sync. So the creating a Windows User Control, would help in this matter.
I haven't seen many samples on how to achieve creating a Windows User Control using C#. The ones that I have seen, seem to implement the Windows User Controls like ActiveXs. Using the Object Tag in the HTML file, as follows:
<object id="HelloWorldC ontrol1"
classid="http://localhost/HelloWorldContr olHost/HelloWorldContr ol.dll# HelloWorldContr ol.HelloWorldCt l"
height="500" width="500" VIEWASTEXT>
</object>
Using the # to specify the Assemblyname and class to invoke.
Firstly, is this the correct way of doing it. Or is there a better method that I haven't found as yet?
I also noticed that the when the custom control is download, it states that it is unsigned. Am I correct in thinking that I will need to sign the custom control, using a digital signature from Verisign? Once signed, will the user still be prompted to install the control or is there someway of avoiding the dialog be presented to them? Is it also possible to use a cab file, just in case there are an additional dlls that are required by the custom control ? If so will this be transparent to the users, or will they see some sort of installation being performed?
My major problem, is that I want this to work on as many machines as possible. But nowadays a lot of system managers are restricting what can and can't be installed on the users machines and I don't want to lose these users....
Thanks
Wayne
Correct...I'd avoid the use of windows user controls in
a web browser like the plague. Even for IE users, you'll
run into all sorts of users who are either not permitted to
install your control or have problems getting it to work
once installed because of security settings.
It isn't worth the headaches...
Unless you need to work with files on the user's
desktop, I'd suggest writing the functionality in
script or write the core functionality you need
in the flash player. Many companies will permit
flash installs if it isn't already installed (which it is
very, very likely to already be there).
--
Robbe Morris - 2004/2005 Microsoft MVP C# http://www.masterado.net
"Wayne Gibson" <wa**********@r endersoft.com> wrote in message
news:dj******** ***********@new s.demon.co.uk.. . Hi, Was wondering if anybody could point me in the right direction.
I'm looking at developing a Windows User Control using Visual Studio .NET 2005 in C#. The user control is to be used on a web page to replace an existing Java applet. One of the main reasons for switching from Java to the Windows User Control is to reduce the amount of the time spent maintain two lots of source code, keeping the online and offline versions in sync. So the creating a Windows User Control, would help in this matter.
I haven't seen many samples on how to achieve creating a Windows User Control using C#. The ones that I have seen, seem to implement the Windows User Controls like ActiveXs. Using the Object Tag in the HTML file, as follows:
<object id="HelloWorldC ontrol1" classid="http://localhost/HelloWorldContr olHost/HelloWorldContr ol.dll#HelloWor ldControl.Hello WorldCtl" height="500" width="500" VIEWASTEXT> </object>
Using the # to specify the Assemblyname and class to invoke.
Firstly, is this the correct way of doing it. Or is there a better method that I haven't found as yet?
I also noticed that the when the custom control is download, it states that it is unsigned. Am I correct in thinking that I will need to sign the custom control, using a digital signature from Verisign? Once signed, will the user still be prompted to install the control or is there someway of avoiding the dialog be presented to them?
Is it also possible to use a cab file, just in case there are an additional dlls that are required by the custom control ? If so will this be transparent to the users, or will they see some sort of installation being performed?
My major problem, is that I want this to work on as many machines as possible. But nowadays a lot of system managers are restricting what can and can't be installed on the users machines and I don't want to lose these users....
Thanks
Wayne
Wayne,
Please do not cross post. I haven't seen many samples on how to achieve creating a Windows User Control using C#. The ones that I have seen, seem to implement the Windows User Controls like ActiveXs. Using the Object Tag in the HTML file, as follows:
[object id="HelloWorldC ontrol1" classid="http://localhost/HelloWorldContr olHost/HelloWorldContr ol.dll#HelloWor ldControl.Hello WorldCtl" height="500" width="500" VIEWASTEXT] [/object]
Using the # to specify the Assemblyname and class to invoke.
Firstly, is this the correct way of doing it. Or is there a better method that I haven't found as yet?
This is the new way of doing it. When using the new syntax, the security
will be managed by the CLR's CAS (code access security system).
Your control won't be able to do much w/out user's approval.
I also noticed that the when the custom control is download, it states that it is unsigned. Am I correct in thinking that I will need to sign the custom control, using a digital signature from Verisign?
Yes.
Once signed, will the user still be prompted to install the control or is there someway of avoiding the dialog be presented to them?
It probably depends on user's Internet Explorer settings.
Is it also possible to use a cab file, just in case there are an additional dlls that are required by the custom control ? If so will this be transparent to the users, or will they see some sort of installation being performed?
It is, but in this case you cannot use the way described above.
You have to do it the old ActiveX way:
- register the Control for COM interop
- mark the control: [ComVisible(true )]
- give it a GUID: [Guid("....")]
- package the cab
- sign the cab
- deploy
CRL's CAS doesn't interact (by default) with .NET controls exposed
as ActiveX objects. However, restrictive admins are able to ban
every .NET component they don't explicitly trust.
My major problem, is that I want this to work on as many machines as possible. But nowadays a lot of system managers are restricting what can and can't be installed on the users machines and I don't want to lose these users....
Using .NET Controls would "slightly" limit the audience:
Internet Explorer and the .NET runtime are required.
Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brian Young |
last post by:
(Sorry for double post)
We are investigating the conversion of all our Legacy applications to
VS.Net. Most of our applications run as ActiveX Controls hosted in Internet
Explorer. This has made our support of the controls for updates very easy
as we currently just publish the updated MSI files to Active Directory - we
are using Intellimirror and GPO w/ Active directory to update our
applications on all of our client computers. The...
|
by: Arun Bhalla |
last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My
application is using the Windows Installer Bootstrap. (I may have also
installed a module which detects requirements (.NET 1.1 -> MsiNetAssembly
Support.) I have a few issues and questions regarding the MSI and its
properties.
* This may be my biggest annoyance at the moment. When the installer creates
the target directory, it's setting them as read-only. When the...
|
by: Andrew |
last post by:
Hey all,
I would like to preface my question by stating I am still learning ASP.net
and while I am confident in the basics and foundation, the more advanced
stuff is still a challenge. Ok. :)
|
by: DEWright_CA |
last post by:
I have a app that I built for a client. I was able to deploy it to a test
server without any real issue. I copied the bin folder to my server, copied
over the aspx pages and made the virtual directory under IIS/5 executable.
Everything worked great!
Now I am trying to deploy the same app on a Windows 2003 server using the
same methodology and I can't get it to function. I followed the same steps
above and the basic pages load fine, but...
|
by: SteveComplex |
last post by:
I'm currently working on a project developing a web application that makes
heavy use of 3rd-party controls, popup windows and frames ( not my design I
hasten to add ).
Some of the pages make use of several user controls embedded in a tab
control. Needless to say that the page size can be somewhat on the large
size, including a lot of information being stored in viewstate.
I'm currently looking for a solution to resolve the problem of...
| |
by: Brian Young |
last post by:
My department is responsible for creating custom internal applications for
many of our departments. Our strategy has always been to develop our
applications as ActiveX controls (VB6) that get hosted in Internet Explorer.
I've been tasked with coming up with a strategy for our migration to using
VB.Net. So far, I've experienced a number of items that caused us a few
stalls, but mostly was able to resolve them after some thinking and...
|
by: James |
last post by:
I have a VB windows forms application that accesses a Microsoft Access
database that has been secured using user-level security. The
application is being deployed using No-Touch deployment. The objective
in utilizing this new deployment method is to reduce the maintenance
overhead as well as making it easier for my users to setup and run the
application initially. I have VS 2002, Windows XP, Access XP(2000
format).
He is my problem....
|
by: James |
last post by:
I have a VB windows forms application that accesses a Microsoft Access
database that has been secured using user-level security. The
application is being deployed using No-Touch deployment. The objective
in utilizing this new deployment method is to reduce the maintenance
overhead as well as making it easier for my users to setup and run the
application initially. I have VS 2002, Windows XP, Access XP(2000
format).
He is my problem....
|
by: Wayne Gibson |
last post by:
Hi,
Was wondering if anybody could point me in the right direction.
I'm looking at developing a Windows User Control using Visual Studio .NET
2005 in C#. The user control is to be used on a web page to replace an
existing Java applet. One of the main reasons for switching from Java to
the Windows User Control is to reduce the amount of the time spent maintain
two lots of source code, keeping the online and offline versions in sync.
So...
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |