.net 筆記

學習.net
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年4月14日

摘要: --tb(投标企业,招标序号,类别,产品名称,计价单位,方法,试剂规格,别名,包装份数,牌价, --质量层次,生产企业,注册证号,注册证有效期,原报价,总价,报价备注) --要求 产品名称,计价单位,方法,质量层次 这四个字段数据重复的取出来 --(不重复的放一张表 重复一个的放一张表 重复两个以上的放一张表) ----------------------------------------... 阅读全文

posted @ 2008-04-14 16:08 陳偉 阅读(165) 评论(0) 推荐(0)

2008年4月3日

摘要: 1 Person[] people={ bill, scott,srini}; 2Person[] people2=new Person[6]; 3Array.Copy(people,people2,people.Length); 4 阅读全文

posted @ 2008-04-03 23:07 陳偉 阅读(179) 评论(0) 推荐(0)

摘要: 1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebContro... 阅读全文

posted @ 2008-04-03 23:06 陳偉 阅读(203) 评论(0) 推荐(0)

2007年10月17日

摘要: 1SELECT * FROM (SELECT 2 ROW_NUMBER() OVER (ORDER BY Namec) AS RowNumber, 3 * 4FROM 5 dbo.mem_member) _myResults 6WHERE 7 RowNumber between 10000 and 10020 阅读全文

posted @ 2007-10-17 11:10 陳偉 阅读(183) 评论(0) 推荐(0)

2007年10月16日

摘要: select --temp=(select count(*) from syscolumns -- where object_id('EB_Admin_UserInCategory')=id -- and colid<=A.colid), name, CASE WHEN xtype=34 THEN 'image' WHEN xtype=3... 阅读全文

posted @ 2007-10-16 11:27 陳偉 阅读(272) 评论(0) 推荐(0)

2007年10月8日

摘要: private string Upload(string filename) { FileInfo fileInf = new FileInfo(filename); string uri = "ftp://" + ftpServerIP + "/" + fileInf.Name; URL = uri.Sub... 阅读全文

posted @ 2007-10-08 18:02 陳偉 阅读(162) 评论(0) 推荐(0)

2007年10月4日

摘要: //先添加引用 ConfigurationManager.RefreshSection("AppSettings"); System.Configuration.ConfigurationManager.AppSettings["count"].ToString(); 調用連接串 System.Configuration.ConfigurationManager.Connection... 阅读全文

posted @ 2007-10-04 11:47 陳偉 阅读(260) 评论(0) 推荐(0)

摘要: private void generate_zip() { string[] FileProperties = new string[2]; FileProperties[0] = directory + "\\" + foldername + "\\" + DateTime.Now.ToString("yyyyMMdd"); ... 阅读全文

posted @ 2007-10-04 10:31 陳偉 阅读(276) 评论(0) 推荐(0)

摘要: //判斷表是否存在 private string TableNull(string report_name) { //.........................................................modify 1.............................. str... 阅读全文

posted @ 2007-10-04 10:00 陳偉 阅读(232) 评论(2) 推荐(0)

摘要: //Email function private string Send_Mail(string s_from, string s_to, string m_title, string m_body, string m_file) { // 's_from 發件箱地址 //'pwd 發件箱密碼 ... 阅读全文

posted @ 2007-10-04 09:57 陳偉 阅读(1913) 评论(0) 推荐(0)