Hi!
I want to know how to get the image path of an image which is on server side.
but my code is executed on client side.
see my code:
<SCRIPT LANGUAGE="VBScript">
ImageList1.ListImages.Add 1,"Site",loadpicture("D:\temp\site.gif"
set TreeView1.ImageList = ImageList1
</SCRIPT>
so the image site.gif is on client side
see:
<SCRIPT LANGUAGE="VBScript">
ImageList1.ListImages.Add 1,"Site",loadpicture("<% response.write server.mapppath("images\site\silver_10x10.gif" %>"
set TreeView1.ImageList = ImageList1
</SCRIPT>
so i have an error "invalid path" because the prog research the image on the client side with a path which is only valid on the server side
I want to know how to get the image path of an image which is on server side.
but my code is executed on client side.
see my code:
<SCRIPT LANGUAGE="VBScript">
ImageList1.ListImages.Add 1,"Site",loadpicture("D:\temp\site.gif"
set TreeView1.ImageList = ImageList1
</SCRIPT>
so the image site.gif is on client side
see:
<SCRIPT LANGUAGE="VBScript">
ImageList1.ListImages.Add 1,"Site",loadpicture("<% response.write server.mapppath("images\site\silver_10x10.gif" %>"
set TreeView1.ImageList = ImageList1
</SCRIPT>
so i have an error "invalid path" because the prog research the image on the client side with a path which is only valid on the server side