
2个回答
展开全部
1.写 select 语句,将图片路径字段查询出。select ImgUrl from table_name where id=1
2.将数据保存变量。string ImgUrl = dt.Rows[0]["ImgUrl"].ToString();
3.输出
这个就是从数据库中提取数据,然后通过string ImgUrl = dt.Rows[0]["ImgUrl"].ToString();接受,在将ImgUrl ;输出就可以了!
2.将数据保存变量。string ImgUrl = dt.Rows[0]["ImgUrl"].ToString();
3.输出
这个就是从数据库中提取数据,然后通过string ImgUrl = dt.Rows[0]["ImgUrl"].ToString();接受,在将ImgUrl ;输出就可以了!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询