03 2017 档案
摘要://5.SqlQuery()查询 var sql = "select * from UserInfo where age > 15 order by age desc"; object[] obj = new object[1]; var info = db.UserInfo.SqlQuery(sq
阅读全文
posted @ 2017-03-30 20:02
如果声音记得
摘要://string Opath = @"C:/Picture"; //if (Opath.Substring(Opath.Length - 1, 1) != @"/") //Opath = Opath + @"/"; //string photoname = DateTime.Now.Ticks.To
阅读全文
摘要:一. 二进制转换成图片 MemoryStream ms = new MemoryStream(bytes); ms.Position = 0; Image img = Image.FromStream(ms); ms.Close(); this.pictureBox1.Image 二. C#中byt
阅读全文
摘要:private void button2_Click_1(object sender, System.EventArgs e) { string pathName; if (this.openFileDialog1.ShowDialog()==System.Windows.Forms.DialogR
阅读全文
摘要:usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Drawing; usingSystem.IO; namespaceMicrosoft.Form.Base {
阅读全文
摘要:常见的关系型数据库有:IBM DB2、ORACLE、Sybase、SQL Server、MySQL、Access,今天我们重点介绍一下ORACEL、SQL Server、MySQL三大数据库。 ORACLE数据库适用于业务逻辑较复杂、数据量大的较大型项目开发。 SQL Server数据库的功能比较全
阅读全文
摘要:如下所示:lbID为服务器端控件ID document.getElementById('<%=lbID.ClientID%>').value = "赋值";
阅读全文
摘要:由Asp.Net客户端控件生成的服务器端控件(也就是给客户端控件添加 runnat="server"),这样的控件既能在js中通过id命、类名获取到,也能在服务器端根据id获取到
阅读全文
摘要://删除cookiedelCookie("GroupName");//s20是代表20秒//h是指小时,如12小时则是:h12//d是天数,30天则:d30setCookie("GroupName", tname, "d1"); ///////////////////////////////////
阅读全文
摘要:受下面文章的启发,使用DatePicker自带的年月日相关的change事件,可以“勉强”实现input控件的onchange(),直接上代码: 1、第一种方式:利用DatePicker提供的年、月、日、时、分、秒 changing和changed事件,缺点是有时必须每个事件都列出来,且点“今天”、
阅读全文

浙公网安备 33010602011771号