protected void Button1_Click(object sender, EventArgs e) // Button1的单击事件
{
string res; //变量
upload up = new upload(); //上传方法
res = up.Up(file1, "../Uploads/");//上传文件
this.Label2.Visible = true; //显示Label2
this.Label2.Text = up.Resup[Convert.ToInt32(res)]; //Label2显示上传后传回来的值
this.txtpic.Text = up.s;//txtpic显示上传后传回来的值
string sql = "update flash set flash1='" + txtpic.Text + "' where id=1";// 更新数据库语句
DB.execnonsql(sql);//执行更新