hao_2468

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2009年10月23日

摘要: public DataTable ExportExcel(string sheetName){DataTable rs = new DataTable(); if (!this.FileUpload1.HasFile){ this.RunInSide("请选择要导入的文件!");return null;}try{//获取服务器路径strin... 阅读全文
posted @ 2009-10-23 20:57 hao_2468 阅读(162) 评论(0) 推荐(0) 编辑

摘要: ----------------------使用游标操作数据库------------------------------------------alter procedure doTableasDECLARE @A1 VARCHAR(200),@A2 VARCHAR(200),@A3 varchar(1000),@A4 varchar(200)declare @i intdeclare @j i... 阅读全文
posted @ 2009-10-23 20:28 hao_2468 阅读(158) 评论(0) 推荐(0) 编辑

摘要: protected string[] removeDuplicate(string[] ArrInput){ArrayList nStr = new ArrayList();for (int i = 0; i /// 得到收费用户的信息(去空格)/// /// public string[] getChargePhone(){ string fee= this.txtMen.Text.Tr... 阅读全文
posted @ 2009-10-23 20:26 hao_2468 阅读(274) 评论(0) 推荐(0) 编辑

摘要: string fullName= this.FileUpload1.PostedFile.FileName;if (this.FileUpload1.HasFile){System.Drawing.Image image = System.Drawing.Image.FromFile(fullName);int width = image.Width;int height = image.Heig... 阅读全文
posted @ 2009-10-23 20:23 hao_2468 阅读(107) 评论(0) 推荐(0) 编辑

摘要: 使用时,只要在页面的onload中调用即可这是找到的资料:js文件路径问题做一个UserControl时候,不能用"../"指定相对路径,因为这将依赖于目录结构(只能固定某一层),也不能用"~",好象只有图片可以 用这个,并且document.write也不能用"~"表示图片的根路径。我的解决办法是在页面load时候获取页面的href,然后处理后得到根路 径,加上你的js存放路径就... 阅读全文
posted @ 2009-10-23 20:21 hao_2468 阅读(205) 评论(0) 推荐(0) 编辑

摘要: system.drawing.image image = system.drawing.image.fromfile(path);system.drawing.image copyimage = system.drawing.image.fromfile( server.mappath(".") + "/alex.gif");graphics g = graphics.fromimage(imag... 阅读全文
posted @ 2009-10-23 20:18 hao_2468 阅读(122) 评论(0) 推荐(0) 编辑