vispi
Jun 6th, 2000, 09:23 PM
An self developed activeX control containing a MSFLexGrid needs to be used in ASP for displaying the data.(Can't help it ;such is the requirement).
I have exposed a property called "recordset"
This property needs to be assigned to a variable "rowsretrieved" through asp page
where
rowsretrieved=myobj.viewclientdetais("xxx")..on asp..No problem
and
viewclientdetails=rs.getrows..in dll...No Problem..
The code for the control is shown.
Private m_recordset As Variant
Public Property Get recordset() As Variant
recordset = m_recordset
End Property
Public Property Let recordset(ByVal vNewValue As Variant)
m_recordset = vNewValue
PropertyChanged "recordset"
populategrid
End Property
Private Sub populategrid()
FGViewClients.Rows = UBound(m_recordset, 2) + 1
FGViewClients.Cols = UBound(m_recordset, 1) + 1
For i = 0 To FGViewClients.Rows - 1
FGViewClients.Row = i
For j = 0 To FGViewClients.Cols - 1
FGViewClients.Col = j
FGViewClients.Text = Trim(m_recordset(j, i))
Next j
Next i
end sub
When a standard exe is added to this project and in the form load event when I retrieve the recordset and pass it to the control's property
like ctrl1.recordset=rowsretrieved
the grid correctly displays the value .
But thru asp I am facing problems:
<% rowsretrieved=myobj.viewclientdetails("xxx") %>
The object tag along with param name=recordset value=<%rowsretrieved%> is included.
MSDN has to say this
If the <OBJECT> tag includes any <PARAM NAME> attributes, the property values supplied with those attributes are passed to the control's ReadProperties event using the standard PropertyBag object
If any friend out there has developed an activeX control for use in ASP pl. share the secret
SOS
Vispi
I have exposed a property called "recordset"
This property needs to be assigned to a variable "rowsretrieved" through asp page
where
rowsretrieved=myobj.viewclientdetais("xxx")..on asp..No problem
and
viewclientdetails=rs.getrows..in dll...No Problem..
The code for the control is shown.
Private m_recordset As Variant
Public Property Get recordset() As Variant
recordset = m_recordset
End Property
Public Property Let recordset(ByVal vNewValue As Variant)
m_recordset = vNewValue
PropertyChanged "recordset"
populategrid
End Property
Private Sub populategrid()
FGViewClients.Rows = UBound(m_recordset, 2) + 1
FGViewClients.Cols = UBound(m_recordset, 1) + 1
For i = 0 To FGViewClients.Rows - 1
FGViewClients.Row = i
For j = 0 To FGViewClients.Cols - 1
FGViewClients.Col = j
FGViewClients.Text = Trim(m_recordset(j, i))
Next j
Next i
end sub
When a standard exe is added to this project and in the form load event when I retrieve the recordset and pass it to the control's property
like ctrl1.recordset=rowsretrieved
the grid correctly displays the value .
But thru asp I am facing problems:
<% rowsretrieved=myobj.viewclientdetails("xxx") %>
The object tag along with param name=recordset value=<%rowsretrieved%> is included.
MSDN has to say this
If the <OBJECT> tag includes any <PARAM NAME> attributes, the property values supplied with those attributes are passed to the control's ReadProperties event using the standard PropertyBag object
If any friend out there has developed an activeX control for use in ASP pl. share the secret
SOS
Vispi