| Author: divya 16 Oct 2008 | Member Level: Gold | Rating: Points: 2 |
Dim fileName As String If (FileUpload1.PostedFile.ContentLength <> 0) Then Dim file As String = FileUpload1.PostedFile.FileName fileName = System.IO.Path.GetFileName(file) fileName = "" + txtUsername.Text.ToString() + " " & fileName Else fileName = "" End If
If (fileName <> "") Then FileUpload1.PostedFile.SaveAs(Server.MapPath("Uploads") + "\\" + fileName) seek.ResumePath = "Uploads/" + fileName Else seek.ResumePath = ""
End If
|
| Author: divya 16 Oct 2008 | Member Level: Gold | Rating: Points: -10 |
Dim fileName As String If (FileUpload1.PostedFile.ContentLength <> 0) Then Dim file As String = FileUpload1.PostedFile.FileName fileName = System.IO.Path.GetFileName(file) fileName = "" + txtUsername.Text.ToString() + " " & fileName Else fileName = "" End If dim ResumePath as string If (fileName <> "") Then FileUpload1.PostedFile.SaveAs(Server.MapPath("Uploads") + "\\" + fileName) ResumePath = "Uploads/" + fileName Else ResumePath = ""
End If
|