I'm using the following code in my Web Application.
private void Button1_Click(o bject sender, System.EventArg s e)
{
//sourceFile is id of System.Web.UI.H tmlControls.Htm lInputFile
if(sourceFile.P ostedFile != null)
{
string location = @"C\Temp\";
string fn = System.IO.Path. GetFileName(sou rceFile.PostedF ile.FileName);
sourceFile.Post edFile.SaveAs(l ocation + "test.txt") ;
}
}
This was working fine in .Net Framwork 1.1 and above, but not in .Net
Framwork 1.0. Could any one of you let me know whether this will work with
..Net Framwork 1.0 or not. thanks.
-Chitra-
private void Button1_Click(o bject sender, System.EventArg s e)
{
//sourceFile is id of System.Web.UI.H tmlControls.Htm lInputFile
if(sourceFile.P ostedFile != null)
{
string location = @"C\Temp\";
string fn = System.IO.Path. GetFileName(sou rceFile.PostedF ile.FileName);
sourceFile.Post edFile.SaveAs(l ocation + "test.txt") ;
}
}
This was working fine in .Net Framwork 1.1 and above, but not in .Net
Framwork 1.0. Could any one of you let me know whether this will work with
..Net Framwork 1.0 or not. thanks.
-Chitra-