更新时间:2023-10-10 12:20:10
string SelStr = "select * from Users";
SqlDataAdapter da = new SqlDataAdapter(SelStr, con);
DataTable dt = new DataTable();
da.Fill(dt);
foreach(DataRow dr in dt.Rows)
{
ImageCtrl.ImageUrl = dr["ImagePath"].ToString();
}
尝试它是否有效......只是我的盲目假设..
Try if it works.. just my blind assumption..
参考此链接 -
http:// www .dotnetcode.in / 2011/06 / how-to-store-imageurl-in-database-and.html [ ^ ]
Refer this Link-
http://www.dotnetcode.in/2011/06/how-to-store-imageurl-in-database-and.html[^]
imgDisplayPhoto.ImageUrl = ViewState [ Photo_Path]。ToString();
直接我们可以给出保存在数据库中的照片路径。
感谢每一位为我付出宝贵时间的人.......
imgDisplayPhoto.ImageUrl = ViewState["Photo_Path"].ToString();
directly we can give the path of the photo which is saving in the database.
thanks for every one who spended their valuable time for me....