随笔分类 -  C#

摘要:多的不说 直接上代码好了。首先来发下实体类的代码,如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem... 阅读全文
posted @ 2010-05-31 16:37 ScottX 阅读(199) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Thr... 阅读全文
posted @ 2009-10-27 10:50 ScottX 阅读(1733) 评论(0) 推荐(0) 编辑
摘要:1.webform 在DataGridView的RowDataBound事件裡判斷並修改: if(e.Row.Cells[n].Text== "0 ") { e.Row.Attributes.Add( "bgColor ", "red "); } else if(e.Row.Cells[n].Text> "500 ") { e.Row.Attributes.Add( "bgColor "... 阅读全文
posted @ 2009-10-21 22:32 ScottX 阅读(8229) 评论(0) 推荐(0) 编辑
摘要:在AJAX中,因为我们使用了ScriptManager.因此,不能直接使用Response.write js。 但ScriptManager提供了一个RegisterClientScriptBlock 可以让我们来用。 使用如下 : string strJS = " alert('谢谢你的参与!'); "; System.Web.UI.Sc... 阅读全文
posted @ 2009-02-01 22:38 ScottX 阅读(273) 评论(0) 推荐(0) 编辑
摘要:一、抽象类: 抽象类是特殊的类,只是不能被实例化;除此以外,具有类的其他特性;重要的是抽象类可以包括抽象方法,这是普通类所不能的。抽象方法只能声明于抽象类中,且不包含任何实现,派生类必须覆盖它们。另外,抽象类可以派生自一个抽象类,可以覆盖基类的抽象方法也可以不覆盖,如果不覆盖,则其派生类必须覆盖它们。 二、接口: 接口是引用类型的,类似于类,和抽象类的相似之处有三点: 1、不能实例化; 2、包含未... 阅读全文
posted @ 2008-12-16 16:32 ScottX 阅读(170) 评论(0) 推荐(0) 编辑
摘要:今日,做一个储存,之前是在dataset中一起执行多个select,再存入dataset。但是在c# moblie开发中,不能同时执行多个Select。那么只有select一个table存入dataset一次。 如果用 DataSet.table.add(tablename);这样是不行的,那么我们只有用Dataset中的Merge方法。 string tb0sql = "select Ra... 阅读全文
posted @ 2007-10-11 17:54 ScottX 阅读(3516) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示