Solved

Evoking MS Common Controls from ASP

Posted on 1998-07-24
3
255 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
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.

772 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