hi,
have put a java 'no records alert' in this script.
what i cant work out is where to put
target="_blank"
so that if the page is opened it goes to a new page.
i did have it at the end but then the alert was opening
in a blank page.
i only want a blank page if there are records.
i think its got to go before the ELSE...
have put a java 'no records alert' in this script.
what i cant work out is where to put
target="_blank"
so that if the page is opened it goes to a new page.
i did have it at the end but then the alert was opening
in a blank page.
i only want a blank page if there are records.
i think its got to go before the ELSE...
Code:
<td class=dfasp><div align="center"><a href="<% If (countcurdealnew) > 0 Then Response.Write "dealgrouprep1.asp?lockey=" & Server.URLEncode(lockey) & "&barid=" & Server.URLEncode(barid) & "&nuid=" & Server.URLEncode(1) & "&cfdid="& Server.URLEncode(1) Else Response.Write "javascript:alert('*No Deals to View*');" End If %>"><%=countcurdealnew%></a></div></td>