开发者

How to display an image whose path is saved in the database in a data list control?

开发者 https://www.devze.com 2023-03-31 03:33 出处:网络
how to display an开发者_Go百科 image whose path is stored in the database onto the aspx page, i am using the data list control, and also onclick of the image, the user details has to load. the image p

how to display an开发者_Go百科 image whose path is stored in the database onto the aspx page, i am using the data list control, and also onclick of the image, the user details has to load. the image path and user id are in the same table.please send the code for this.


Try the following code:

string filePath = Server.MapPath("~/NewsImages/" + FileName);

mallDataSource.InsertParameters.Add("NewsImagePath", filePath);
0

精彩评论

暂无评论...
验证码 换一张
取 消