I want to customize calendar to persian but after setting CultureInfo as this:
CultureInfo fa = new CultureInfo(\"fa-IR\",true);
Thread.CurrentThread.CurrentCult
You can set CultureInfo of thread before the control is rendered and restore once the control is rendered.
Output :
Below example show's how you can render two different calendar with different CultureInfo.
Default.aspx
<%@Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="System.Threading" %>
Default.aspx.cs
using System;
using System.Threading;
using System.Globalization;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}