Ajax call inside a Partial view doesn't return the correct Culture(lang)
Hey folks!
I'm having an issue using Ajax call inside my Partial view to retun another Partial with correct language .. In other words, I have a partial which looks like this :
so when the part of the page loads, It won't pick the english translation from my dictionary. For the first partial that I have, it works fine but the second partial that comes via ajax is not picking up the english translation at all , any tips?
Ajax call inside a Partial view doesn't return the correct Culture(lang)
Hey folks! I'm having an issue using Ajax call inside my Partial view to retun another Partial with correct language .. In other words, I have a partial which looks like this :
and what I do with those sub links is that I load another partial view depending on which one is active/clicked ... which would be like this :
and of course in my controller , I have the simple Partial view return like :
my second partial view is as simple as this one :
so when the part of the page loads, It won't pick the english translation from my dictionary. For the first partial that I have, it works fine but the second partial that comes via ajax is not picking up the english translation at all , any tips?
/cheers
Actually was able to work around it by getting the help from this post : Clicky
I simply passed the CurrentUICulture from the controller to the view and consumed it via JavaScript on my partial \o/
is working on a reply...