Discussion:
DRW conditional image
(too old to reply)
Simon Weaver
2003-10-01 14:20:46 UTC
Permalink
Hi

I have been onto this all morning with partial success. I
have tested the conditional logic by
writing "available" / "not available" into the appropriate
cells. That's working fine.
But when I attempt to write my image and anchor I get the
following error message

***********************************************************
***
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services


Unterminated string constant
/test/6050.asp, line 164, column 93
Response.write("<td valign=""top""><a href=""6060.asp?
id_row=<%=FP_FieldURL(fp_rs,""id_row"")

***********************************************************
***

My code is as follows...

<td>

<%DIM slot1 : slot1 = FP_Field(fp_rs,"1")

If Left(slot1,1)="<" then%>
<%=FP_Field(fp_rs,"1")%>
<%else%>
<%Response.write("<td valign=""top""><a href=""6060.asp?
id_row=<%=FP_FieldURL(fp_rs,""id_row"")%>&per=<%=""2""%
&iDate=<%=Request(""iDate"")%>""><img border=""0""
src=""images/clip.jpg"" hspace=""5"" align=""middle""
alt=""Slot 2""></a>")%>
<%end if%>

</td>

The error is undoubtly in the Response.Write syntax,
probably the way I am incorporating the QueryString.

I need to get all the string identifiers into place - can
anyone see the obvious ??

TIA, Simon
Stefan B Rusynko
2003-10-02 08:32:11 UTC
Permalink
This visual basic newsgroup has been discontinued.
You may wish to post in
microsoft.public.frontpage.programming
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Simon Weaver" <***@msn.com> wrote in message news:1b95601c38827$345c1d60$***@phx.gbl...
| Hi
|
| I have been onto this all morning with partial success. I
| have tested the conditional logic by
| writing "available" / "not available" into the appropriate
| cells. That's working fine.
| But when I attempt to write my image and anchor I get the
| following error message
|
| ***********************************************************
| ***
| HTTP 500.100 - Internal Server Error - ASP error
| Internet Information Services
|
|
| Unterminated string constant
| /test/6050.asp, line 164, column 93
| Response.write("<td valign=""top""><a href=""6060.asp?
| id_row=<%=FP_FieldURL(fp_rs,""id_row"")
|
| ***********************************************************
| ***
|
| My code is as follows...
|
| <td>
|
| <%DIM slot1 : slot1 = FP_Field(fp_rs,"1")
|
| If Left(slot1,1)="<" then%>
| <%=FP_Field(fp_rs,"1")%>
| <%else%>
| <%Response.write("<td valign=""top""><a href=""6060.asp?
| id_row=<%=FP_FieldURL(fp_rs,""id_row"")%>&per=<%=""2""%
| >&iDate=<%=Request(""iDate"")%>""><img border=""0""
| src=""images/clip.jpg"" hspace=""5"" align=""middle""
| alt=""Slot 2""></a>")%>
| <%end if%>
|
| </td>
|
| The error is undoubtly in the Response.Write syntax,
| probably the way I am incorporating the QueryString.
|
| I need to get all the string identifiers into place - can
| anyone see the obvious ??
|
| TIA, Simon
|
Loading...