471,596 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 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 3146
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
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)


this is a link to an MSDN article about the control

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>
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

Post your reply

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

Similar topics

4 posts views Thread by John Smith | last post: by
4 posts views Thread by CSDunn | last post: by
reply views Thread by =?Utf-8?B?Q2hhcmxlcw==?= | last post: by
4 posts views Thread by =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post: by
reply views Thread by Anwar ali | last post: by

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.