webForumDet fria alternativet

Mixa

1 svar · 374 visningar · startad av Travoni

TravoniMedlem sedan okt. 20041 556 inlägg
#1

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.

TravoniMedlem sedan okt. 20041 556 inlägg
#2

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

131 ms totalt · 3 externa anrop · v20260731065814-full.beb2e261
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)