---
title: "Mixa"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/168901-mixa"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Travoni"
published: "2008-02-11T02:00:09.000Z"
updated: "2008-02-13T07:52:53.000Z"
replies: 1
views: 381
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/168901-mixa"
---

# Mixa

## #1 — Travoni, 2008-02-11T02:00Z

Denna går det att "blanda" GetWebResourceUrl med CreateFileBasedResourceManager så att jag kan använda GetWebResourceUrl utan att behöva kompilera ihop en assembly för att kunna utnyttja alla fördelar med Resource-filerna? 

```
Dim rm As System.Resources.ResourceManager = ResourceManager.CreateFileBasedResourceManager("myJavaScripts", _
                    HttpContext.Current.Server.MapPath("App_GlobalResources"), Nothing)
        Dim scriptLocation As String = _
        Page.ClientScript.GetWebResourceUrl(rm.GetType(), "toggle")
        Page.ClientScript.RegisterClientScriptInclude("toggle", scriptLocation)
```

...går inte.

Permalänk: https://www.webforum.nu/p/168901

## #2 — Travoni, 2008-02-13T07:52Z

Ähhh, hag gjorde en egen handler som fixar det.

Permalänk: https://www.webforum.nu/p/2079335

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/168901-mixa
