PDA

View Full Version : ASP0185 Default Property Missing


StuRowcliffe
12-04-2009, 10:27 AM
Hi all,

I am very new to coding and am in the process of editing some default scripts provided by our software supplier. I am trying to use a html hyperlink to load an asp page with a variable appended to the url path. My attempts have produced the error in the title

My code is as follows -


<%
if (eWare.Authenticated)
{
var compid=Request.QueryString("comp_companyid");
var Now=new Date();
var record

if (Defined(compid))
{
record=eWare.FindRecord("company","comp_companyid="+compid);
}

%>

<a href="./companydetail.asp?comp_companyid=<%= record%>">Company Information</a>

<%
}
%>

Can anyone point out the error of my ways?

Thanks

Mike_O
12-04-2009, 06:24 PM
Hey StuRowcliffe,

Based on what you provided, code seems okay, except remove the space between <%= record%> to make it <%=record%>. If that doesn't fix it, try to debug on the server-side. Say something like <%Response.Write(record)%>. Maybe your FindRecord(...) method is returning a null or something.

Regards,
Mike