473,748 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 :
Expand|Select|Wrap|Line Numbers
  1. <form id="frmCustomerCard" runat="server" style="width:600px; margin:0 auto"
  2. onsubmit="return CheckBeforeSubmit();">
  3. ......
  4. <label for="FileUpload3">Choose file for upload</label><asp:FileUpload
  5. ID="FileUpload3" runat="server" />
  6. .....
  7. <asp:Button Text="Update Detailes"   runat=server id="btnSubmit"/><br />
  8. </form>
  9.  
with a flash file for example that dosent occur!
any iidea why?
htnaks in advance
peleg

Aug 31 '07 #1
2 1475
On Aug 31, 10:20 pm, pelegk1 <pele...@discus sions.microsoft .com>
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 :
Expand|Select|Wrap|Line Numbers
  1. <form id="frmCustomerCard" runat="server" style="width:600px; margin:0 auto"
  2. onsubmit="return CheckBeforeSubmit();">
  3. .....
  4. <label for="FileUpload3">Choose file for upload</label><asp:FileUpload
  5. ID="FileUpload3" runat="server" />
  6. ....
  7. <asp:Button Text="Update Detailes"   runat=server id="btnSubmit"/><br />
  8. </form>
  9.  
with a flash file for example that dosent occur!
any iidea why?
htnaks in advance
peleg
Where is the code to save the files?

Aug 31 '07 #2
sorry my mistake
on the saved row iused another fileuplaod object:)

"Alexey Smirnov" wrote:
On Aug 31, 10:20 pm, pelegk1 <pele...@discus sions.microsoft .com>
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 :
Expand|Select|Wrap|Line Numbers
  1.  <form id="frmCustomerCard" runat="server" style="width:600px; margin:0 auto"
  2.  onsubmit="return CheckBeforeSubmit();">
  3.  .....
  4.  <label for="FileUpload3">Choose file for upload</label><asp:FileUpload
  5.  ID="FileUpload3" runat="server" />
  6.  ....
  7.  <asp:Button Text="Update Detailes"   runat=server id="btnSubmit"/><br />
  8.  </form>
  9.  
with a flash file for example that dosent occur!
any iidea why?
htnaks in advance
peleg

Where is the code to save the files?

Aug 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1232
by: Jon | last post by:
"the viewstate is invalid for this page and might be corrupted" this error comes up when a user leaves an .aspx page on the browser for a while then comes back to use it. what causes it and how can you fix this. thanks
13
141253
by: Squid Seven | last post by:
This is just bizarre. for the following snippet of code: #include <string> using std::string; I get the error message:
1
1344
by: Matthew | last post by:
Hello Access gurus, I'm helping out a friend who's a small business owner. The software he uses to run his shop uses an Access backend. We recently had some huge headaches w/DB corruption. We had to send the main mdb file back to the vendor, who had to send it to an outside company in order to get it fixed. When they did this, we were told that it could be days until we'd get it back. We had a backup that was 3 days old at that...
9
1902
by: Zlatko Matiæ | last post by:
Hello. Could somebody explain the following situation: I have a .mdb on my notebook with Windows XP SP2 and Access 2003. I prepared ..mde and tried to use it on another computer with Windows XP SP2 and Office XP installed on it. An error "...Your VBA project is corrupted" appeared. When I copy .mdb to that computer, instead of .mde, it works. If I then make the .mde on that computer, it works! If I copy the .mde then to the first...
0
2338
by: Trevor Andrew | last post by:
Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get further feedback on this issue. Firstly the background. I have a small ASP.NET application under development. I'm using VS 2002 with Framework 1.1. One of the pages is a "resources" page that contains a list-box of various RSS feeds I am interested in surveying. As you select the different RSS...
2
1978
by: Der Script Meister | last post by:
There are a number of possible causes for viewstate errors, but in the past month, I've seen four cases where the Checkpoint "Next Generation" firewall caused this error. Here are the details: This "intelligent" firewall can perform a cross-site scripting attack check when you tell it there's a web server behind it, however, this option appears to remove < and > characters from the form data which breaks viewstate. Known...
5
2551
by: Stan | last post by:
When I create a Web project and then try to add the files to it (Add Existing Item), I get this error message "The folder http://localhost/FinWeb is no longer availabe" In fact the folder and the virtual directory FinWeb both exist and project compiles just fine, but I cannot add the existing files to it. If I create a project with a different name (FinWeb2) it works fine.
1
1754
by: platinumbay | last post by:
Sometimes when I run or build (or save I think) one of several VB .NET CE applications I get the above error. I then get a 'save file as' option to change the 'myapp.vbdproj' file. If you keep the same name you get an 'already exists' error. If you choose to overwrite you get: The file Pms_myapp.vbdproj has changed since you opened it. Would you like to save the version you have open over the changes on disk? You then get the following...
1
5663
by: Plissken.s | last post by:
Hi I have a problem which result in a "corrupted double-linked list error", I would need some help in trouble shot this one: Here is a stack track: Thread (Suspended: Signal 'SIGABRT' received. Description: Aborted.) 15 __kernel_vsyscall() 0xb7f25402 14 raise() 0x00646118 13 abort() 0x00647888
0
8994
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9555
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9250
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8247
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.