<asp:TemplateField HeaderText="Picture" ItemStyle-Height = "150" ItemStyle-Width = "170">
<ItemTemplate>
<asp:Image ID="Image1" runat="server" Height="150" Width="150"
ImageUrl = '<%# Eval("PicturePath", GetUrl("{0}")) %>'/>
</ItemTemplate>
<ControlStyle Height="150" Width="150" />
<ItemStyle Height="150" Width="150"></ItemStyle>
</asp:TemplateField>
我知道如何獲得的圖像通過getElementById.But我的要求SRC是從gridview的模板獲得圖片src field.I只是想顯示所有圖像SRC其在網格到列表box.src應該像SRC = 「HTTP://本地主機:61027 /圖像/ JellyFish.jpg」如何獲得圖像的src這是在GridView中的模板字段
包括您正在努力實現的目標,以便我們能夠指引您朝着正確的方向發展。有很多方法可以獲得src。 – rkw
我只是想存儲存在於網格圖像的所有SRC。 src應該在形式上SRC =「HTTP://本地主機:61027 /圖片/ JellyFish.jpg」 – vkarthik07