Solved

Evoking MS Common Controls from ASP

Posted on 1998-07-24
3
257 Views
Last Modified: 2013-12-25
MS provide all sorts of useful controls in their Internet Client SDK - eg; Tree View, Toolbar, Tab controls etc.

But I'm not clear how I'd go about evoking these controls from a server-side (ASP) script.

The documentation on individual common controls (starting at http://www.microsoft.com/msdn/sdk/inetsdk/help/itt/CommCtls/CommCtls.htm refers to the use of the controls from Internet Explorer, but it isn't clear how this could be done from the server side.

Does anyone have some tips or useful references?  
0
Comment
Question by:PeterA081597
  • 2
3 Comments
 

Accepted Solution

by:
sempf earned 100 total points
ID: 1858677
If you are using the ActiveX Control Pad or Visual Interdev or Drumbeat or any of those packages, they will have an Insert ActiveX Control function.  To do it manually will be a bear.  You will have to get the classID from the registry and then the datastring for the properties from VB or the control pad, as it is in Base64.  You may be able to enter the properties in ASCII, but I have never seen it done.  The code will look like:

<OBJECT ID="TabStrip1" WIDTH=100 HEIGHT=51
 CLASSID="CLSID:9ED94440-E5E8-101B-B9B5-444553540000"
 DATA="DATA:application/x-oleobject;BASE64,QETZnujlGxC5tURFU1QAACFDNBIIAAAAVgoAACsFAACKfuHmAgAFAC4AAAAC
AAAAAAAAAAHvzasAAAUAAAAAAAYAAAD//////////wAAAAAAAAAAAQAAAAAA
AAAAAAAAAAAf3uy9AQAFAAgAAABEAA==
">
</OBJECT>

to do this, I (In Interdev 1.0) right clicked on an asp script in the right pane for my context sensative menu, went to Insert ActiveX Control, selected the TabbedControl and then took the default properties - you will be able to use the wizard to select your properties.

=Good luck.

S
0
 

Author Comment

by:PeterA081597
ID: 1858678
Thanks sempf, that's excellent info.  

Does your answer imply that the target PC needs a certain ActiveX Control(OCX) installed?

Reason I ask is that the documentation on Microsoft's Internet Tools SDK discussed the common controls DLL which it's implied is available on all Win95 machines already, and also inherently in IE4.0. See the following on the tab control for example:

http://www.microsoft.com/msdn/sdk/inetsdk/help/itt/CommCtls/Tab/Tab.htm

What got me interested was the reference to "Tab Control Updates in Internet Explorer" (and other similar sections in other controls) which implies that IE4 inherently supports these controls with perhaps nothing more to be loaded.

Is this one and the same as what you are talking about?

Rgds.
0
 

Expert Comment

by:sempf
ID: 1858679
The target machine must have the control installed and registered or must download the control from your server.  All of the Internet SDK controls come registered with IIS, so if a client hits a page with a control, they will automagically be prompted to download.  I do believe that certail controls are inerently handled by IE, but I do not know which ones.  The internet SDK readme would tell you more.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
specific questions about shipping a coat 4 62
tutorial for ebay api 3 75
asp Google Map 2 55
Designing forms 3 41
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question