User-1095048110 posted
I am trying to set culture to the sharepoint application pages using resource file. Culture is not applying in the sharepoint application pages. But the same thing is running in dot.net website application. Can any one guide me how to
use resource file in sharepoint
<asp:Label ID="LegendFirstname" runat="server"
Text="<%$ Resources:Multilingualpage, LegendFirstname %>" ></asp:Label>
protected override void InitializeCulture()
{
string culture = Request.Form["DropDownList1"];
if (string.IsNullOrEmpty(culture)) culture = "Auto";
//Use this
this.UICulture = culture;
this.Culture = culture;
//OR This
if (culture != "Auto")
{
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(culture);
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
}
base.InitializeCulture();
}
iam copying my resources files under
c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources
c:\Inetpub\wwwroot\wss\VirtualDirectories\modinternet80\App_GlobalResources
even after also not getting
Please advice....