relative url in asp.net website applications

后端 未结 3 1849
你的背包
你的背包 2020-12-22 08:18

I have an image that I want to use it\'s src attribute in relative format

when my website URL was http://localhost/ I used to use this code to access th

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 08:33

    @rrrr is right, that the way to do it,

     
    

    but I would use a standard html image with runat="server"

    
    

    Reason : less server side controls

提交回复
热议问题