File Upload and Master Pages RRS feed

  • Question

  • User-1285135679 posted

    Hi everyone,

    I have a FileUpload component on a master page, and for some reason, when i access this page from a PDA, the HasFile property is always false when i have selected a file.

    I can use the FileUpload component by itself and it works fine on any platform (desktop/PDA/laptop), but as soon as i convert the page to be a content page, it just doesnt work on a PDA.

    Here is my code.  I am only checking the HasFile property.  As you can see i have updated the forms property enctype for uploading, this is done via a property.

    If anyone can get this to work, i would be really grateful.


    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click


    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    If Not Me.IsPostBack Then

    Me.Master.FormType = MasterPage.FormTypes.Upload

    End If

    End Sub
    Monday, June 19, 2006 7:25 AM

All replies

  • User1830150226 posted


    I had problem the same and same adding to trigger for PostBack of update panel it did not decide, the HasFile property continues equal False.



    Monday, August 20, 2007 12:31 PM