Click here to Skip to main content
15,922,533 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSWF files Pin
Mr Dabbah4-Apr-05 22:42
Mr Dabbah4-Apr-05 22:42 
GeneralRe: SWF files Pin
Dave Kreskowiak5-Apr-05 5:52
mveDave Kreskowiak5-Apr-05 5:52 
Generalbuild trial appication Pin
samithaslk4-Apr-05 22:33
samithaslk4-Apr-05 22:33 
Generalhav an error tag for DBGrid Pin
Member 13879124-Apr-05 22:00
Member 13879124-Apr-05 22:00 
GeneralRe: hav an error tag for DBGrid Pin
Dave Kreskowiak5-Apr-05 3:45
mveDave Kreskowiak5-Apr-05 3:45 
Generaldynamically create picture control with tab Pin
shinay4-Apr-05 16:42
shinay4-Apr-05 16:42 
GeneralRe: dynamically create picture control with tab Pin
Dave Kreskowiak5-Apr-05 5:46
mveDave Kreskowiak5-Apr-05 5:46 
GeneralHelp ASAP Uploading pdf files in web server or database Pin
Anonymous4-Apr-05 16:25
Anonymous4-Apr-05 16:25 
I am working on a web application project where i need to uplaod many pdf/doc files onto the webserver and download those files when the user clicks the corresponding hyperlink.

I used the following code to upload the file, where MyFile is the html file input control.

If Not MyFile.PostedFile Is Nothing And MyFile.PostedFile.ContentLength > 0 Then
Dim fn As String = System.IO.Path.GetFileName(MyFile.PostedFile.FileName)
Dim SaveLocation As String = Server.MapPath("Articles") & "\" & fn
Try
MyFile.PostedFile.SaveAs(SaveLocation)
Response.Write("The file has been uploaded.")
Catch Exc As Exception
Response.Write("Error: " & Exc.Message)
End Try
Else
Response.Write("Please select a file to upload.")
End If

but it doesn't write it on the server( i need to load this onto my school's web sever.)

How do i download this file? If possible, how can i disable the save button on the pdf fiels when the user downloads the file.

I am using asp.net and vb.net , if anybody can help me write a code to this project it will highly appreciated.
GeneralRe: Help ASAP Uploading pdf files in web server or database Pin
Dave Kreskowiak5-Apr-05 3:35
mveDave Kreskowiak5-Apr-05 3:35 
GeneralListbox Pin
rstat14-Apr-05 15:05
rstat14-Apr-05 15:05 
GeneralRe: Listbox Pin
Dave Kreskowiak5-Apr-05 3:28
mveDave Kreskowiak5-Apr-05 3:28 
GeneralRe: Listbox Pin
rstat15-Apr-05 9:46
rstat15-Apr-05 9:46 
GeneralRe: Listbox Pin
Dave Kreskowiak5-Apr-05 10:25
mveDave Kreskowiak5-Apr-05 10:25 
GeneralDetermining File Type Pin
Anonymous4-Apr-05 11:42
Anonymous4-Apr-05 11:42 
GeneralRe: Determining File Type Pin
Anonymous4-Apr-05 14:59
Anonymous4-Apr-05 14:59 
GeneralRe: Determining File Type Pin
Anonymous4-Apr-05 16:51
Anonymous4-Apr-05 16:51 
GeneralEnumerating PATH environment variable. Pin
MrRich4-Apr-05 10:56
MrRich4-Apr-05 10:56 
GeneralRe: Enumerating PATH environment variable. Pin
Anonymous4-Apr-05 16:27
Anonymous4-Apr-05 16:27 
GeneralRePost, I messed up the first one Pin
Anonymous4-Apr-05 16:30
Anonymous4-Apr-05 16:30 
GeneralDang it Pin
Anonymous4-Apr-05 16:33
Anonymous4-Apr-05 16:33 
GeneralTCP client with integers Pin
Member 8079984-Apr-05 9:27
Member 8079984-Apr-05 9:27 
GeneralTrying to understand Data Access - Never Mind! Pin
frgood4-Apr-05 9:25
frgood4-Apr-05 9:25 
GeneralHelp me ASAP. Pin
abeyphier4-Apr-05 4:05
abeyphier4-Apr-05 4:05 
GeneralRe: Help me ASAP. Pin
Christian Graus4-Apr-05 10:34
protectorChristian Graus4-Apr-05 10:34 
GeneralRe: Help me ASAP. Pin
Dave Kreskowiak4-Apr-05 14:13
mveDave Kreskowiak4-Apr-05 14:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.