Last post Dec 15, 2010 05:28 AM by swapna.anu
Dec 14, 2010 11:05 AM|gocoding|LINK
Hi, I need to set CssClass and also individual Width for standard asp:Label, asp:TextBox, asp:DropDownList,..
I'm using VS2008 and 3.5 framework, and I'm developing .aspx pages for Windows Mobile, as far as I have seen, a Standard page should run ok, but there a lot of issues, please tell me about some directive or something to get the expected style of controls.
Something Like this, doesnt work, the text box always render as width as mobile ieplorer want!
Width="<%# TextBoxValueWidth%>" Enabled="false"
this works great when it runs in iexplorer or other navigator in my pc.
Thanks a lot in advance,
windows mobile 6 professional
Dec 14, 2010 10:17 PM|roopeshreddy|LINK
It is not recommended to set the width of the control in ASP.NET. For this u need to use CSS - Width property. Check the following link for doing this.
And for Mobile web development, check the following links
Hope it helps u...
Dec 15, 2010 05:16 AM|David_ Charles|LINK
It is better to control the width, height and further properties thru CSS. It can boost the application. Roopesh, Thanks for sharing the information.
Dec 15, 2010 05:28 AM|swapna.anu|LINK
Another option to set the standart width and height of controls is using Themes. You can specify the control properties in the skin file as below, so that it automatically applies to all the text boxes in your application by setting the theme in the web.config
page. Even I tried using this for the application that opens in PDA.
<asp:TextBox runat="server" Font-Names="Arial" Font-Size="13px" height="20px" width="125px" />
You can specify whatever properties you need for the control. Whenever you don't need the theme to be applied to your control then set the
Enable Theming to false.
Hope this helps.