SEO Software

    

Closed Thread
Results 1 to 6 of 6

Thread: ASP upload.

  1. #1

    Default ASP upload.

    hey, can any one know how can we upload or download any file in asp? means can any one give me code for uploading or downloading any file...in asp?


  2. SEO Software

  3. #2

    Lightbulb

    Quote Originally Posted by Avss View Post
    hey, can any one know how can we upload or download any file in asp? means can any one give me code for uploading or downloading any file...in asp?
    hi......
    any doubt of related to this you can simply checjk this link........
    Mega site of Bible studies and information
    here you get all answer of your question related to this......

  4. #3

    Default

    #33 - Most Discussed (This Month) - Global
    #20 - Most Discussed (This Month) - Comedy - Global
    #14 - Most Viewed (This Month) - Global
    #3 - Most Viewed (This Month) - Comedy - Global
    #1 - Top Favourited (This Month) - Global
    #1 - Top Favourited (This Month) - Comedy - Global
    #4 - Top Rated (This Month) - Global
    #1 - Top Rated (This Month) - Comedy - Global
    #17 - Top Rated (All Time) - Global
    #2 - Top Rated (All Time) - Comedy - Global
    Magmahost.com - Affordable Hosting Services
    Shared Hosting = $1.00 | Reseller Hosting = $6.95
    Click here to visit Magmahost

  5. #4

    Default

    For uploading file on the server you need appropriate permission to write content in the location. [ Host_Name\ ASPNET ] user must have the permission in the specified folder.

    Code:

    private void Button1_Click(object sender, System.EventArgs e)
    {
    if((this.file1.PostedFile !=null) && (this.file1.PostedFile.ContentLength >0))
    {

    try
    {
    string FileName=System.IO.Path.GetFileName(file1.PostedFi le.FileName);
    string SaveLocation=Server.MapPath("Data") + "\\" + FileName;
    this.file1.PostedFile.SaveAs(SaveLocation);
    Response.Write("File Uploaded !");
    }
    catch(Exception Ex)
    {
    Response.Write(Ex.Message);
    }

    }

    }

  6. #5

    Default

    You can use FileUplaod control given in toolbox.
    It is easy to use.................

  7. #6

    Default

    Quote Originally Posted by Avss View Post
    hey, can any one know how can we upload or download any file in asp? means can any one give me code for uploading or downloading any file...in asp?
    In ASP.NET file upload control is given.
    just give file path as you want to store the file in your PC.

Closed Thread

Similar Threads

  1. upload the image
    By Amar in forum ASP Help
    Replies: 7
    Last Post: 01-28-2010, 03:44 AM
  2. I want to upload an image on the web
    By Amar in forum Design and Development
    Replies: 1
    Last Post: 04-28-2009, 07:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts