Solved

Unable to apply stylesheets to the command button of ASP.NET mobile controls

Posted on 2006-06-27
1
985 Views
Last Modified: 2013-12-27
We are developing a WAP site using ASP.NET mobile controls.
We want to reduce the default size of button... for this we are trying to apply stylesheet to the command control.

The effect is visible on design mode but when the page gets rendered the stylesheet doesn't work. The size of the button remains same.

Please let us know proper method of applying style sheet on mobile command control. Or else is there any other way of reducing the size of the button.
0
Comment
Question by:lambenttek
1 Comment
 
LVL 2

Accepted Solution

by:
Mr_Lenehan earned 250 total points
ID: 17002475
Your problem for this question and last is that you are trying to make a fancy website using mobile controls. Mobile controls render as WML which isn't as flexible as HTML.  What you see in you design window is what it would look like if it rendered in HTML, which it won't on a mobile... unless the mobile accepts HTML... and even then, you can not be sure that the HTML parser built into the phone will give you the same result as you would on IE or Firefox - browser compatibility is not limited just to PC browsers.

What you should try is making two sites, one with your controls for low colour which will be rendered in WML or HTML depending on what content type your phone accepts, and one mini HTML site with everything scaled down.

Your phone browser is not a like a PC web browser so you will be limited in what you can achieve. If you expect to get a PC browser type site on a mobile device, you'll need a PDA that can run PC browsers.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Coaxial cable bending There are several factors that govern the selection of coaxial cable for your Machine to Machine (M2M) application: the location of cable runs, either indoor or outdoor, inside or outside an enclosure, maximum bending and the…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now