Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ResponseWrite Problem

Status
Not open for further replies.

Jimuniguy

Technical User
Mar 6, 2002
363
0
0
GB
Hi,

Upto now, I have been using simple HTML to write a
Code:
a href
link with a ASP ending (carries a variable string) so that it would look like
Code:
<a href=&quot;me.htm<%=variablestring%>&quot;>Click Here</a>

Now I have been tinkering with me code and now do a dynamic [code]A href
link but having problems inserting the variablestring bit in too.

New code is:

Code:
response.write &quot; &gt; <a href=&quot;&quot;&quot; & DirPath & &quot;&quot;&quot;  style=&quot;&quot;text-decoration:none&quot;&quot;>&quot; & strTmpPath & &quot;</a>

I need to add into it the &quot;=variablestring&quot; bit too but I keep getting back &quot;expected end of statement&quot;

Where should it go?

James

 
Assume:

- DirPath = &quot;me.htm&quot;
- VariableString = &quot;?val=123&quot;

Code:
response.write &quot;<a href=&quot;&quot;&quot; & DirPath & VariableString & &quot;&quot;&quot; style=&quot;&quot;text-decoration:none&quot;&quot;>&quot; & strTmpPath & &quot;</a>&quot;

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top