如何串联href的值 [英] How to concatenation href value

查看:239
本文介绍了如何串联href的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 ASP经典页,我需要显示在页面上有一定价值的链接。

下面是链接,我需要附加strEmp code的地址。

strEmp code =会议(EMP code)

 < TD><立GT;
    < A HREF =htt​​p://192.1.1.1:85/reports.aspx?emp$c$c=&安培; strEmp code>报告< / A>
 < TD><立GT;

于是就点击它应该以这种形式传递地址:

  http://192.1.1.1:85/reports.aspx?emp$c$c=123

我需要证明它的设计时间(内嵌页)不运行。

我该如何解决呢?


解决方案

 < A HREF =HTTP://192.1.1.1:85 / reports.aspx EMP code =<%= strEmp code%GT;'>报告< / A>

只是来连接strEmp code到URL。如果这一变种得到一个值不是从现在开始你的问题清晰...

I have got asp classic page and i need to show link with some value on the page.

Here is the link and i need to attach strEmpcode with the address.

strEmpcode = session("empcode")

 <td><li>
    <a href="http://192.1.1.1:85/reports.aspx?empcode= & strEmpcode"> Report</a>
 <td><li>

So on click it should pass the address in this form:

http://192.1.1.1:85/reports.aspx?empcode=123

I need to show it on design time (inline page) not on runtime.

How can i fix it?

解决方案

<a href='http://192.1.1.1:85/reports.aspx?empcode=<%=strEmpcode %>'> Report</a>

Just to concatenate strEmpcode to the URL. Where that var gets a value is not clear from your question now...

这篇关于如何串联href的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆