<td colspan="3"><a href='<%# "DesktopModules/EditBqyHtmlText.aspx?BqyID=" + bqyid %>'><FONT size="2">添加新指标</FONT></a></td>
这句话为什么超链接最后为空?找了半天找不出原因来。

解决方案 »

  1.   

    有好长一阵子不用asp.net了。不能这样写么?string str="DesktopModules/EditBqyHtmlText.aspx?BqyID=" + bqyid;<td colspan="3"><a href='<%=str%>'><FONT size="2">添加新指标</FONT></a></td>不理解那个#号有什么作用?
      

  2.   

    可以这么写<td colspan="3"><a href= DesktopModules/EditBqyHtmlText.aspx?BqyID=<%#  qyid %>><FONT size="2">添加新指标</FONT></a></td>
      

  3.   

    <td colspan="3">
        <a href="DesktopModules/EditBqyHtmlText.aspx?BqyID=<%=bqyid%>">
            <FONT size="2">添加新指标</FONT>
        </a>
    </td>
      

  4.   

    定义bqyid为 public ,然后再试一下!
      

  5.   

    定义bqyid为 public,别忘了this.pagebind()
      

  6.   

    真晕, #是绑定输入,<% %>是直接输出,意义差远了