Last post Feb 20, 2009 12:48 AM by stockstorm
Nov 21, 2007 09:49 AM|mm_mobile|LINK
I am New to asp.net Mobile.
I want to know how to align the asp.net mobile controls in the mobile forms in Design Time.I can drag the textbox,Button,labels Controls etc., but i cant align the Controls as i need.The Controls seems to be Locked,it cant moved in panels in forms.
Pls Help me.
Nov 21, 2007 03:07 PM|jimmy q|LINK
The mobile controls are quite limited when it comes to styling so they do not have support for things like alignment and cannot use HTML to set placements by using divs or tables. This is because alot of mobile devices do not support HTML and instead support
other modes like WML, cHTML, xHTML etc.
If you want to do specific HTML/CSS rendering like using tables divs alignment etc you can add a deviceSpecific filter to your panel. The filter will be selected for isHTML and they you can do standard HTML development within its content template.
Jan 21, 2008 09:08 PM|dj|LINK
I am trying to left align my mobile controls and also make some links bold. Is it safe to assume that this won't work becuase of the limitations specified above? It shows up on my ie browser but when I look through phone emulators I have no luck.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MobileDynamic.aspx.cs" Inherits="Mobile_MobileDynamic" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<mobile:Form id="frmMain" runat="server" Alignment="Left" Font-Name="notSet">
<mobile:Panel ID="Panel1" Runat="server" Alignment="Left">
<mobile:TextView runat="server" Font-Size="Large" id="txtTitle" Font-Bold="True" Alignment="Left"></mobile:TextView>
<mobile:TextView runat="server" id="txtContentTop" Alignment="Left"/>
<mobile:Link ID="mlTelNo" runat="server" Visible="false"></mobile:Link>
<mobile:Link ID="mlHelpNo" runat="server" Visible="false"></mobile:Link>
<mobile:TextView runat="server" id="txtContentBot" Alignment="Left"/>
<mobile:List runat="server" id="mlLinks" OnItemCommand="Menu_OnItemCommand" DataTextField="LinkName" DataValueField="LinkPath" Alignment="Left"/>
<mobile:List runat="server" id="mlLinksHeader" OnItemCommand="Menu_OnItemCommand" DataTextField="LinkName" DataValueField="LinkPath" Font-Bold="True" Alignment="Left" Font-Size="Large"/>
<mobile:TextView runat="server" id="lblNotice" Alignment="Left"/>
Jan 21, 2008 11:35 PM|mm_mobile|LINK
For HTML browsers [like PocketPC's,some models in Samsung,Motorola etc.,] mobile controls can be aligned by integrating the other control like GridView and DataGrid [Takes some more code but alignment is good].But when we are looking for WML devices,Alignment
is Poor,b'coz it will not support GridView or DataGrid.My Choice is use List,Selection List and Link in WML devices.Beyond the Feel and Look, User Interaction needs more care.
Here's some Snippet:
Alignment="Left">Problems with the application?</mobile:Label>
Hope it will give an Idea.
Jan 23, 2008 06:06 PM|DeanEwalt|LINK
Error message in Visual Studio 2008 RTM says
EDITING OF MOBILE CONTROLS IS NOT SUPPORTED IN THE DESIGNER
Am I wasting my time trying to create a Mobile Form Website for PDA's ??!
Jan 23, 2008 11:07 PM|mm_mobile|LINK
I cant get you !
Editing the mobile control in the sense, Making use of the control in the class file, Right.
like in Form1.aspx.cs [for c#] & Form1.aspx.vb [for vb]
if it so, Assign with an Control Object.
Oct 27, 2008 08:49 AM|at3_0506|LINK
Mobile controls have limited functionality.. I agree, it is hard to align controls in mobile applications compared to a normal asp.net website.
From my experience, I align my controls by setting the properties of the specific control..and in the ALIGNMENT property, you can choose to align your controls
left, center, or right.
Dec 06, 2008 01:39 AM|kinishodhan|LINK
I have one question. How can i align 2 command control horizontally.
2 buttons are there Next and previous. I want to place this two buttons in the same line. how can i achieve this issue.
Feb 20, 2009 12:48 AM|stockstorm|LINK
I see the above that you used asp controls in the mobile web form. I'm not sure how the datagrid control/grid view works. Can you explain to me?