<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%">
<tr>
<td width="105"> <% if(#DataBinder.Eval(Container.DataItem,"mprice"))==0){%>
价格面议<br>
<%}else{%>
<% if(#DataBinder.Eval(Container.DataItem,"mprice")==#DataBinder.Eval(Container.DataItem,"nprice")){%>
现价:<%#DataBinder.Eval(Container.DataItem,"nprice")%><BR>
<%}else{%>
<strike><FONT COLOR="red">市场价:<%#DataBinder.Eval(Container.DataItem,"mprice")%></FONT></strike> 现价:<%#DataBinder.Eval(Container.DataItem,"nprice")%><BR> <%} }%>
<%#DataBinder.Eval(Container.DataItem,"content")%><br></p> <p></td>
</tr>
</table>出现提示说:编译器错误信息: CS1040: 预处理器指令必须作为一行的第一个非空白字符出现各位大虾帮我看看,这IF语句究竟怎么写呀。
<tr>
<td width="105"> <% if(#DataBinder.Eval(Container.DataItem,"mprice"))==0){%>
价格面议<br>
<%}else{%>
<% if(#DataBinder.Eval(Container.DataItem,"mprice")==#DataBinder.Eval(Container.DataItem,"nprice")){%>
现价:<%#DataBinder.Eval(Container.DataItem,"nprice")%><BR>
<%}else{%>
<strike><FONT COLOR="red">市场价:<%#DataBinder.Eval(Container.DataItem,"mprice")%></FONT></strike> 现价:<%#DataBinder.Eval(Container.DataItem,"nprice")%><BR> <%} }%>
<%#DataBinder.Eval(Container.DataItem,"content")%><br></p> <p></td>
</tr>
</table>出现提示说:编译器错误信息: CS1040: 预处理器指令必须作为一行的第一个非空白字符出现各位大虾帮我看看,这IF语句究竟怎么写呀。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货