Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading with Master Pages

Status
Not open for further replies.

TheCivic

Programmer
Feb 7, 2006
34
GB
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.

Cheers

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

Me.Response.Write(Me.FileUpload1.HasFile)

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top