问题描述
当我在数据库中存储路径时,它存储在 D:\ OrgWebsite \ Traditional Day 2012 \Images\DSC01049.JPG 格式中。
但是在检索时我是否使用图像按钮
< asp:ImageButton ID =ImageButton1runat =serverCommandArgument ='<%#Eval(a_id )%>'ImageUrl ='<%#Eval(i_path)%>'高度=100宽度=100/>
它告诉我这个D:\\OrgWebsite \\ Traditional Day 2012 \\Images\\DSC01049.JPG格式。
所以我无法查看图像。
你可以帮忙吗?
when i am storing path in database its stores in D:\OrgWebsite\Traditional Day 2012\Images\DSC01049.JPG format.
but at time of retrieving if i use image button
<asp:ImageButton ID="ImageButton1" runat="server" CommandArgument='<%#Eval("a_id") %>' ImageUrl='<%#Eval("i_path") %>' Height="100" Width="100" />
it shows me this "D:\\OrgWebsite\\Traditional Day 2012\\Images\\DSC01049.JPG" format.
so i am unable to view images.
Can u help?
这篇关于如何写图片网址路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!