473,418 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

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
1 2472
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: charliewest | last post by:
Using .Net CF, i have created a 2 dimension ArrayList, and "binded" this list to a ComboBox control using the "DataSource" property. I have set the DisplaySource and ValueMember properties as well....
1
by: Andy Crawford | last post by:
Even though I have set Strict Off, it is still on, thus causing this error. Here is the code in a templated Column of a DataGrid: (XPpro, Framework 1.1) <ItemTemplate> <TABLE width="100%">...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
2
by: mawi | last post by:
Hi there, When removing page children controls created dynamically not in last-to-first order, the close button of the last control looses its event wiring, even though the handler is rewired...
1
by: Chumley Walrus | last post by:
I'm trying to use : <META HTTP-EQUIV="Refresh" CONTENT="180; URL=main.aspx"> to refresh a mobile page (made in vs.net with the MMIT) for a page that I need to refresh every 3 minutes, but I...
5
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I'm developing a service which is two sites: a Mobile Site and a PC-Based Site. The whole goal is to have them operate very similarly but, of course, there will be many differences: 1....
3
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I see that the "FileUpload" web control is not compatible with the "MobilePage" model - and I guess I understand why. But many mobile phones *do* support <input type="file" />. Is there a control...
3
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I am confused about how I can insert literal text into a page from C# in the ASP.NET 2.0 Mobile Page model. There is no supported "Literal" control as there is in ASPX (standard), though I don't...
1
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I'm trying to figure out how you do the most basic Data-Bound "Repeater" functionality on a Mobile ASPX page. I don't mean a list box, because it will have repeated HTML and User Controls in...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.