System.Web.UI.HtmlControls.HtmlInputFile

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matrix - MAM

    System.Web.UI.HtmlControls.HtmlInputFile

    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-


Working...