this should help u out
Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
'Grab the file name from its fully qualified path at client
Dim strFileName As String = MyFile.PostedFile.FileName
' only the attched file name not its path
' Dim c As String = System.IO.Path.GetFileName(strFileName)
Dim c As String
c = dlstForm.SelectedItem.Text & ".htm"
'Save uploaded file to server at C:\ServerFolder\
Try
Dim strVirtualPath As String = Request.ApplicationPath &
"/HabitationSurvey/Reports/"
MyFile.PostedFile.SaveAs((Request.MapPath(strVirtualPath)) + c)
TextBox1.Text = "Your File Uploaded Sucessfully at server "
Catch Exp As Exception
TextBox1.Text = "An Error occured. Please check the attached file"
End Try
End Sub
On 5/18/05, Parvez Khan <[EMAIL PROTECTED]> wrote:
> Dear Friends,
>
> I need your help , actually i want to save or upload my files from client
> machine to http web server
>
> So how do i do this ..
> please help its urgent..
>
> Thanks in advance
>
> Parvez
>
> [Non-text portions of this message have been removed]
>
>
> ________________________________
> Yahoo! Groups Links
>
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/