Asp.Net MVC Controller / Ressource Manager: globalization issue -


i experience problems concerning globalization in asp.net.

parts of page randomly in english instead of german.

see code:

[httppost]         public async task<jsonresult> interestingcontrollermethod(guid offeringrateid, guid trainerid, datetime? selecteddate)         {  //de-de             thread.currentthread.currentuiculture = new cultureinfo(slconst.defaultculture);              var dateandutctime = getselecteddatetime(selecteddate);              var selecttimestrainer = await queryprocessor.executeasyncwithcache(new offeringratecourseselectabletimesfortrainerquery             {                 basketid = basketid,                 offeringrateid = offeringrateid,                 firstbookabledatetime = dateandutctime,                 lastbookabledatetime = dateandutctime.getendofday(),                 currentdatetime = sldatetime.currentdatetimeutc(slconst.defaulttimezonetzdb),                 fortrainerid = trainerid,                 customerid = currentuserid             }).configureawait(false);   // method uses resourcemanager              var result = getselecttimescoursefortrainer(selecttimestrainer);              return json(result);         } 

but in end got mixed gui.

in debug mode seems culture de-de has not been assigned @ all:

enter image description here

any ideas?

thx!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -