开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜