Last post Apr 03, 2009 04:05 AM by matia.baldinger
Apr 03, 2009 03:20 AM|Mitesh_Darji|LINK
Asp.Net 2.0 (C#)
I have created one aspx page which is contains one FileUpload control and i want to upload file.
but my problem is that suppose some other user Post the Data from other site to my aspx page after posting the data how can i get FileName and FilePath from my aspx page.
(1) www.FirstDomail.com/First.aspx (which is Post the Data with the Use of Form Post Method)
(2) www.SecondDomain.com/Second.aspx (i want to upload file which is posted by First.aspx page)
Apr 03, 2009 04:05 AM|matia.baldinger|LINK
You can easily access the previous page and get the control over findcontrol.
if (Page.PreviousPage != null)
FileUpload control = (FileUpload)Page.PreviousPage.FindControl("FileUpload1");