- 博客(10)
- 收藏
- 关注
转载 本地判断图片大小和宽度是可以的;IE6下测试通过,其他还没考虑JS兼容性
<br />本地判断图片大小和宽度是可以的;IE6下测试通过,其他还没考虑JS兼容性!JScript code <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script>function test(){ var img2=document.getElementById('img1');alert('图片大小为'+parseInt(img2.fileSize/1024)+'K');//
2010-07-20 11:07:00
536
转载 ftp上传
using System;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebContr
2010-04-23 08:49:00
454
原创 .net 输出xml
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string query = "select id,title,categoryId,dateCreated,clickCounter from news_title where categor
2010-04-22 11:10:00
1076
转载 分析ASP.NET读取XML文件4种方法
方法一 :使用XML控件 读取XML方法一 方法二: 使用DOM技术 void Page_Load(Object sender,EventArgs e) { XmlDocument doc=new XmlDocument(); doc.Load(Server.MapPath("grade.xml")); xml1.Do
2010-04-22 10:32:00
393
原创 aspupload 批量上传图片并存入数据库,取得multipart/form-data的表单数据
///以上是表单,下面是kxfzg_save1.asp代码SaveFile=""Set Upload = Server.CreateObject("Persits.Upload.1")sCount = Upload.Save(Server.Mappath("UploadFile") & "/temp/")If sCount Response.Write "alert(请
2010-04-22 08:40:00
2754
转载 php while 与do while的区别
本教程来讲一下关于在php编程中常用到的循环语句do while与while的区别吧,while 是当条件为真是才执行而do while至少会执行一下,下面我们就来看看do {}while(条件)看do while的实例吧。$a =10;do {echo $a;}while ($a>11)这里会输出10;然后循环终止,那么我们来看看while的实例吧。$a=
2010-04-13 09:45:00
7184
原创 保存远程图片到本地
set_time_limit(900);$host=$dbuser=$dbpass=$database=//填写自己的mysql库连接$strsql=Select localPath ,fileName,id,fromUrl from news_image where istrue=0 order by dateCreated desc ;//查询图片$array1=
2010-04-13 09:08:00
563
转载 php删除文件
如何用php删除文件呢?php中有个函数叫作unlink。只要一个参数,表示文件路径就行了。bool unlink ( string filename)成功删除返回真,否则返回假。这次我在项目中,需要用到删除文件操作。为了完美的操作,首先要判断一下这个路径的文件是否存在,用file_exists函数。如若存在,则去删除文件。具体代码如下:if(file_exists($au
2010-04-13 08:58:00
315
原创 批量切割图片
form1.cs 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 Syste
2010-04-13 08:47:00
542
原创 进度条
protected void processBar(int c, int t) { if (c == 0) { string strFileName = Request.PhysicalApplicationPath + "//admin//progressbar.htm"; System.IO.StreamReade
2010-04-13 08:34:00
270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人