04 2014 档案
摘要:protected void filePhoto_FileSelected(object sender, EventArgs e) { if (filePhoto.PostedFile.ContentType.ToUpper().IndexOf("IMAGE") ...
阅读全文
摘要:public static DataSet ObjectArrayToDataSet(object[] objArr) { if (objArr.Length == 0) return null; DataSet...
阅读全文
摘要:SQL2008 表达式:是常量、变量、列或函数等与运算符的任意组合。1. 字符串函数函数 名称 参数 示例 说明ascii(字符串表达式)select ascii('abc') 返回 97返回字符串中最左侧的字符的ASCII 码。char(整数表达式)select char(100) 返回 d把ASCII 码转换为字符。介于0 和 255 之间的整数。如果该整数表达式不在此范围内,将返回NULL 值。charindex(字符串表达式 1, 字符串表达式2[,整数表达式])select charindex('ab','BCabTabD')返回 3s
阅读全文
摘要:Stimulsoft ReportsfusionchartshighchartechartsfastReport
阅读全文
摘要:/// /// 图片转成二进制/// /// /// public static byte[] imageWrite(HttpPostedFileUpFile){int FileLength = UpFile.ContentLength;//记录文件长度if (FileLength == 0){//文件长度为零时return null;}else{Byte[] FileByteArray= new Byte[FileLength];//图象文件临时储存Byte数组Stream StreamObject = UpFile.InputStream;//建立数据流对像//读取图象文件数据,Fil..
阅读全文
摘要:string和byte[]的转换 (C#) string类型转成byte[]: byte[] byteArray = System.Text.Encoding.Default.GetBytes ( str );反过来,byte[]转成string:string str = System.Text.Encoding.Default.GetString ( byteArray );其它编码方式的,如System.Text.UTF8Encoding,System.Text.UnicodeEncoding class等;例如:string类型转成ASCII byte[]:("01"
阅读全文
浙公网安备 33010602011771号