plzz tell how file is uploaded using browser...........
-
plzz tell how file is uploaded using browser button on page. it means write code to read file,upload and browse button & write code to save and selected file to browser....
-
plzz tell how file is uploaded using browser button on page. it means write code to read file,upload and browse button & write code to save and selected file to browser....
please put his code in html site and manage yourself where ever you want to save your file there is method for saveing file. Cool
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="aaaaaa.aspx.vb" Inherits="civilesengineers.aaaaaa"%> aaaaaa Private Function PickupFileNameWithExtasion(byval sttr as string) as String Dim st As String = Trim(sttr) Dim sr As String dim cs as String Dim f, k As Integer sr = StrReverse(st) f = InStr(sr, "\") k = f - 1 cs = StrReverse(Mid(sr, 1, k)) PickupFileNameWithExtasion = cs End Function ' Upload Files Function Sub UploadBtn_Click(Sender as Object, e as EventArgs) dim strLocalPath as string dim strFileName as string dim i as integer=2 Dim popUpScript As String if MyFile.PostedFile.FileName <> "" then 'FileName.InnerHtml = MyFile.PostedFile.FileName 'MyContentType.InnerHtml = MyFile.PostedFile.ContentType 'ContentLength.InnerHtml = cStr(MyFile.PostedFile.ContentLength) ' ' Making Path and File Name ' strFileName = PickupFileNameWithExtasion(MyFile.PostedFile.FileName) MyFile.PostedFile.SaveAs(ConfigurationSettings.AppSettings("MyPath")& strFileName) Else End if End Sub Upload Your File ================ **Selec New Usert File To Upload to Server:**
-
plzz tell how file is uploaded using browser button on page. it means write code to read file,upload and browse button & write code to save and selected file to browser....
manish srivastava wrote:
it means write code to read file,upload and browse button & write code to save and selected file to browser....
It seems you want CP to do all what you need, then what else would you do? Just copy/paste like Mark said in the other post? Oh boy, you are loosing your fun of writing code and being a programmer shouldn't appear in your mind.