RE: FileUpload Control on Mobile Form



Hi Woodgnome,

Thanks for your reply.

Yes, a standard html based ASP.NET page will save much effort. Anyway, I'm
still doing some further research on this and will inform you if I get any
new information helpful.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.





--------------------
Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:2217
NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols

Steven,

Thanks for the reply. The initial target devices are HTML enabled - but
the
intention was to make the pages available to more devices at a later date.
I will investigate using a standard asp.net page for now.

Thanks.
Woodgnome.



"Steven Cheng[MSFT]" wrote:

Hi Woodgnome,

Regarding on the ASP.NET mobile page fileuploading issue, I've performed
some local tests and did found the same behavior as you mentioned. It
seems
the Mobile Form doesn't allow us to insert our custom attributes into
it
like a standard htmlForm control. I've also tried manually add the
"enctype="multipart/form-data" " attribute into the mobile form and it
was
also ignored and runtime. BTW, for mobile devices, I notice that few
WAP
or xhtml mp devices support file upload element,

http://www.developershome.com/wap/wapUpload/wap_upload.asp?page=intro

so are your web application's target devices HTML enabled? If so, maybe
you can consider use a standard ASP.NET page(not mobile page) to serve
the
fileupload functionality(since only a simple screen with some text and
file
upload html element are necessary), how do you think?

Anyway, I'll also help you consult some other mobile engineers to see
whether there is anything else we can do here, I'll inform you as soon
as I
get any update.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach
the
most efficient resolution. The offering is not appropriate for
situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are
best
handled working with a dedicated Microsoft Support Engineer by
contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no
rights.



--------------------


Hi,

I am trying to provide the user with a file upload facility on mobile
devices that will support it. So I have tried using the FileUpload
control
in
a device specific section - as follows, but when the form posts back,
the
HasFile proerty is always set to false and the file is nowhere to be
seen.

It would appear that it may be something to do with the fact that the
form
is
rendering without enctype="multipart/form-data" on the form tag. Anyone
any
ideas how I might get this to work ?

<mobile:Form ID="NewForm" runat="server" Title="New Form">

<mobile:DeviceSpecific ID="DeviceSpecific1" Runat="Server">
<Choice>
<FooterTemplate>
<tr>
<td>
<asp:FileUpload ID="fileUpload1"
runat="server"></asp:FileUpload>
</br>
<asp:FileUpload ID="fileUpload2"
runat="server"></asp:FileUpload>
</br>
<asp:FileUpload ID="fileUpload3"
runat="server"></asp:FileUpload>
</td>
</tr>
</FooterTemplate>
</Choice>
</mobile:DeviceSpecific>

......





.



Relevant Pages

  • RE: ObjectList Data-Binding to a List
    ... Yes, mobile control is ... as most smart devices not support html and asp.net standard ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: OT: HTML (WAS: MF having issues?)
    ... Even though he is only serving up static HTML pages and has no idea how they work or the fine points of the language, he has a very professional looking site that he built in about an hour. ... Oliver, I can't address HTML but as a golden rule, regardless of which language/tool you use there MUST BE a STANDARD - otherwise you finish up with those inconsistencies you cited. ... The eventual standard used the syntax 'Repository' instead of 'Class-Control', which Fujitsu had from Day One. ... John Piggott - I met him only once at Newbury, for a J4 meeting in 2000, sat next to our Robert Jones who used to trundle up from Gloucester, not as a member, but as a developer contributing ideas. ...
    (comp.lang.cobol)
  • Re: Your mindset about Forth?
    ... Can Chuck Moore build a full GUI in 4K of ... Similarly with HTML. ... official standard, your HTML server has to provide something that the ... free Forths did not provide TCP/IP. ...
    (comp.lang.forth)
  • Re: COBOL FAQ *moved*
    ... HTML and related technologies are standardized by the ... If you care about standard compliance, ... I find that usually Firefox is implementing the ... These semantics also happens to be the semantics that W3C describes ...
    (comp.lang.cobol)
  • Re: [OT?] C++ Standard - 14882:2003
    ... > I was also told by another committee member sometime ago (his name ... There is indeed a HTML version used by committee members. ... it is not fit as a standard document: ... ISO is not responsible for releasing documents to the public. ...
    (comp.lang.cpp)