try
<script language=javascript>
documnet.write("<a href=show.aspx?username="+document.all.Label1.innerText+">");
</script>
<asp:Label id="Label" runat="server" Width="277px"></asp:Label>
<script language=javascript>
document.write("</a>");
</script>

解决方案 »

  1.   

    不行,提示为
    'document.all.Label1.innerText' is null or not an object我想问题的关键在于如何取到这个服务端label的值?
      

  2.   

    try<a href="show.aspx?username=" onclick="this.href += this.children[0].innerText"><asp:Label id="NameLabel" runat="server" Width="277px">text</asp:Label></a>
      

  3.   

    Sub Window_OnLoad()    Document.All("NameLabel").InnerText = "<a he.. >" & Document.All("NameLabel").InnerText & "<a/>
    End Sub
      

  4.   

    or :
    服务器端:
     NameLabel.Attributes("OnClick") = "VBScript:GoPage()"客户端:
    Function GoPage()
       
        写上打开新页面的代码
    End Function