Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-06-27
1
Medium Priority
?
995 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 750 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
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…

782 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