| Author: vipul 05 Sep 2008 | Member Level: Diamond | Rating: Points: 2 |
hi, first of all you can't used System.IO.Path.GetFileName(File1.PostedFile.FileName); in the html page because this class is used only in the .net file . for uploading file from html page you used. For that you refer this document http://www.cs.tut.fi/~jkorpela/forms/file.html
vipul, http://dongavipul.blogspot.com
|
| Author: Athira Appukuttan 05 Sep 2008 | Member Level: Diamond | Rating: Points: 3 |
<input id="fuupload" type="file" runat="server" /><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
using System.IO; string file = Path.GetFileName(fuupload.PostedFile.FileName);
Try like this
|