Accessing a WebResource from a .skin file

  • Thread starter Matthew Brealey
  • Start date


Matthew Brealey

I have the following entry in a .skin file:

<asp:button runat=server SkinId=btnSubmit ImageUrl="~/Images/
submit.gif" />

But I want to make the image an embedded resource in a different
assembly, using WebResource.axd.

How can I do this?

Expression Builders don't work in skins
<%= WebResource("") %> won't work in a skin (<%=
doesn't work %>)

- there's no way of running any code, the necessary
GetWebResourceUrl() call cannot be executed.

There doesn't appear to be any way of accessing an embedded
WebResource from a skin. Is this correct?


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question