467,910 Members | 1,644 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

Non "mobile" controls on Mobile ASPX

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?

Alex
Aug 17 '07 #1
  • viewed: 2206
Share:
1 Reply
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="http://www.w3.org/1999/xhtml" >
<body>
<mobile:Form id="Form1" runat="server">

<mobile:DeviceSpecific ID="dshtml" Runat="server">
<Choice Filter="IsIE"
Xmlns="http://schemas.microsoft.com/mobile/html32template">
<HeaderTemplate>
<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 />
</HeaderTemplate>
</Choice>
<Choice Filter="IsNotIE">
<HeaderTemplate>
<mobile:Label ID="Label1"
Runat="server">Label</mobile:Label>
<mobile:TextBox ID="TextBox1" Runat="server">
</mobile:TextBox>
<mobile:Command ID="Command1"
Runat="server">Command</mobile:Command>
</HeaderTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Form>
</body>
</html>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.

==================================================
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.

Similar topics

1 post views Thread by Andy Crawford | last post: by
1 post views Thread by Chumley Walrus | last post: by
5 posts views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by
3 posts views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by
3 posts views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by
1 post views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.