473,406 Members | 2,549 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,406 software developers and data experts.

ASP and ActiveX control client side - 101

Hi. I have never worked on a project that requires IE. So I have done the
vast majority of my work server side, delivering cross-browser compliant
HTML to the client. I am working on a bug fix to a system that is a munch of
ASP, ASP.NET with hard-core client side JScript, VBScript (client-side) and
ActiveX controls. The problem in question involves functionality that is
common to an ActiveX control delivered to the client. I have never
understood how the ActiveX control gets delivered to the client from the
server. So I came here to you helpful folks.

Let's say I have an ASP project that contains an ActiveX control. What do I
put on the server to ensure the control gets downloaded? A CAB file for the
control? How does the server deliver the control to the client? What could
prevent the control from making it to the client?

I do not even know for sure if these questions make sense. The weird thing
is that if a client hits the page which uses the control from one web
*server* it works fine. When the same client hits the same page on a
different server, they get an error that the Object doesn't support this
property or method. It is clearly a client-side VBScript error.

So if you have an app that is sitting on several servers behind a load
balancer, what signature is required on the control to tell the client that
it is the same one?

Anyway, I am fumbling a little, but sometimes when I ramble, someone has
some pointers to give me a push into directions to look at. The code on the
servers is the same. I checked that.

Thanks for your help.

S
Jul 19 '05 #1
2 2265
"Stephanie Stowe" <No****@IWishICould.com> wrote in message
news:em**************@TK2MSFTNGP12.phx.gbl...
Hi. I have never worked on a project that requires IE. So I have done the
vast majority of my work server side, delivering cross-browser compliant
HTML to the client. I am working on a bug fix to a system that is a munch
of
ASP, ASP.NET with hard-core client side JScript, VBScript (client-side)
and
ActiveX controls. The problem in question involves functionality that is
common to an ActiveX control delivered to the client. I have never
understood how the ActiveX control gets delivered to the client from the
server. So I came here to you helpful folks.

Let's say I have an ASP project that contains an ActiveX control. What do
I
put on the server to ensure the control gets downloaded? A CAB file for
the
control? How does the server deliver the control to the client? What could
prevent the control from making it to the client?
A CAB or the OCX. You reference it with the codebase property so the client
knows where to get it.
I do not even know for sure if these questions make sense. The weird thing
is that if a client hits the page which uses the control from one web
*server* it works fine. When the same client hits the same page on a
different server, they get an error that the Object doesn't support this
property or method. It is clearly a client-side VBScript error.

So if you have an app that is sitting on several servers behind a load
balancer, what signature is required on the control to tell the client
that
it is the same one?
It's the control's version number - that should be included as part of the
codebase in your client-side code for the object. The client looks at the
version installed versus what the code says.
Anyway, I am fumbling a little, but sometimes when I ramble, someone has
some pointers to give me a push into directions to look at. The code on
the
servers is the same. I checked that.


Here's an example:

<OBJECT id=control1 name=control1
codeBase=http://server/controls/control.cab#Version=2,6,3,2 >

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #2

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:cj********@kcweb01.netnews.att.com...
"Stephanie Stowe" <No****@IWishICould.com> wrote in message
news:em**************@TK2MSFTNGP12.phx.gbl...
Hi. I have never worked on a project that requires IE. So I have done the vast majority of my work server side, delivering cross-browser compliant
HTML to the client. I am working on a bug fix to a system that is a munch of
ASP, ASP.NET with hard-core client side JScript, VBScript (client-side)
and
ActiveX controls. The problem in question involves functionality that is
common to an ActiveX control delivered to the client. I have never
understood how the ActiveX control gets delivered to the client from the
server. So I came here to you helpful folks.

Let's say I have an ASP project that contains an ActiveX control. What do I
put on the server to ensure the control gets downloaded? A CAB file for
the
control? How does the server deliver the control to the client? What could prevent the control from making it to the client?
A CAB or the OCX. You reference it with the codebase property so the

client knows where to get it.
I do not even know for sure if these questions make sense. The weird thing is that if a client hits the page which uses the control from one web
*server* it works fine. When the same client hits the same page on a
different server, they get an error that the Object doesn't support this
property or method. It is clearly a client-side VBScript error.

So if you have an app that is sitting on several servers behind a load
balancer, what signature is required on the control to tell the client
that
it is the same one?
It's the control's version number - that should be included as part of the
codebase in your client-side code for the object. The client looks at the
version installed versus what the code says.
Anyway, I am fumbling a little, but sometimes when I ramble, someone has
some pointers to give me a push into directions to look at. The code on
the
servers is the same. I checked that.


Here's an example:

<OBJECT id=control1 name=control1
codeBase=http://server/controls/control.cab#Version=2,6,3,2 >

Sweet. Thanks.
--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://www.tryiis.com

Jul 19 '05 #3

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

Similar topics

0
by: Yaseen | last post by:
I am not sure if someone can help me, but please bare with me for a second... My problem is to retreive the Client's Printer Collection for a web application and then print to the client's default...
5
by: Andrew | last post by:
Hi all, I am still getting into ASP/VB.net and have a concern about something I see coming. Currently our entire website is classic ASP, yet the feelings from on high is that we need to start...
5
by: ESPN Lover | last post by:
I need a good primer in how to program an ActiveX control that is launched client side to communicate with the server. I've read thru three C# books and none of them even touch on the subject. ...
1
by: Anand Kale | last post by:
How to have ActiveX control called from Web Form in ASP.Net ? ActiveX control is written using VC++/MFC/ATL-COM. Also kindly answer following issues, 1. Also how to take care of issues about...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
3
by: Weston Fryatt | last post by:
Simple question I hope.... How do I send data to and from an ASP.Net (server side) web page to a ActiveX Control (client side) embedded in a web browser??? What I need to do, is I have image...
1
by: Frank | last post by:
Short Version of Question: Can anyone provide an example of how I should embed the ActiveX and license, and then use it in a function?
3
by: Weston Fryatt | last post by:
I have a custom written ActiveX Control (written in VC++ 7 unmanaged) that is embedded on a web page, I need to be able to send events (like button click and toolbar clicks) from the ActiveX...
1
by: Jialiang Ge [MSFT] | last post by:
Hello Philippe, In addition to bruce's points, I'd suggest the KB article http://support.microsoft.com/kb/317392. It demonstrates how to host an ActiveX control in ASP.NET (for your first...
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...
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
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...
0
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,...
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
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...
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.