您好,上传路劲一般都是您设定好的,关于文件名的获取可以在校验事件里面进行获取
如下代码
- protected void c1Upload1_ValidatingFile(object sender, C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs e)
- {
- if (e.IsValid)
- this.TextBox1.Text += e.UploadedFile.FileName + Environment.NewLine;
- else
- this.TextBox2.Text += e.UploadedFile.FileName + Environment.NewLine;
- }
复制代码
|