November 28th, 1999, 11:55 PM
ImageList Control doesn't work in ASP.
I built a program including treeview control with images.
ImageList control contains images. But It doesn't work.
It made some errors like "ImageList must be initialized before it's used".
It means ImageList has no images and when I see ASP it lose images.
But I am sure I insert images in imagelist in design time and I set treeview's property,that is imagelist,imagelist object variable in a code.
Some tricky. Sentense as follows goes well. It's for runtime.
ImageList1.ListImages.Add 1,"image1",
LoadPicture ("C:\InetPub\wwwroot\kowacoP\images\010.ICO")
it's not good. Path in loadpicture function is not on server but in client side.
So,It work when my computer is server and client.
Please help me.
Why does ImageList lose images inserted in itself?
Anything else method using images in treeview control?
Thanks for your reading?
I built a program including treeview control with images.
ImageList control contains images. But It doesn't work.
It made some errors like "ImageList must be initialized before it's used".
It means ImageList has no images and when I see ASP it lose images.
But I am sure I insert images in imagelist in design time and I set treeview's property,that is imagelist,imagelist object variable in a code.
Some tricky. Sentense as follows goes well. It's for runtime.
ImageList1.ListImages.Add 1,"image1",
LoadPicture ("C:\InetPub\wwwroot\kowacoP\images\010.ICO")
it's not good. Path in loadpicture function is not on server but in client side.
So,It work when my computer is server and client.
Please help me.
Why does ImageList lose images inserted in itself?
Anything else method using images in treeview control?
Thanks for your reading?