62,073
社区成员
发帖
与我相关
我的任务
分享
protected void Button1_Click(object sender, System.EventArgs e)
{
string m_path = Path.Combine(MapPath("."), "UploadedFiles");
WebbUpload m_upload = new WebbUpload();
UploadFile m_file = m_upload.GetUploadFile("m_file");
if (m_file.FileName == null || m_file.FileName == string.Empty) continue;
string m_filePath = Path.Combine(m_path, Path.GetFileName(m_file.ClientFullPathName));
m_file.SaveAs(m_filePath);
this.Label1.Text = "上传的文件为:<br/>";
this.Label1.Text += "<a href='uploadedFiles\\" + Path.GetFileName(m_file.ClientFullPathName) + "'>uploadedFiles\\" + Path.GetFileName(m_file.ClientFullPathName) + "</a><p>";
}
protected void Button1_Click(object sender, System.EventArgs e)
{
string m_path = Path.Combine(MapPath("."), "UploadedFiles");
WebbUpload m_upload = new WebbUpload();
UploadFile m_file = m_upload.GetUploadFile("m_file");
if (m_file==null) return;
if (m_file.FileName == null || m_file.FileName == string.Empty) return;
string m_filePath = Path.Combine(m_path, Path.GetFileName(m_file.ClientFullPathName));
m_file.SaveAs(m_filePath);
this.Label1.Text = "上传的文件为:<br/>";
this.Label1.Text += "<a href='uploadedFiles\\" + Path.GetFileName(m_file.ClientFullPathName) + "'>uploadedFiles\\" + Path.GetFileName(m_file.ClientFullPathName) + "</a><p>";
}