Getting Images to render properly in the ASP.NET Designer

Posted by: Rick Strahls WebLog, on 22 Nov 2007 | View original | Bookmarked: 0 time(s)

I'm embarrassed to say that I didn't quite know how to get controls to render image urls properly in the designer. The situation is as follows: 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. I use this sort of thing frequently and have many controls that use custom image urls. For example, I have an error/notification control that has ErrorImageUrl and InfoImageUrl properties, a calendar that...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 815 | Hits: 49

Similar Posts

  • Aspose.Total for .NET Q3 2009 Released more
  • Reporting Release History : Q2 2009 SP1 (version 3.1.9.807) more
  • Are you caching your images and scripts? IIS SEO can tell you more
  • Stimulsoft Reports Designer.Web. Easy work. more
  • Code Based Repeater for ASP.NET MVC more
  • Rendering individual controls for AJAX Callbacks more
  • Watch out for Collection property Setters in ASP.NET Controls more
  • Test Specific Subclasses vs Partial Mocks more
  • Rendering a WPF Container to Bitmap more
  • XhtmlPage: What does it do? more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD