473,508 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem problem problem:( Need Help

I want to upload file to server using below code and i did file size upto 10 mb max....
but i have some problem that is ... time out and lost connection some body told me to use stream which open connection always but i dont have idea how to use it as i never did asp programming very well
is any body tell me where should i can get materail or any one just give me example to upload file to the server in effective way....
thanks
If Not File1.PostedFile Is Nothing And File1.PostedFile.ContentLength > 0 Then
Dim fn As String = System.IO.Path.GetFileName(File1.PostedFile.FileNa me)
Dim SaveLocation As String = Server.MapPath("Data") & "\" & fn
Try
File1.PostedFile.SaveAs(SaveLocation)
Response.Write("the file has been uploaded")
Catch ex As Exception
Response.Write("Error" & ex.Message)
End Try
Else
Response.Write("Please select a file to upload")
End If

Jul 21 '05 #1
0 900

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

Similar topics

5
1647
by: Tim Axtelle | last post by:
I am new to Python and am trying to create a standalone exe from a python script using py2exe 0.5.0 and Python 2.3 without success. I am able to generate the appropriate .exe file but it is not...
2
1161
by: Mike | last post by:
I want to upload file to server using below code and i did file size upto 10 mb max... but i have some problem that is ... time out and lost connection some body told me to use stream which open...
4
4793
by: Derek | last post by:
Hi, I've built a rather large CGI that dumps a lot of data and a fairly complex javascript app out to the client's browser. Granted this may be poor style according to someone web design...
2
1201
by: Bigbuddha | last post by:
I have found this nice menu form my website www.folkspot.be But it has a usability problem. When i click "crew" for example, the submenu "crew" opens and i have to click the submenu to get to the...
0
3549
by: Christopher Ambler | last post by:
This is long, but it's driving me nuts. I need some adult supervision :-) (and I'm not above bribing for help) I have a stored procedure that I call that returns XML to me. The SP returns 3...
2
1596
by: Chad A. Beckner | last post by:
Hey all, I have a ASP .NET webpage which contains several panels. When I click a button on the first "panel" page, it postsback to the same page, and I switch the visibility of the panels...
0
1081
by: Dumdidum | last post by:
Hello I am a newbie to VB.NET, normally I code in VB6! Now I have a big problem: I want to have a server which has a windows media player-Control on it. With the client I should remotly...
1
1205
by: rxgmoral | last post by:
dll problem,help me:) i create dll project ,the dll is Use MFC in a Static Library i hope exe call ListCtrl class from dll ==================DLL====================...
8
1018
by: Adela Arpitha | last post by:
hello, i have designed an intranet website using asp.net c# in my laptop which is a widescreen....and when i project / run it in a desktop or projector 20% of the screen gets cut...please help me...
16
2313
by: squrel | last post by:
Hello everyone.. I need some help here... i m using VB6 and SQLServer2000... i have forms regarding some cases in courts and in my form i have two DTPicker called as Entrydate and Closedate......
0
7227
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,...
0
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7331
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,...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5056
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...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1564
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 ...
0
424
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...

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.