not getting value in session("lang")
-
tis is my code in class file called langsetting here i am not getting value in session("lang") Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ci As CultureInfo Thread.CurrentThread.CurrentCulture = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End Sub
-
tis is my code in class file called langsetting here i am not getting value in session("lang") Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ci As CultureInfo Thread.CurrentThread.CurrentCulture = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End Sub
anbusenthil wrote:
Thread.CurrentThread.CurrentCulture = Session("lang")
Where did you stored the
Session("lang")
value?cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
tis is my code in class file called langsetting here i am not getting value in session("lang") Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ci As CultureInfo Thread.CurrentThread.CurrentCulture = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) ci = Thread.CurrentThread.CurrentCulture LoadStrings(ci) End Sub
Are you getting any exception ? Are you sure to set the session value anywhere before using this place ?
Parwej Ahamad http://parwej.wordpress.com/
-
anbusenthil wrote:
Thread.CurrentThread.CurrentCulture = Session("lang")
Where did you stored the
Session("lang")
value?cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
session("lang") is nothing i hav assigned value in a button click lik session("lang") = thread.currentthread.culture