Culture ‘tr’ is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread’s current culture.

You get this error, when you use neutral culture name to set culture of the application.     1 System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("tr");     2 System.Threading.Thread.CurrentThread.CurrentCulture = ci;     3 System.Threading.Thread.CurrentThread.CurrentUICulture = ci; To prevent this error you can use explicit culture name like "tr-TR" or use the code below:     1 System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.CreateSpecificCulture("tr");  Happy coding.

Register your user controls and custom controls in Web.Config

In ASP.NET web application you can develop user controls and custom server controls to increase your productivity and decrease code repetition. To use these user controls at your web pages you can register like this: <%@ Register Src="Controls/somecontrol.ascx" TagName="SomeControl" TagPrefix="myPrefix" %> And use like this: <html> <body>     <form id="form1" runat="server">         <myPrefix:header ID="SomeControl1" runat="server" />     </form> </body> </html> The registration step can […]

Changing your hosts file in Windows

In Windows, Hosts file is a read only hidden system file. So that you cannot edit that file. Also running notepad as an administrator doesn’t solve this problem.There are a lot of articles about this topic but none of them giving this solution. You can solve this by typing some DOS commands at command line: […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top