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 / August 2005

Tip: Looking for answers? Try searching our database.

DeviceSpecific Questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ily - 12 Aug 2005 10:10 GMT
Hi all

Why does the following not work? (Its placed within a form - I should
havent shown you that)

        <mobile:Label Runat=server>
            <DeviceSpecific Runat=server>
                <Choice Argument="isNokia7110">isNokia7110</Choice>
                <Choice Argument="isHTML32">isHTML32</Choice>
                <Choice>Is default</Choice>
            </DeviceSpecific>
        </mobile:Label>

I get nothing displayed in my browser when I view it. I am expecting
isHTML32 to be displayed, because I am expecting the isHTML32 to match
my browser (Microsoft Internet explorer 6) and to use the isHTML32 as
the text for the Label

How can I get this to work? Any ideas or suggestions? What am I doing
wrong?
Amit Puri - 29 Aug 2005 06:31 GMT
re-write your code as below:

<mobile:Label id="Label1" Runat="server">
<DeviceSpecific Runat="server" ID="Devicespecific1" >
<Choice Argument="isNokia7110" Text="isNokia7110"></Choice>
<Choice Argument="isHTML32" Text="isHTML32"></Choice>
<Choice Text="Is default"></Choice>
</DeviceSpecific>
</mobile:Label>
Signature

Amit Puri

> Hi all
>
[quoted text clipped - 16 lines]
> How can I get this to work? Any ideas or suggestions? What am I doing
> wrong?

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.