claracruz
asked on
Object required error...
Hello experts,
I am using http://www.asp101.com/articles/richard/ooasp/default.asp.
I need a bit of help with an error I am getting. The bit of the article Navigating from Authors to Books describes how to how do we navigate from our book object to the authors who wrote the book.
I am applying the same principle to my PRODUCTS and its FEATURES.
So I have this on my display page;-
<%
for each myProductFeatures in MyProductDetails.ProductFe atures.Ite ms
%>
<li><%=myProductFeatures.f eature%></ li>
<%
next
%>
But I get error :-
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/bedtime/product_details.a sp, line 81
<li><%=myProductFeatures.f eature%></ li> <---------LINE 81
But when i try the follwoing;-
<%
response.Write(MyProductDe tails.Prod uctFeature s.count)
response.End()
%>
It works fine.
How ever if I do the following;-
<%
for each myProductFeatures in MyProductDetails.ProductFe atures.Ite ms
%>
<li>gg<%=MyProductDetails. ProductFea tures.coun t%></li>
<%
response.End()
next
%>
I get the same error.
I have no idea why its behaving like this, as I have done similar for Products to Sizes and that works fine.
Can anyone haard a guess
I am using http://www.asp101.com/articles/richard/ooasp/default.asp.
I need a bit of help with an error I am getting. The bit of the article Navigating from Authors to Books describes how to how do we navigate from our book object to the authors who wrote the book.
I am applying the same principle to my PRODUCTS and its FEATURES.
So I have this on my display page;-
<%
for each myProductFeatures in MyProductDetails.ProductFe
%>
<li><%=myProductFeatures.f
<%
next
%>
But I get error :-
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/bedtime/product_details.a
<li><%=myProductFeatures.f
But when i try the follwoing;-
<%
response.Write(MyProductDe
response.End()
%>
It works fine.
How ever if I do the following;-
<%
for each myProductFeatures in MyProductDetails.ProductFe
%>
<li>gg<%=MyProductDetails.
<%
response.End()
next
%>
I get the same error.
I have no idea why its behaving like this, as I have done similar for Products to Sizes and that works fine.
Can anyone haard a guess
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.