[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

RE: Back and Font color, alignment of controls

Jay

1/2/2007 6:23:00 AM

As far as I know some of the Mobile phones & PDA's does not support colour
and font preperties

"JL" wrote:

> 1) I am using he below code for a button
>
> <mobile:Panel ID="srch" runat="server" BackColor="#000000"><mobile:Command
> ID="btnSrch" Format="Button" Text="SEARCH" Font-Bold="true"
>
> In the design view, the back color is black and the font color is blue. But
> when I run this in IE, it is showing the default colors. What could be the
> problem?
>
> 2) I have 2 controls in a row. I want the first control aligned to the left
> and the second control aligned to the right. if i give 'breakafter=false'
> after the 1st control and 'alignment=right' for 2nd control, even though the
> alignment is proper, the two controls are coming in two lines. Below is the
> code which I am using
>
> <mobile:Label Runat="server" id="l1" BreakAfter="false" text="Contact Id">
> <mobile:TextBox ID="txtID" runat="server" Alignment="right"/>
>
> For this, If I use
> <DeviceSpecific>
> <Choice Filter="isHTML32">
> and add nrmal asp tables under this, will this work for all devices?
>
> 3) Since MobilePage is inherited from Page, the property 'controls' is
> available. But when i run the below code, it is showing runtime error
>
> protected System.Web.UI.MobileControls.MobileControl
> GetPageControl(System.Web.UI.MobileControls.MobilePage page, string name)
> {System.Web.UI.MobileControls.MobileControl ctl = null;
> foreach (System.Web.UI.MobileControls.MobileControl control in page.Controls)
> {ctl = GetControl(name, control);}
> return ctl;}
>
> Error:
> Unable to cast object of type 'System.Web.UI.LiteralControl' to type
> 'System.Web.UI.MobileControls.MobileControl'
>
>
>
1 Answer

Thomas

3/19/2010 11:57:00 AM

0

No one can see it?

It is the same as "How many people did the USA kill on April 1, 2010".