Getting Images to render properly in the ASP.NET Designer(west-wind.com)
submitted by
ailon(1335) 4 years, 6 months ago
You create a custom server control and you have an image property and you allow the use of the ~/images/someimage.gif syntax to specify the image path. So the obvious thing and what I've been using is Control.ResolveUrl() and it works great at runtime for specifying related links.But if you try to get this control to render in the designer as well you'll quickly find that ResolveUrl() doesn't work properly at design time because there's no explicit ApplicationPath available at design time. read more...
|category: ASP.NET
|Views: 4
tags:
ASP.NET another
Everyones tags:
Your Tags: