473,228 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,228 software developers and data experts.

How to render HTML code in Windows Mobile Code?

Hello friends.
I don't Know that How can I render html information in windows Mobile application.
When I try any Html tag it display the same like
<p>this is my first app</p>

Can nybody tell me how to render this information in WM.
is there any tool or any other way.

Please help me.
Thank you.............
Sep 10 '09 #1
5 3185
markmcgookin
648 Expert 512MB
You can manually create an html file (through code if you want) then add a browser object to your form, then pass the path of the html file you created to the browser object (standard Control in the toolbar) as it's URL property with the "file://" prefix
Sep 10 '09 #2
yes but I have HTML contents in a XML file. While I click on a menu the html content should be shown.
do you want to say that for this purpose T have to open a browser on click of that menu?
and if yes than How can do this with reading only html content not the XML. while both are in same file.

Thanx once again for replying me and helping me.
Sep 10 '09 #3
markmcgookin
648 Expert 512MB
Is the .xml file formatted in html? Then you could pass that to the browser object you are putting on your form.

Or is the html buried in the XML? ... in that case you would need to create a valid html document once you have extracted the appropriate data, then pass this as the URL to the Browser. The Browser control thing is probably the only way you are going to render html accurately without having to write your own code to parse it.

Here is an example of someone using a web browser control (although they are using it in tabs)

http://www.codeproject.com/KB/mobile...b_Browser.aspx

this is a link to an MSDN article about the control

http://msdn.microsoft.com/en-us/library/ms229657.aspx
Sep 10 '09 #4
I have a XML file. In it I have a CDATA section for HTML Information. I need that Information in a browser.
Can any body help me to find out it.
My XML an HTML are in this format

Expand|Select|Wrap|Line Numbers
  1. <paragraph>
  2.           <position>1</position>
  3.           <title>Title</title>
  4.           <text>
  5.             <![CDATA[<p style="text-align: center;"><span style="color: #800000;"><span style="font-size: xx-large;">Wings of Pride </span></span><br /><br /><span style="color: #800000;">Adnan K&euml;r&ccedil;agu </span><br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<span style="font-size: small;">Love is stronger than the fear&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;compassion is the true source of the tear <br />care for the one who is yours, for the one who is dear &nbsp;&nbsp; &nbsp;<br />there is nothing that&rsquo;s impossible to bear &nbsp;</span><br /><br /><span style="font-size: small;"><em><span style="color: #000080;">Special thanks for great support to my brother: Fatan K&euml;r&ccedil;agu</span></em></span></p>
  6. <p style="text-align: center;"><span style="font-size: small;"><em><span style="color: #000080;"><br /></span></em></span></p>]]>
  7.           </text>
  8.           <image_path></image_path>
  9.         </paragraph>
  10.  
  11.  
I want to retrive only the Html value in a browser how can I do it.

When I select The title node I need to retrive the HTML Information.
I have this information in a XmlNodelist by Xpath.
How can I do it?
Sep 12 '09 #5
Hi! All, I had solved the problem before myself but
I am facing a new problem.
Please help me as soon as possible.
I retrieved the HTML information siccessfully. but the problem is this Information is in HTML formate and not in a file.
Its is in a variable.
How can I pass a variable value in Windows Mobile browser as an URL.

Browser should read the variable and display the Information as web page.

IS it possible if Yes then how.
Plz help me.
Sep 12 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: lkrubner | last post by:
I'd like to write a PHP script to be used from the command line on a Unix machine. I'd like for the script to put together a string, turn it into a web page, print it, then return control the...
4
by: John Smith | last post by:
I have an XML data island in my aspx web page. The XML includes a link (processing instruction) to an XSL stylesheet. Is there any way on this page to view the HTML, that results from the xsl...
4
by: CSDunn | last post by:
Hello, I am trying to help a co-worker of mine with a C# problem. The following code will not render at all in the IE 5.5 browser we are using: ...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Hongbo | last post by:
Hi, I have a mobile form: === <body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm"> <mobile:Form id=Form1 runat="server"> <mobile:label runat="server" id="lblT" /> </mobile:Form>...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
0
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails...
4
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
I am creating an application for windows mobile using Visual C# windows. I am using visual studio 2008 and I have windows Microsoft Vista on my computer. I also downloaded the professional and...
2
by: kristin09 | last post by:
Hi guys, I have a windows mobile application that has html pages generated on the fly (some pages have links in them). With the new browser MSIE 6.0 the links on the pages are not read as links....
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.