日期:2014-05-18  浏览次数:20389 次

在<%..."值"...%块中,以不同方式将值括起来
<a href='<%=PageBase.UrlBase+"/RecordsMan.aspx"%>' style="OVERFLOW: hidden; WIDTH: 250px; CLIP: rect(auto 80% auto 1%)" onclick="javascript:newwin=window.open(RecordDetails.aspx?RecordId='<%# DataBinder.Eval(Container.DataItem,"RecordId")% >','newwin','x=500,y=800,height=410,width=400,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes');newwin.focus();">  
'<%# DataBinder.Eval(Container.DataItem,"RDetails")%>'
</a>

网上好多答案,但还是解决不了。大家帮忙。

------解决方案--------------------
window.open(RecordDetails.aspx?RecordId= ' <%# DataBinder.Eval(Container.DataItem,"RecordId")% > '
改为
window.open('RecordDetails.aspx?RecordId=<%# DataBinder.Eval(Container.DataItem,"RecordId")%>'
------解决方案--------------------
<%=PageBase.UrlBase+"/RecordsMan.aspx"% >
改为
<%=PageBase.UrlBase%>/RecordsMan.aspx
试试看
------解决方案--------------------
还要改\"RecordId\"
------解决方案--------------------
<a href= ' <%=PageBase.UrlBase+"/RecordsMan.aspx"% > ' style="OVERFLOW: hidden; WIDTH: 250px; CLIP: rect(auto 80% auto 1%)" onclick="javascript:newwin=window.open(RecordDetails.aspx?RecordId= ' <%# DataBinder.Eval(Container.DataItem,"RecordId")% > ', 'newwin ', 'x=500,y=800,height=410,width=400,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes ');newwin.focus();" >
' <%# DataBinder.Eval(Container.DataItem,"RDetails")% > ' 
</a > 

----->' <%# DataBinder.Eval(Container.DataItem,"RDetails")% > ' 多了'

改为:

<a href= ' <%=PageBase.UrlBase+"/RecordsMan.aspx"% > ' style="OVERFLOW: hidden; WIDTH: 250px; CLIP: rect(auto 80% auto 1%)" onclick="javascript:newwin=window.open(RecordDetails.aspx?RecordId= ' <%# DataBinder.Eval(Container.DataItem,"RecordId")% > ', 'newwin ', 'x=500,y=800,height=410,width=400,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes ');newwin.focus();" >
 <%# DataBinder.Eval(Container.DataItem,"RDetails")% > //去掉引号
</a >
------解决方案--------------------
直接把“换成‘就可以了
------解决方案--------------------
% >
太远了?