473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Deployment of Windows User Controls for Web Pages

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="HelloWorldControl1"
classid="http://localhost/HelloWorldControlHost/HelloWorldControl.dll#HelloWorldControl.HelloWorld Ctl"
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
Oct 24 '05 #1
3 2238
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="HelloWorldControl1"

classid="http://localhost/HelloWorldControlHost/HelloWorldControl.dll#
HelloWorldControl.HelloWorldCtl"

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

Oct 24 '05 #2
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**********@rendersoft.com> wrote in message
news:dj*******************@news.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="HelloWorldControl1"
classid="http://localhost/HelloWorldControlHost/HelloWorldControl.dll#HelloWorldControl.HelloWorld Ctl"
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

Oct 25 '05 #3
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="HelloWorldControl1"
classid="http://localhost/HelloWorldControlHost/HelloWorldControl.dll#HelloWorldControl.HelloWorld Ctl"
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

Oct 26 '05 #4

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

Similar topics

0
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...
5
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...
4
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....
5
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...
1
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...
0
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...
4
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...
0
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.