svn path=/trunk/mcs/; revision=71041
+2007-01-15 Vladimir Krasnov <vladimirk@mainsoft.com>
+
+ * FileUpload.cs: fixed FileName property, should return filename
+ without full path on client side
+
2007-01-15 Ilya Kharmatsky <ilya -at- decode-systems.com>
* ListControl.cs
[Browsable (false)]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
public string FileName {
- get {
- if (PostedFile == null)
- return string.Empty;
- else
- return PostedFile.FileName;
+ get {\r
+ if (PostedFile == null)\r
+ return string.Empty;\r
+ else\r
+ return Path.GetFileName (PostedFile.FileName);
}
}