Solved

Evoking MS Common Controls from ASP

Posted on 1998-07-24
3
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

710 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