产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

xiyou老大 设计模型调用复选框的问题 [复制链接]

1#
提示错误:
编译错误

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误消息: CS0029: 无法将类型“string”隐式转换为“int”

源错误:


行 21:   Price=dr["price"].ToString();
行 22:   Point=dr["point"].ToString();
行 23:   jiaoyifangshi=dr["pa_jiaoyifangshi"].ToString();
行 24: %>
行 25: <div class="product_pic_infor">

源文件: d:\wy4.12\e\zdymodel\product\detail\89.ascx    行: 23


int i,Id,P_SortId,jiaoyifangshi;
string Price,Point;
DataTable dt,dt1;
dt=Get_Data();
DataRow dr,dr1;
if(dt.Rows.Count>0)
{
  dr=dt.Rows[0];
  Id=int.Parse(dr["id"].ToString());
  P_SortId=int.Parse(dr["sort_id"].ToString());
  Price=dr["price"].ToString();
  Point=dr["point"].ToString();
[color=Red]  jiaoyifangshi=dr["pa_jiaoyifangshi"].ToString();[/color]
%>
<div class="product_pic_infor">
<ul>

<span class="title"><%=dr["title"]%></span>
产品型号:<%=dr["pa_xinghao"]%><br>
<%if(Price!="" && Price!="0"){%>产品价格:<%=Price%>元 &nbsp;<a href="javascriptrdercart('<%=Site_Id%>','product',<%=Id%>)" style="colorff0000">[在线订购]</a><br><%}%>
<%if(Point!="" && Point!="0"){%>所需积分:<%=Point%>点 &nbsp;<a href="javascript:exchange('<%=Site_Id%>','product',<%=Id%>)" style="colorff0000">[积分兑换]</a><br><%}%>
<%=Ubb(dr["pa_introduction"].ToString())%>

<%
[color=Red]switch(jiaoyifangshi)
  {
     case 1:
          Response.write("交易方式:全自动");
          break;
     case 2:
          Response.write("交易方式:半自动");
          break;
     case 3:
         Response.write("交易方式:人工");
          break;
  }[/color]
  %>
分享 转发
TOP
2#

该用户帖子内容已被屏蔽
TOP
发新话题 回复该主题