Last post May 27, 2019 12:11 PM by simflex
May 27, 2019 02:58 AM|simflex|LINK
Is there a way that I can get this to work?
On the markup, I have this:
<td><a href="http://servername/Archives/" & folder.text & "/noose_" & build.text & ".wav">Listen</a></td>
On codebehind,I am passing to value of folder and build:
folder.Text = dr("folder").ToString()
build.Text = dr("build").ToString()
My <a href="""> is not recognizing folder.text and build.text
Thank you for your help
May 27, 2019 08:21 AM|Yongqing Yu|LINK
According to your questions and the code you provided, I suggest that you could use <%=%> to
accept text values.
<%=%> is short-hand for Response.Write (discussed here).
For more details, you could refer to the following code:
<a href='<%= "http://servername/Archives/"+ folder.Text+"/noose_"+build.Text+".wav" %>'>Listen</a>
May 27, 2019 12:11 PM|simflex|LINK
Thank you very much.
That worked perfectly.