Click here to Skip to main content
15,909,437 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to format Pin
Luc Pattyn17-Sep-09 4:32
sitebuilderLuc Pattyn17-Sep-09 4:32 
GeneralRe: how to format Pin
rbjanaki17-Sep-09 5:19
rbjanaki17-Sep-09 5:19 
GeneralRe: how to format Pin
Luc Pattyn17-Sep-09 5:34
sitebuilderLuc Pattyn17-Sep-09 5:34 
AnswerRe: how to format Pin
Ian Shlasko17-Sep-09 7:35
Ian Shlasko17-Sep-09 7:35 
GeneralRe: how to format Pin
rbjanaki17-Sep-09 7:52
rbjanaki17-Sep-09 7:52 
QuestionLost on how you would upload a file in VB.net Pin
DJ Matthews17-Sep-09 2:42
DJ Matthews17-Sep-09 2:42 
AnswerRe: Lost on how you would upload a file in VB.net Pin
EliottA17-Sep-09 5:39
EliottA17-Sep-09 5:39 
GeneralRe: Lost on how you would upload a file in VB.net Pin
DJ Matthews17-Sep-09 6:20
DJ Matthews17-Sep-09 6:20 
Ok, I finally figured it out. There is a property called Request.Files, It holds all of the data on the files that are being uploaded to that page. You can then loop through it and save the files to the web server.

Code for anyone interested:
Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Me.Request.Files.Count <> 0 then
            Dim I As Integer
            For I = 0 To Me.Request.Files.Count - 1
                Me.Request.Files.Item(I).SaveAs("C:\some\path\Uploads\" & Me.Request.Files.Item(I).FileName)
            Next
        End If


    End Sub
End Class


I'm not sure that's the best way to go about it, but it works! I think I may write up an article about this as I couldn't find this information easily ANYWHERE.
QuestionProcess Object saying "Access Denied" Pin
specialdreamsin17-Sep-09 1:37
specialdreamsin17-Sep-09 1:37 
AnswerRe: Process Object saying "Access Denied" [modified] Pin
tosch17-Sep-09 2:15
tosch17-Sep-09 2:15 
QuestionDate problem Pin
rmedo17-Sep-09 0:16
rmedo17-Sep-09 0:16 
AnswerRe: Date problem Pin
Ashfield17-Sep-09 1:41
Ashfield17-Sep-09 1:41 
QuestionProblem in using .selection.type Pin
Padma N16-Sep-09 19:54
Padma N16-Sep-09 19:54 
AnswerRe: Problem in using .selection.type Pin
Johan Hakkesteegt16-Sep-09 20:57
Johan Hakkesteegt16-Sep-09 20:57 
GeneralRe: Problem in using .selection.type Pin
Padma N16-Sep-09 21:20
Padma N16-Sep-09 21:20 
GeneralRe: Problem in using .selection.type Pin
Johan Hakkesteegt16-Sep-09 21:44
Johan Hakkesteegt16-Sep-09 21:44 
QuestionVisual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:00
Bob Beaubien16-Sep-09 15:00 
AnswerRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:09
protectorChristian Graus16-Sep-09 15:09 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:16
Bob Beaubien16-Sep-09 15:16 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:25
Bob Beaubien16-Sep-09 15:25 
GeneralRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:29
protectorChristian Graus16-Sep-09 15:29 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:37
Bob Beaubien16-Sep-09 15:37 
GeneralRe: Visual Basic KeyBoard Pin
N a v a n e e t h16-Sep-09 15:42
N a v a n e e t h16-Sep-09 15:42 
GeneralRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:50
protectorChristian Graus16-Sep-09 15:50 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 16:14
Bob Beaubien16-Sep-09 16:14 

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.