Quote:
Originally Posted by Plater
What exactly are we looking at here?
It doesn't quite match the pattern of ASP.NET or html?
It is a combination of HTML, VB and Javascript. The file extenstion is aspx. The below part of the code does not work or I don't know how to make it work.
- <TR>
-
<TD ALIGN="CENTER" COLSPAN="15">
-
<SCRIPT>
-
var myLocation<%=""%>
-
var myLocation<%=myI%>
-
var ReportName<%=myI%> = "Time in System Report"
-
var SQLStr<%=myI%> = escape("<%=SQLStr%>");
-
myLocation<%=myI%>="rMetricXL.aspx?RiskTable=" + SQLStr<%=myI%> + "&ReportName=" + ReportName<%=myI%>
-
</SCRIPT>
How can I translate the above script in the HREF so that a button is displayed and on click a report is generated.
- <a HREF="rMetricXL.aspx?RiskTable=javascript:escape("<%=SQLStr%>")" "&ReportName=" + ReportName<%=myI%>> <img src="images/excelreport2.gif" BORDER="0" alt="Excel version of home list"></a>
-
</TD>
-
<%myI = myI + 1%>
-
</TR>