kamagra how much to take

Return LCID From HTTPContext

A friend today asked me if it was possible to pass in the HTTPContext as a parameter into a static helper method to return the LCID of the current web request. It’s actually really easy.

  1. public static int harvestCurrentLCID(HttpContext context)
  2. {
  3. return (int) SPControl.GetContextWeb(context).Language;
  4. }

That’s pretty much it, it should return an integer that corresponds to the language type that correlates to the LCID of your SharePoint instance.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>