TextBox3.Text = myset.Tables["azy"].Rows[0].ItemArray["clff2"].ToString();
TextBox4.Text = myset.Tables["azy"].Rows[0].ItemArray["zzm"].ToString();
TextBox8.Text = myset.Tables["azy"].Rows[0].ItemArray["bzlx"].ToString();为什么提示错误无法将类型“string”隐式转换为“int” clff2 和 zzm 等都是数据库的列名
TextBox4.Text = myset.Tables["azy"].Rows[0].ItemArray["zzm"].ToString();
TextBox8.Text = myset.Tables["azy"].Rows[0].ItemArray["bzlx"].ToString();为什么提示错误无法将类型“string”隐式转换为“int” clff2 和 zzm 等都是数据库的列名
解决方案 »
- c#打印预览窗体结果是一片空白
- c#中如何把short转换为ushort?
- 一个关于socket通讯的问题,呵呵
- 定制控件有项目下有两个目录:bin、obj,它们都起什么作用啊!怎么它们两个里面的Debug里面都有.dll文件啊
- 请教热敏打印机的保密性
- 小弟也想和大侠换c#程序学习
- asp.net怎么一次下载多个文件,UP有分++++++++++++!!!!!
- CheckedChanged事件如何才能控制有时触发有时不触发呢
- 我的2004第一贴:如何将窗体置于最上层?
- C# 怎麼才能做出一個具有換肤功能的程序???? Help!!!
- XtraNavBar控件,如何点击后,得到相应group的序号或caption名称?
- 关于FileStream读取路径的问题
TextBox5.Text = Session["ddmc"].ToString();
TextBox6.Text = Session["zhlx"].ToString();
myad = new SqlDataAdapter("select * from imgtable where km = '" + TextBox1.Text + "%' and zhlx = '" + TextBox5.Text + "' and ddmc = '" + TextBox6.Text + "'", sqlCon);
myad.Fill(myset, "azy");
string a = myset.Tables["azy"].Rows[0].ItemArray["clff"].ToString();
TextBox2.Text = a;
TextBox3.Text = myset.Tables["azy"].Rows[0].ItemArray["clff2"].ToString();
TextBox4.Text = myset.Tables["azy"].Rows[0].ItemArray["zzm"].ToString();
TextBox8.Text = myset.Tables["azy"].Rows[0].ItemArray["bzlx"].ToString();
这个是全部代码
TextBox3.Text = myset.Tables["azy"].Rows[0][0]ToString(); 另外两列类推