<input id="Button1" type="button" value="查看详细" onclick="window.open('caigoubaocairukuxiangqing.aspx?contractNo='<%#DataBinder.Eval(Container.DataItem, "contractNo")%>+'zhonglei='encodeURIComponent(<%#DataBinder.Eval(Container.DataItem, "zhonglei")%>),'_blank')" />
这句执行时总是显示缺少')'
不知道哪里错了
javescript
------解决方案--------------------
<input id="Button1" type="button" value="查看详细" onclick="window.open('caigoubaocairukuxiangqing.aspx?contractNo=<%#DataBinder.Eval(Container.DataItem, "contractNo")%>&zhonglei='+encodeURIComponent('<%#DataBinder.Eval(Container.DataItem, "zhonglei")%>'),'_blank')" />