随笔- 25
文章- 12
评论- 43
摘要: 删除表zfid,zsyj,zsbz重复记录中delete from yz_zfswxx where id not in(select id from yz_zfswxx where id in (select min(id) from yz_zfswxx group by zfid,zsyj,zsbz having count(zfid)>=1))阅读全文
posted @ 2008-09-02 17:29 红色石头 阅读(135) 评论(0) 编辑
摘要: 1、在原有xsd的架构上增加一列imgdata,数据类型为Base64Binary;2、生成项目,重新指定报表数据源,将imgdata字段放入报表的相应位置;3、代码中,生成数据集时,查询语句在原来的查询语句基础上增加一个空一字段imgdata如:select ....,cast(null as image) as imgdata from....,4、处理数据集,foreach(DataRow ...阅读全文
posted @ 2008-05-23 16:01 红色石头 阅读(656) 评论(0) 编辑
摘要: 动态原型方法:在构造函数内定义非函数属性,而函数属性则利用原型属性定义。functionCar(sColor,iDoors,iMpg){this.color=sColor;this.doors=iDoors;this.mpg=iMpg;this.drivers=newArray("Mike","Sue");if(typeofCar._initialized=="undefined"){Car.pr...阅读全文
posted @ 2007-09-10 23:04 红色石头 阅读(123) 评论(1) 编辑
摘要: 传递中文之前,将要传递的中文参数进行编码,在接收时再进行解码。 传递时编码:string keyword=this.txtSeek.Text.Trim();this.Response.Redirect("~/product/product_list.aspx?keyword="+Server.UrlEncode(keyword));如果此时传递的是中文"我",则地址栏显示...product/pr...阅读全文
posted @ 2007-05-12 23:47 红色石头 阅读(233) 评论(1) 编辑
摘要: 默认超过纸张大小自动翻页,如果要控制行数,则需要写公式例如每页显示12条记录:1.选择[Section Expert...]2.选择[Details]3.选择[New Page After]的公式按钮,选择[Basic Syntax]输入以下代码:if onlastrecord then formula = false else if RecordNumber mod 12 =0 then ...阅读全文
posted @ 2007-05-10 10:58 红色石头 阅读(717) 评论(1) 编辑
