By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,016 Members | 1,024 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,016 IT Pros & Developers. It's quick & easy.

Non "mobile" controls on Mobile ASPX

P: n/a
Hi. I have Mobile site that I'm building. My problem is that all of my pages
are built as Mobile ASPX pages, but occasionally, I need to use controls
which are not mobile. Most specifically, the "FileUpload" control. Now, most
phones don't support this feature, but some do and for them I need to place
and use this control. How can I insert a FileUpload control on a Mobile ASPX?

Aug 17 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hi Alex,

Regarding on the non-mobile controls(ASP.NET standard controls), they
should be used in sepefic DeviceSpecifc template. So if your mobile
application's target client support HTML, you can define a certain
deviceSpecific/choice template for it.e.g.

the following "IsIE" template use those ASP.NET standard controls while
"IsNotIE" use mobile controls:
<html xmlns="" >
<mobile:Form id="Form1" runat="server">

<mobile:DeviceSpecific ID="dshtml" Runat="server">
<Choice Filter="IsIE"
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
<hr />
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Button" />
<hr />
<Choice Filter="IsNotIE">
<mobile:Label ID="Label1"
<mobile:TextBox ID="TextBox1" Runat="server">
<mobile:Command ID="Command1"
BTW, I have also posted some information about configure and use
deviceSpecific template in ASP.NET mobile page in your another thread below:

Subject: Non "mobile" controls on Mobile ASPX
Newsgroups: microsoft.public.dotnet.framework.aspnet

Please also feel free to have a look there.


Steven Cheng

Microsoft MSDN Online Support Lead


Get notification to my posts through email? Please refer to

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

This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.