Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Evoking MS Common Controls from ASP

Posted on 1998-07-24
3
Medium Priority
?
274 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 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to count occurrences of each item in an array.
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…
Suggested Courses

927 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