Author: reven_gr | Posted on: 6/4/2010 9:29:37 AM | Views : 221

 hi there,
i am trying to upload a pdf to the server like this:
 
<input id="uploadedFile" type="file" runat="server" /> <p><input type="button" id="upload" value="Upload" OnServerClick="Upload_Click" runat="server" /></p>
 
Protected Sub Upload_Click(ByVal source As Object, ByVal e As EventArgs) Dim postedFile As System.Web.HttpPostedFile = uploadedFile.PostedFile Dim dirUrl As String = Server.MapPath(Session("wwwDirectory").ToString + "/pdf") Dim fileUrl As String = "/" + Path.GetFileName(postedFile.FileName) If Not Right(postedFile.FileName.ToString, 3) = "pdf" Then message.Visible = True message.Text = "???????? ?? ????????? ??? ...

Go to the complete details ...