<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这句符号怎么改啊?
DateStart=document.getElementById("TextBox1").value这句符号怎么改啊?
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;
}
在页面后台里
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">