摘要:
匹配中文字符的正则表达式: [\u4e00-\u9fa5]
匹配双字节字符(包括汉字在内):[^\x00-\xff]
应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1)
阅读全文
posted @ 2007-10-17 17:55
TT.Net
阅读(231)
评论(0)
推荐(0)
摘要:
//显示JavaScript的Alert信息
public static void ShowMsg(Page thisPage, string AlertMessage)
{
Literal txtMsg = new Literal();
txtMsg.Text = "" + "";
thisPage.Controls.Add(txtMsg);
}
阅读全文
posted @ 2007-10-17 10:37
TT.Net
阅读(793)
评论(4)
推荐(0)
浙公网安备 33010602011771号