<a href='ShopProjectList.aspx?Tickettemplateid=<%#DataBinder.Eval(Container,"DataItem.Tickettemplateid")%>&DateStart=document.getElementById("TextBox1").value&DateEnd=document.getElementById("TextBox2").value' style="FONT-SIZE: x-small">
DateStart=document.getElementById("TextBox1").value这句符号怎么改啊?

解决方案 »

  1.   

    用js:
    a href="javascript:GoUrl(<%#DataBinder.Eval(Container,"DataItem.Tickettemplateid")%>);"function GoUrl(id)
    {
       window.location = "'ShopProjectList.aspx?Tickettemplateid="+id
    +"&DateStart="+ =document.getElementById("TextBox1").value+"&DateEnd="+
    document.getElementById("TextBox2").value;
       
    }
      

  2.   

    tart=document.getElementById('TextBox1').value看这样行不~!
      

  3.   

    cpp2017果然强。我怎么就没想到这样啊~!
      

  4.   

    不对啊 这样还是得不到TextBox的值啊?
      

  5.   

    写个方法就可以了
    在页面后台里
    public string GetString()
    {
      string str="";
      str=document.getElementById("TextBox1").value;//这个自己定义
      return str;
    }
    在页面里绑定一下
    <a href='ShopProjectList.aspx?Tickettemplateid=<%#DataBinder.Eval(Container,"DataItem.Tickettemplateid")%>&DateStart=<%= GetString()%>'style="FONT-SIZE: x-small">
      

  6.   

    D:\iis\erp\AnProjectQuery.aspx.cs(348): 找不到类型或命名空间名称“Document”(是否缺少 using 指令或程序集引用?)