html_code_clinic thread: ActiveX Component (DateTimePicker) not rendered.
Look up about the LPK tool from Microsoft. It is a rights issue...
-----Original Message-----
From: Anant.Joshi@n... [mailto:Anant.Joshi@n...]
Sent: Friday, February 16, 2001 3:23 PM
To: HTML Code Clinic
Subject: [html_code_clinic] ActiveX Component (DateTimePicker) not
rendered.
Hi all,
I have following code in my ASP page:
Response.Write "<object name='" & DtTmName & "' classid='clsid:20DD1B9E-
87C4-11D1-8BE3-0000F8754DA1' " & vbCr
Response.Write "CODEBASE=""Mscomct2.cab""" & vbCR
Response.Write "id='" & DtTmName & "' height='22' align=middle"
if DataFormat = "DATE" then
Response.Write " width='120'>" & vbCr
else
Response.Write " width='70'>" & vbCr
end if
The cab file is located in root folder of the application.
The file is downloaded to the client but DateTimePicker control is NOT
displayed.
I downloaded the file from
http://activex.microsoft.com/controls/vb6/MSCOMCT2.CAB
No matter how many times I refresh, the object just refuses to be displayed.
Thanks
- Anant