upload file in asp.net

Discussion in 'ASP .Net Web Controls' started by Sam, May 31, 2004.

  1. Sam

    Sam Guest

    hi,
    how to upload file in asp.net ?, i prefer something like file attachment as
    we can see in yahoo or hotmail.

    tks,
    Sam, May 31, 2004
    #1
    1. Advertising

  2. Sam

    Joerg Jooss Guest

    Sam wrote:
    > hi,
    > how to upload file in asp.net ?, i prefer something like file
    > attachment as we can see in yahoo or hotmail.


    On the client side, you can either

    1) use the HtmlInputFile control or
    2) use a bare <input type="file" .. /> tag.

    On the server side, you then retrieve the posted file

    1) from the HtmlInputControl's PostedFile property or
    2) from the Request.Files property

    Cheers,

    --
    Joerg Jooss
    Joerg Jooss, May 31, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,435
    Bruce Barker
    Aug 3, 2005
  2. Heather Fraser
    Replies:
    0
    Views:
    622
    Heather Fraser
    Jul 5, 2004
  3. LisaBigJax
    Replies:
    5
    Views:
    24,472
    tommynzuk
    Oct 23, 2006
  4. Replies:
    1
    Views:
    925
    Gabriel Genellina
    Nov 25, 2006
  5. Prakash
    Replies:
    3
    Views:
    452
    Ray at
    Nov 12, 2003
Loading...

Share This Page