Ciao a tutti,
come da oggetto ho inserito un codice nel global.asax per la gestione della lingue, ed ho scoperto che non fa funzionare tutti i requestvalidator del sito!!
Vi riporto il codice di seguito, spero possiate aiutarmi:
Dim LinguaDaURL As String
Sub Application_BeginRequest(sender As Object, e As EventArgs)
LinguaDaURL = Request.RawUrl.Substring(1, 5)
End Sub
Sub Application_AcquireRequestState(sender As Object, e As EventArgs)
If HttpContext.Current.Session("Lingua") Is Nothing Then
HttpContext.Current.Session("Lingua") = Thread.CurrentThread.CurrentCulture.ToString
End If
If LinguaDaURL <> "defau" And LinguaDaURL <> "Defau" And LinguaDaURL <> "wbres" Then
If HttpContext.Current.Session("Lingua") <> LinguaDaURL Then
HttpContext.Current.Session("Lingua") = LinguaDaURL
End If
End If
End Sub
Grazie mille!