<a href='MyPhoto.aspx?DelID=<%# Eval("album_id") %>&index=hddnPageIndex.value' />
这个链接的传值怎么写
hddnPageIndex.value 是一个隐藏标签

解决方案 »

  1.   

    <a href='MyPhoto.aspx?DelID= <%# Eval("album_id") %>&index='+hddnPageIndex.value /> 
      

  2.   

    hd使用js操作,例<a onclick='javascript:...'
      

  3.   

    <a href='MyPhoto.aspx?DelID=<%# Eval("album_id") %>&index='+hddnPageIndex.value id="btndel" onclick="return confirm('确定要删除吗?')">删除</a>
      

  4.   

    <a href="#" onclick="javascript:this.href='MyPhoto.aspx?DelID=<%Eval("album_id")%>&index='+document.getElementById("hddnPageIndex").value" />
      

  5.   

    估计要取隐藏标签的ClientID,Rs改下~~<a href="#" onclick="javascript:this.href='MyPhoto.aspx?DelID= <%Eval("album_id")%>&index='+document.getElementById(%=hddnPageIndex.ClientID%>').value" />
      

  6.   

    汗,少了个"<":
    估计要取隐藏标签的ClientID,Rs改下~~ <a href="#" onclick="javascript:this.href='MyPhoto.aspx?DelID= <%Eval("album_id")%>&index='+document.getElementById('<%=hddnPageIndex.ClientID%>').value" />
      

  7.   

    <a href='<%#Eval("album_id","MyPhoto.aspx?DelID={0}&index=hddnPageIndex.value")%>
      

  8.   

    <a href='<%#Eval("album_id","MyPhoto.aspx?DelID={0}&index=hddnPageIndex.value")%>