InitializeCulture()': no suitable method found to override : only problem with master page
-
Hi All:) I am having a master page contains dropdownlist to select the language. when write the following method just below the
public partial class Sign_in : System.Web.UI.MasterPage { protected override void InitializeCulture() { string culture = Request.Form["cmbCulture"]; if (string.IsNullOrEmpty(culture)) culture = "Auto"; //Use this UICulture = culture; 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(); } protected void Page_Load(object sender, EventArgs e) {} }
following error occur only with he master page: 'Sign_in.InitializeCulture()': no suitable method found to override while same process is working in aspx page. Thanks in advance.. Regards, Sri..