Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / March 2005

Tip: Looking for answers? Try searching our database.

Mobile Web Forms and  CSS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eleni - 18 Mar 2005 12:25 GMT
Hi,

I am using Visual Studio.net 2003 to build a mobile web application. I
haven't install Device Updated 2.0.

Dows anyone know if I can use CSS in my mobile web forms?

E.G.
<mobile:Link id="Link2" cssclass="style1" runat="server" NavigateUrl="link">
   Example of a mobile link control
</mobile:Link>

I've tried the above example but it doesn't seem to work.

Also, can you use standard HTML elements like <a>, <p> etc. instead of
mobile controls and apply CSS (cssClass)?

Many thanks,
eleni
Chance Hopkins - 20 Mar 2005 08:11 GMT
You have to place a mobile style sheet on your page and the reference it
from the link object property "StyleReference".

See this page:

http://www.dotnetforce.com/Content.aspx?t=a&n=251

> Hi,
>
[quoted text clipped - 16 lines]
> Many thanks,
> eleni
eleni - 21 Mar 2005 12:01 GMT
Thanks for this but I was actually reffering to CSS styles not to the Mobile
Style control.

I've alredy used a mobile style but I am just wondering if you could add
further formating using CSS for devices that allow HTML rendering.

e.

> You have to place a mobile style sheet on your page and the reference it
> from the link object property "StyleReference".
[quoted text clipped - 23 lines]
>> Many thanks,
>> eleni
Chance Hopkins - 22 Mar 2005 00:11 GMT
You would need to use a device specific tag. Check out this:

http://samples.gotdotnet.com/MobileQuickStart/Default.aspx?url=doc/DeviceSpecifi
c.aspx


You want the section "Inserting Arbitrary Content"

Then look at the second example under "Viewsource".

> Thanks for this but I was actually reffering to CSS styles not to the
> Mobile Style control.
[quoted text clipped - 31 lines]
>>> Many thanks,
>>> eleni
eleni - 23 Mar 2005 17:27 GMT
Thanks!!

> You would need to use a device specific tag. Check out this:
>
[quoted text clipped - 39 lines]
>>>> Many thanks,
>>>> eleni

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.