再贴个上传的例子
private void Submit1_ServerClick(object sender, System.EventArgs e)
{
HttpPostedFile picture_PostedFile =picture.PostedFile;
HttpPostedFile taskpic1_PostedFile = taskpic1.PostedFile;
HttpPostedFile taskpic2_PostedFile = taskpic2.PostedFile;

procedure.ProcedureName="Teacher_insert";
result=procedure.Call(name.Text,name.Text,gender.SelectedItem.Value,Convert.ToDateTime(birthday.Value),headship.Text,departmentname.SelectedItem.Value.ToString(),picture_PostedFile,instruction.Value,task.Value,workplace.Text,telephone.Text,email.Text,taskpic1_PostedFile,taskpic2_PostedFile,degree.Text,job.Text,other.Value,false);
if (result.Value==1)
{
message.Text="添加教师成功!同时添加了教师用户,帐号和密码为教师姓名,老师修改个人信息时请修改自己的密码!"; }
else
message.Text="添加失败!";
}
}