各种连接数据库的连接字符串
http://www.connectionstrings.com[@more@]
(转)C#汉字首拼获取方法
public static string getSpell(string cn) { string tempChar = ""; char[] temp = cn.ToCharArray(); for (int j = 0; j < temp.Length; j++) { byte[] arrCN = Encoding.GetEncoding("gb2312").GetBytes(temp[j].ToString()); if (arrCN.Length > 1) { int area = (short)arrCN[0]; int pos = (short)arrCN[1]; int code = (area << 8)
showModalDialog()、showModelessDialog()方法使用详解
Javascript有许多内建的方法来产生对话框,如:window.alert(), window.confirm(),window.prompt().等。 然而IE提供更多的方法支持对话框。如: showModalDialog() (IE 4+ 支持) showModelessDialog() (IE 5+ 支持) window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框,由于是对话框,因此它并没有一般用window.open()打开的窗口的所有属性。 window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。 当我们用showModelessDialog()打开窗口时,不必用window.close()去关闭它,当以非模态方式[I