I am developing a web application for the Windows Mobiles which runs in PDA's & Also in Advanced Mobiles devices which supports html32. Now my problem is when i see the web application in the Device Emulator the buttons & textbox are displayed in there default
size, so how would i change the size (i.e. height, width) of the button & textbox which work on all mobiles & PDAs..
you can try by replacing <mobile:TextBox> with <asp:TextBox> and <mobile:Command> with <asp:Button> under a device specic filter and applying height width property inside the controls. i have an example.. what do you think...
hi_bhavin_ma...
Member
34 Points
21 Posts
How to design the <mobile:TextBox> <mobile:Command> controls
Aug 28, 2008 06:53 AM|LINK
I am developing a web application for the Windows Mobiles which runs in PDA's & Also in Advanced Mobiles devices which supports html32. Now my problem is when i see the web application in the Device Emulator the buttons & textbox are displayed in there default size, so how would i change the size (i.e. height, width) of the button & textbox which work on all mobiles & PDAs..
Waiting for your earliest reply...
.NET mobile
Bhavin Patel
Click on "Mark as Answer" if this post help you
irtizaur
Member
494 Points
67 Posts
Re: How to design the <mobile:TextBox> <mobile:Command> controls
Aug 28, 2008 08:53 AM|LINK
Hi bhavin,
you can try by replacing <mobile:TextBox> with <asp:TextBox> and <mobile:Command> with <asp:Button> under a device specic filter and applying height width property inside the controls. i have an example.. what do you think...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <mobile:Form id="Form1" runat="server"> <mobile:DeviceSpecific Runat="server"> <%-- For Mobile Devices only--%> <Choice Filter="IsMobile"> <HeaderTemplate> <asp:TextBox runat="server" Height="20px" Width="100%" BackColor="red" Text="Your Text"></asp:TextBox> <asp:Button runat="server" Width="100px" Height="12px" Text="Submit" /> </HeaderTemplate> </Choice> </mobile:DeviceSpecific> </mobile:Form> </body> </html>Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
hi_bhavin_ma...
Member
34 Points
21 Posts
Re: How to design the <mobile:TextBox> <mobile:Command> controls
Aug 28, 2008 11:28 AM|LINK
i want it to be done in <mobile:TextBox> and <mobile:command>...is it possible? if yes, then how
Bhavin Patel
Click on "Mark as Answer" if this post help you
irtizaur
Member
494 Points
67 Posts
Re: How to design the <mobile:TextBox> <mobile:Command> controls
Sep 01, 2008 01:52 PM|LINK
Hi bhavin,
mobile controls <mobile:TextBox>, <mobile:command> don't have style properties like height and width :( .
either you have to try basic xhtml-mp control with css or asp control inside devicespecific control. :)
hope it helps.
Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
elie_koury
Member
2 Points
1 Post
Re: How to design the <mobile:TextBox> <mobile:Command> controls
Aug 09, 2010 11:28 AM|LINK
i have a question: when i do so i am not able to access the controls in the file.aspx.vb
example: <mobile:Label Runat="server" ID="lblDate"></mobile:Label>
In the file.aspx.vb, lblDate doesnt exist and i need to edit it what's the problem?
and thanks for your help