473,385 Members | 1,838 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,385 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 3187
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.