I trying to reduce my time spent deploying a site.. by putting everything in a dll.
so far i have two icons: delete, edit
and haven't been able to render them.
AssemblyInfo.cs
PHP Code:
[assembly: WebResourceAttribute("RobustHaven.Components.KnowledgeBase.ClientResources.Themes.Default.Icons.delete.png", "image/png")]
[assembly: WebResourceAttribute("RobustHaven.Components.KnowledgeBase.ClientResources.Themes.Default.Icons.edit.png", "image/png")]
The dll which they are embedded in is: RobustHaven.Components.KnowledgeBase
in the aspx page i have:
PHP Code:
<img src="<%=Page.ClientScript.GetWebResourceUrl(GetType(), "RobustHaven.Components.KnowledgeBase.ClientResources.Themes.Default.Icons.delete.png") %>" alt="delete" />
basically the url it generates creates a 404 http error.
what is the implementation of GetWebResourceUrl so i can manually create a url to the embedded resource?
I wish it would throw an exception.. but nope just doesn't render anything ... i can put anything in the string portion and still no exception.
url it creates:
PHP Code:
/WebResource.axd?d=qqJ8tjv5pMksPMk76RazplV9lffvnnyCHzcis9J-qArr8SQ-ynYtpfHwX35K_6fGnV6T0GzlEdgVWGWxJjQ01ioRrZk83-yDV85aZ9GzFUoBmZHKQFtMYe3evLbP3Cm210PzJo3M38Py9PaUexcqF5ST7Ko4jQY8nGsvsH5l0HM1&t=633421634875625000
/WebResource.axd by itself generates 404 error
Bookmarks