
protected void Submit1_ServerClick( object sender, EventArgs e).Response.Write("The file has been uploaded").protected void Submit1_ServerClick(object sender, EventArgs e).The HasFile control is not available for 1.1.
GET FILE PATH OF HTTPPOSTEDFILEBASE CODE
How do I code the Me.FileUpload1.HasFile for asp.net 1.1. Me.ltOne.Text = "File Uploaded Successfully" Me.(Server.MapPath("~/Upload/" & Me.FileUpload1.FileName)) Protected Sub cmdUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Me.ltOne.Text = "File Uploaded Successfully".Me.(Server.MapPath("~/Upload/" & Me.FileUpload1.FileName)).Protected Sub cmdUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs).I don't know why it would be throwing an exception error: Private Sub cmdUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpload.Click I wanted to know what you mean by place the uploads folder on my project folder. Hi I wanted to re-open this because I am still receiving this error. Hi, if you place the Upload folder on your Project folder, Server.MapPath.- Server.MappPath takes a path as a parameter and returns the exact physical location of that file on the hard drive Would that be why I am receiving the error or is something else wrong with my code the reason I am receiving error Do I need to put the path on the server.mappath. RegisterClientScriptBlock("anything", strScript) If Request.QueryString("retPath") = "link" Then LblMessage.Text = "Successfully saved file: " _ĭim strScript As String = "(0)." + control.Value + ".value = '"

MyPostedMember.SaveAs(WebFilePath.ToString)ĭim LinkPath As String = WebFilePath.Replace(RootPath, "") Private Sub cmdUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpload.Clickĭim MyFileColl As HttpFileCollection = Request.Filesĭim MyPostedMember As HttpPostedFile = MyFileColl.Get("File1")ĭim MyFileName As String = MyPostedMember.FileNameĭim intFileNameLength As Integer = InStr(1, StrReverse(MyFileName), "\")ĭim strFileNameOnly As String = Mid(MyFileName, (Len(MyFileName) - intFileNameLength) + 2)ĭim RootPath As String = Server.MapPath("/")ĭim tmpFolder As String = FileLoc.SelectedValue '("FileLoc")ĭim WebFilePath As String = Server.MapPath(tmpFolder & strFileNameOnly) '(tmpFolder & strFileNameOnly)

What do I need to do with the server.mappath to get this to work. I hope that someone is still around to help.
