Solved

Evoking MS Common Controls from ASP

Posted on 1998-07-24
3
245 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now