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:
any ideas?
thx!
Comments
Post a Comment