我想在日历控件显示星期几的位置,显示“日、一、二、三、四、五、六”。而不是“星期日、星期一...”。请问怎么实现?谢谢!!!
解决方案 »
- EXCEL把一个表里的数据替换成另一个表里对应数据的序列号
- 生成ASP.net网站安装包
- 求 Visual Studio 2005的下载地址,要有能用的
- Page_Load事件
- 高手帮忙啊,关于.net+Ext2.0的问题,特急~~
- 有高难度问题求教高手啊
- AjaxPro 配合 Repeater 实现无刷新的问题 在线等~~~~
- 关于"ajax controltoolkit未自定义"不胜感激UP50~!谢谢了,在线等~~~
- 如何操作httpxml对象返回的xml对象(如取出某一个节点的内容),网上有类似的源代码吗?
- 谁有APS.NET高级编程的电子书高分相送
- 问一个困扰了我三天的问题,如果用了web自定义控件,如何得到该控件中变量所带的值?
- 在.net中,怎么样实行像ftp一样的功能
也就是DayNameFormat的属性设置一下
function load_init() {
document.all.Calendar1.rows(1).cells(0).innerText="日";
document.all.Calendar1.rows(1).cells(1).innerText="一";
document.all.Calendar1.rows(1).cells(2).innerText="二";
document.all.Calendar1.rows(1).cells(3).innerText="三";
document.all.Calendar1.rows(1).cells(4).innerText="四";
document.all.Calendar1.rows(1).cells(5).innerText="五";
document.all.Calendar1.rows(1).cells(6).innerText="六";
} load_init();注:Calendar1是控件的名称
Imports System.Globalization Private arrCurrentDays, arrPreDays, arrNextDays As Integer() ' //三个变量分别是当前月,前一月,和下一个月
Private intCurrentMonth, intPreMonth, intNextMonth As Integer ' //三个整型数组存放相对月份写有blog的日期 Private Sub Calendar1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.PreRender
Dim threadCurrent As Thread = Thread.CurrentThread
Dim ciNew As CultureInfo = CType(threadCurrent.CurrentCulture.Clone(), CultureInfo)
ciNew.DateTimeFormat.DayNames = New String() {"日", "一", "二", "三", "四", "五", "六"}
ciNew.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday
threadCurrent.CurrentCulture = ciNew
End Sub
http://myx.name/mytest/BlogTime.aspx
CultureInfo ciNew = (CultureInfo)threadCurrent.CurrentCulture.Clone();
ciNew.DateTimeFormat.DayNames = new string[]{"日", "一", "二", "三", "四", "五", "六"};
ciNew.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
threadCurrent.CurrentCulture = ciNew;C#版的,呵呵……牛人啊!!!