Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Resources:
WebForm_A.resx
WebForm_B.resx
en:
MyApp.WebForm_A.en.resx
MyApp.WebForm_B.en.resx
en-us:
MyApp.WebForm_A.en-us.resx
MyApp.WebForm_B.en-us.resx
fr:
MyApp.WebForm_A.fr.resx
MyApp.WebForm_B.fr.resx
Sub Application_Start(ByVal sender As Object, ByVal e
As EventArgs)
Application("RM4WebForm1") = New
System.Resources.ResourceManager(GetType
(WebForm1)) 'ResourceManager for WebForm1
Application("RM4WebForm2") = New
System.Resources.ResourceManager(GetType
(WebForm2)) 'ResourceManager for WebForm2
End Sub
Sub Application_BeginRequest(ByVal sender As Object,
ByVal e As EventArgs)
' Fires at the beginning of each request
' For each request initialize the culture values
with
' the user language as specified by the browser.
' DO NOT PUT this code in Session_Start or it won't
work
Try
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(Request.UserLanguages(0))
Catch ex As Exception
Thread.CurrentThread.CurrentCulture = New
CultureInfo("en")
End Try
Thread.CurrentThread.CurrentUICulture =
Thread.CurrentThread.CurrentCulture
End Sub
Private Sub Page_Init(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Init
' Get the ResourceManager from the Application
object.
rm = Application("RM4WebForm1")
End Sub
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
InitializeComponent()
Label1.Text = rm.GetString("Label1")
Label2.Text = rm.GetString("Label2")
End Sub
>resgen.exe [the resx file]
>resgen MyApp.WebForm_A.en.resx
>al.exe /t:lib /embed:MyApp.WebForm_A.en.resx /embed:MyApp.W
ebForm_B.en.resx /culture:en /out:MyApp.resources.dll