locked
Getting data from ASP.NET page which is Posted by another URL RRS feed

  • Question

  • User-1801316070 posted

    Asp.Net 2.0 (C#)

    Hi Friends,

    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)


    Friday, April 3, 2009 3:20 AM

Answers

  • User-1447753055 posted

    You can easily access the previous page and get the control over findcontrol.  

    if (Page.PreviousPage != null)
    {
        FileUpload control = (FileUpload)Page.PreviousPage.FindControl("FileUpload1");
    }
      
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 3, 2009 4:05 AM