Hi Imar,
I just found most important thing. This information will definitely help you to give some solid solution.
While trying to find the solution, I tried to set ABSOLUTE PHYSICAL PATH of the image to ImageUrl property, and to my surprise it displays the image as expected in DESIGN VIEW. Now, I understood that the problem is of resolving ImageUrl which is relative. e.g. "~/Images/DDCL/ArrowDownOff.gif".
Now, the problem to resolve relative url in DESIGN MODE is like this. All the url resolving methods like ResolveClientUrl, ResolveUrl or MapPath can resolve the url. But they belong to objects of Page, Application which are null at DESIGN MODE, and I could not find any other way to resolve the relative url to absolute one. Because these objects are live (or not null) at run time, I can resolve the url at run time but not at Design Time.
So, finally If you do know any way to resolve url at DESIGN TIME, my problem will be solved. :)
Thanks in advance,
Best Regards,
Hitul Patel
Hitul J. Patel
Software Engineer
|