asp.net 2 loading picture - the file is "corrupted"

Discussion in 'ASP .Net' started by =?Utf-8?B?cGVsZWdrMQ==?=, Aug 31, 2007.

  1. i am trying to load diffrent types of pictures like jpg/png/....
    the file is being uploaded but i cant after it see the file (i try to open
    it and get the message that
    "preview cant be viewed" when i lin it to my html in IE i see whith box
    empty.

    this is the code i use :
    Code:
    <form id="frmCustomerCard" runat="server" style="width:600px; margin:0 auto" 
    onsubmit="return CheckBeforeSubmit();">
    ......
    <label for="FileUpload3">Choose file for upload</label><asp:FileUpload 
    ID="FileUpload3" runat="server" />
    .....
    <asp:Button Text="Update Detailes"   runat=server id="btnSubmit"/><br />
    </form>
    
    with a flash file for example that dosent occur!
    any iidea why?
    htnaks in advance
    peleg
    =?Utf-8?B?cGVsZWdrMQ==?=, Aug 31, 2007
    #1
    1. Advertising

  2. On Aug 31, 10:20 pm, pelegk1 <>
    wrote:
    > i am trying to load diffrent types of pictures like jpg/png/....
    > the file is being uploaded but i cant after it see the file (i try to open
    > it and get the message that
    > "preview cant be viewed" when i lin it to my html in IE i see whith box
    > empty.
    >
    > this is the code i use :
    >
    Code:
    > <form id="frmCustomerCard" runat="server" style="width:600px; margin:0 auto"
    > onsubmit="return CheckBeforeSubmit();">
    > .....
    > <label for="FileUpload3">Choose file for upload</label><asp:FileUpload
    > ID="FileUpload3" runat="server" />
    > ....
    > <asp:Button Text="Update Detailes"   runat=server id="btnSubmit"/><br />
    > </form>
    > 
    > with a flash file for example that dosent occur!
    > any iidea why?
    > htnaks in advance
    > peleg


    Where is the code to save the files?
    Alexey Smirnov, Aug 31, 2007
    #2
    1. Advertising

  3. sorry my mistake
    on the saved row iused another fileuplaod object:)

    "Alexey Smirnov" wrote:

    > On Aug 31, 10:20 pm, pelegk1 <>
    > wrote:
    > > i am trying to load diffrent types of pictures like jpg/png/....
    > > the file is being uploaded but i cant after it see the file (i try to open
    > > it and get the message that
    > > "preview cant be viewed" when i lin it to my html in IE i see whith box
    > > empty.
    > >
    > > this is the code i use :
    > >
    Code:
    > > <form id="frmCustomerCard" runat="server" style="width:600px; margin:0 auto"
    > > onsubmit="return CheckBeforeSubmit();">
    > > .....
    > > <label for="FileUpload3">Choose file for upload</label><asp:FileUpload
    > > ID="FileUpload3" runat="server" />
    > > ....
    > > <asp:Button Text="Update Detailes"   runat=server id="btnSubmit"/><br />
    > > </form>
    > > 
    > > with a flash file for example that dosent occur!
    > > any iidea why?
    > > htnaks in advance
    > > peleg

    >
    > Where is the code to save the files?
    >
    >
    =?Utf-8?B?cGVsZWdrMQ==?=, Aug 31, 2007
    #3
    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. Charles Miller, Jr.

    &copy;, &reg;, etc corrupted in ASP.NET

    Charles Miller, Jr., May 24, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    710
    Charles Miller, Jr.
    May 24, 2005
  2. Steven K0
    Replies:
    0
    Views:
    351
    Steven K0
    Dec 24, 2005
  3. Mark Richards
    Replies:
    2
    Views:
    1,088
    Andrew Thompson
    Oct 8, 2004
  4. OM
    Replies:
    4
    Views:
    92
    Lasse Reichstein Nielsen
    Sep 18, 2003
  5. Replies:
    8
    Views:
    1,223
    Mick White
    Apr 19, 2005
Loading...

Share This Page