<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Keith Rull</title>
    <link>http://www.keithrull.com/</link>
    <description>Blog of a Filipino Developer about C#, VB.NET, ASP.NET, Java, PHP, SQL Server, MySql and Oracle</description>
    <language>en-us</language>
    <copyright>Keith Rull</copyright>
    <lastBuildDate>Thu, 26 Jun 2008 18:02:41 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>keith.rull@gmail.com</managingEditor>
    <webMaster>keith.rull@gmail.com</webMaster>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/KeithRull" type="application/rss+xml" /><item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=3de9ec5c-9331-4185-a371-40fdde150738</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,3de9ec5c-9331-4185-a371-40fdde150738.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,3de9ec5c-9331-4185-a371-40fdde150738.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=3de9ec5c-9331-4185-a371-40fdde150738</wfw:commentRss>
      
      <title>Ten Questions with Melvin Dave Vivas</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,3de9ec5c-9331-4185-a371-40fdde150738.aspx</guid>
      <link>http://www.keithrull.com/2008/06/26/TenQuestionsWithMelvinDaveVivas.aspx</link>
      <pubDate>Thu, 26 Jun 2008 18:02:41 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
In part 3 of our series "&lt;em&gt;Ten Questions - Filipino Developer Edition&lt;/em&gt;", &#xD;
I was able to talk to &lt;strong&gt;&lt;a href="http://devpinoy.org/blogs/javazealot/"&gt;Melvin&#xD;
Dave Vivas&lt;/a&gt;&lt;/strong&gt;, founder of &lt;strong&gt;&lt;a href="http://tech.groups.yahoo.com/group/pinoyjug/"&gt;PinoyJUG&lt;/a&gt;&lt;/strong&gt;,&#xD;
developer, technopreneur and part-time fashion photojounalist(Heheh! I bet&#xD;
he wants me to include this on his intro :P). &#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Read more about this interview &lt;strong&gt;&lt;a href="http://devpinoy.org/blogs/keithrull/archive/2008/06/26/ten-questions-with-melvin-dave-vivas.aspx"&gt;here&lt;/a&gt;&lt;/strong&gt;.&#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=3de9ec5c-9331-4185-a371-40fdde150738"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=s9ZqJw"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=s9ZqJw" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,3de9ec5c-9331-4185-a371-40fdde150738.aspx</comments>
      <category>Fun Stuff</category>
      <category>Interviews</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=751b9b64-d299-47bd-b0a0-392d96ace62f</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,751b9b64-d299-47bd-b0a0-392d96ace62f.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,751b9b64-d299-47bd-b0a0-392d96ace62f.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=751b9b64-d299-47bd-b0a0-392d96ace62f</wfw:commentRss>
      <slash:comments>2</slash:comments>
      
      <title>A friend of mine needs your help..</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,751b9b64-d299-47bd-b0a0-392d96ace62f.aspx</guid>
      <link>http://www.keithrull.com/2008/06/24/AFriendOfMineNeedsYourHelp.aspx</link>
      <pubDate>Tue, 24 Jun 2008 23:24:19 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
My friend &lt;strong&gt;&lt;a href="http://dbalink.wordpress.com/"&gt;Marlon Ribunal&lt;/a&gt;&lt;/strong&gt; who&#xD;
is a developer and &lt;strong&gt;&lt;a href="http://dbalink.wordpress.com/"&gt;an avid SQL Server&#xD;
blogger&lt;/a&gt;&lt;/strong&gt; needs your help... Her mother who is in the Philippines got diagnose&#xD;
with Leukemia yesterday and he needs financial help to get her mother decent medical&#xD;
treatment. Below is his message posted &lt;strong&gt;&lt;a href="http://dbalink.wordpress.com/2008/06/24/i-need-help-to-save-my-dying-mother/"&gt;on&#xD;
his blog&lt;/a&gt;&lt;/strong&gt;:&#xD;
&lt;/p&gt;&#xD;
        &lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;God Bless You!&lt;br&gt;&#xD;
 &lt;br&gt;&#xD;
I am in need of financial help for my mother who has been diagnosed with Leukemia.&#xD;
She is in the Philippines right now. She is only 55 years old. &#xD;
&lt;br&gt;&#xD;
 &lt;br&gt;&#xD;
I am sending this email to people who, in one way or another, might be willing to&#xD;
help. Our primary need is Financial, but a sincere Prayer for the recovery of my mother&#xD;
is likewise important.&lt;br&gt;&#xD;
 &lt;br&gt;&#xD;
If you know groups of people or organizations who are doing Charitable works toward&#xD;
families in need of financial help, please send me information on how to contact them.&lt;br&gt;&#xD;
 &lt;br&gt;&#xD;
Few years ago (2002), I came here in America through my wife's petition. But all through&#xD;
out these years we've been struggling financially. My wife got laid off from her work&#xD;
because their company can no longer support their business and decided to close down. &#xD;
Our family's financial resources are not enough to put our mother under decent medication.&lt;br&gt;&#xD;
 &lt;br&gt;&#xD;
If you know anyone who can help us financially, please contact me immediately. My&#xD;
information is below.&lt;br&gt;&#xD;
 &lt;br&gt;&#xD;
 &lt;br&gt;&#xD;
Sincerely,&lt;br&gt;&#xD;
Marlon Ribunal&lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;&#xD;
            &lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;US Info:&lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;Marlon Ribunal&lt;br&gt;&lt;span class="yshortcuts" id="lw_1214348017_0" style="CURSOR: hand; BORDER-BOTTOM: #0066cc 1px dashed"&gt;(562)&#xD;
989-5406&lt;/span&gt; [ Home ]&lt;br&gt;&lt;span class="yshortcuts" id="lw_1214348017_1" style="CURSOR: hand; BORDER-BOTTOM: #0066cc 1px dashed"&gt;(562)&#xD;
786-2889&lt;/span&gt; [Celphone ] &lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;a href="mribunal @ verizon.net" temp_href="mribunal @ verizon.net"&gt;&#xD;
              &lt;em&gt;mribunal&#xD;
@ verizon.net&lt;/em&gt;&#xD;
            &lt;/a&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;&#xD;
            &lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;Philippines Info:&lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;Mario Ribunal, Jr.&lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
          &lt;div&gt;&#xD;
            &lt;em&gt;09215102848&lt;/em&gt;&#xD;
          &lt;/div&gt;&#xD;
        &lt;/blockquote&gt;&#xD;
        &lt;p&gt;&#xD;
Please help Marlon. Thanks and God Bless!&#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=751b9b64-d299-47bd-b0a0-392d96ace62f"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=8MjGDA"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=8MjGDA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,751b9b64-d299-47bd-b0a0-392d96ace62f.aspx</comments>
      <category>Life</category>
      <category>My Faith</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=6b5b0952-579b-4309-b092-eeafeb372923</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,6b5b0952-579b-4309-b092-eeafeb372923.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,6b5b0952-579b-4309-b092-eeafeb372923.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=6b5b0952-579b-4309-b092-eeafeb372923</wfw:commentRss>
      <slash:comments>1</slash:comments>
      
      <title>Ubuntu is not a Game ;)</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,6b5b0952-579b-4309-b092-eeafeb372923.aspx</guid>
      <link>http://www.keithrull.com/2008/06/24/UbuntuIsNotAGame.aspx</link>
      <pubDate>Tue, 24 Jun 2008 21:50:44 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
A friend of mine sent this link to me today and it made me really laugh really&#xD;
hard... Man, talk about someone posting a review on something that they don't&#xD;
really understand.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/FunnyUbuntu704Review.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Actual review link can be found here: &lt;a href="http://www.amazon.com/review/product/B000PSWZSC/ref=cm_cr_pr_link_2?%5Fencoding=UTF8&amp;amp;pageNumber=2&amp;amp;sortBy=bySubmissionDateDescending"&gt;http://www.amazon.com/review/product/B000PSWZSC/ref=cm_cr_pr_link_2?%5Fencoding=UTF8&amp;amp;pageNumber=2&amp;amp;sortBy=bySubmissionDateDescending&lt;/a&gt;&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Comments about his post can be found here: &lt;a href="http://www.amazon.com/review/R1PPJ35WY17216/ref=cm_cr_pr_cmt?%5Fencoding=UTF8&amp;amp;ASIN=B000PSWZSC&amp;amp;nodeID=#wasThisHelpful"&gt;http://www.amazon.com/review/R1PPJ35WY17216/ref=cm_cr_pr_cmt?%5Fencoding=UTF8&amp;amp;ASIN=B000PSWZSC&amp;amp;nodeID=#wasThisHelpful&lt;/a&gt;&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Hehehe!&#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=6b5b0952-579b-4309-b092-eeafeb372923"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=irkkPc"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=irkkPc" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,6b5b0952-579b-4309-b092-eeafeb372923.aspx</comments>
      <category>Fun Stuff</category>
      <category>Weird Wide Web</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=f6f66d9a-70eb-4bc1-a842-e72a125c7b26</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,f6f66d9a-70eb-4bc1-a842-e72a125c7b26.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,f6f66d9a-70eb-4bc1-a842-e72a125c7b26.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=f6f66d9a-70eb-4bc1-a842-e72a125c7b26</wfw:commentRss>
      
      <title>Ten Questions with Jojo Paderes</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,f6f66d9a-70eb-4bc1-a842-e72a125c7b26.aspx</guid>
      <link>http://www.keithrull.com/2008/06/24/TenQuestionsWithJojoPaderes.aspx</link>
      <pubDate>Tue, 24 Jun 2008 18:32:21 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
This week we continue our quest to get to know well-known Filipino developers&#xD;
and this time I was able to catch &lt;a href="http://jojopaderes.blogspot.com/"&gt;&lt;strong&gt;Jojo&#xD;
Paderes&lt;/strong&gt;&lt;/a&gt;, one of the founding board members of PinoyJUG, coder-extraordinaire&#xD;
at &lt;strong&gt;&lt;a href="http://www.viewlocity.com/"&gt;Viewlocity&lt;/a&gt;&lt;/strong&gt; and father&#xD;
to two lovely twins. &#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Read more about this interview here &lt;a href="http://devpinoy.org/blogs/keithrull/archive/2008/06/24/ten-questions-with-jojo-paderes.aspx"&gt;http://devpinoy.org/blogs/keithrull/archive/2008/06/24/ten-questions-with-jojo-paderes.aspx&lt;/a&gt;&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=f6f66d9a-70eb-4bc1-a842-e72a125c7b26"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=OmqtiG"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=OmqtiG" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,f6f66d9a-70eb-4bc1-a842-e72a125c7b26.aspx</comments>
      <category>.NET</category>
      <category>Fun Stuff</category>
      <category>Interviews</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=51cc560a-a999-4120-a82a-aa1ba74e8504</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,51cc560a-a999-4120-a82a-aa1ba74e8504.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,51cc560a-a999-4120-a82a-aa1ba74e8504.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=51cc560a-a999-4120-a82a-aa1ba74e8504</wfw:commentRss>
      
      <title>Ten Questions with Migz Paraz</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,51cc560a-a999-4120-a82a-aa1ba74e8504.aspx</guid>
      <link>http://www.keithrull.com/2008/06/20/TenQuestionsWithMigzParaz.aspx</link>
      <pubDate>Fri, 20 Jun 2008 22:22:03 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
          &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;Because of the &lt;strong&gt;&lt;a href="http://geekswithblogs.net/cwilliams/archive/2008/06/09/122745.aspx"&gt;inspiration&lt;/a&gt;&lt;/strong&gt; from&#xD;
what &lt;a href="http://geekswithblogs.net/cwilliams/Default.aspx"&gt;&lt;strong&gt;Chris Williams&lt;/strong&gt;&lt;/a&gt; started&#xD;
I have decided to start &lt;strong&gt;&lt;em&gt;Ten Questions - Filipino Developers Edition&lt;/em&gt;&lt;/strong&gt;.&#xD;
Basically, the idea is to interview well-known Filipino developers and ask them 10&#xD;
questions that would shed light on their persona and their geekiness! &lt;/span&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;On this first&#xD;
go around we interview &lt;strong&gt;&lt;a href="http://mparaz.wordpress.com/"&gt;Migz Paraz&lt;/a&gt;&lt;/strong&gt;,&#xD;
a fixture in the Philippine IT industry since the 90s. He is well-known for his involvement&#xD;
with the Filipino Java community and for his thoughts posted on his blog at &lt;strong&gt;&lt;a href="http://mparaz.wordpress.com/"&gt;paraz.com&lt;/a&gt; &lt;/strong&gt;among&#xD;
others. &lt;/span&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;Read more about&#xD;
this interview here. &lt;/span&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;&#xD;
            &lt;a href="http://devpinoy.org/blogs/keithrull/archive/2008/06/20/ten-questions-with-migz-paraz.aspx"&gt;http://devpinoy.org/blogs/keithrull/archive/2008/06/20/ten-questions-with-migz-paraz.aspx&lt;/a&gt;&#xD;
          &lt;/span&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=51cc560a-a999-4120-a82a-aa1ba74e8504"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=CVIbVX"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=CVIbVX" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,51cc560a-a999-4120-a82a-aa1ba74e8504.aspx</comments>
      <category>DevConversations</category>
      <category>Fun Stuff</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=f6fe8418-f273-4f35-860a-0a9ce0739393</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,f6fe8418-f273-4f35-860a-0a9ce0739393.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,f6fe8418-f273-4f35-860a-0a9ce0739393.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=f6fe8418-f273-4f35-860a-0a9ce0739393</wfw:commentRss>
      
      <title>Just Released: .NET StockTrader Sample Application</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,f6fe8418-f273-4f35-860a-0a9ce0739393.aspx</guid>
      <link>http://www.keithrull.com/2008/06/19/JustReleasedNETStockTraderSampleApplication.aspx</link>
      <pubDate>Thu, 19 Jun 2008 22:08:05 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
Just in case you are studying WCF.. You might want to check out the .NET StockTrader&#xD;
Sample Application.&#xD;
&lt;/p&gt;&#xD;
        &lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&#xD;
          &lt;p&gt;&#xD;
            &lt;em&gt;The .NET StockTrader Sample Application is an end-to-end sample application illustrating&#xD;
Windows Communication Foundation and .NET Enterprise Technologies. &lt;/em&gt;It is&#xD;
a service-oriented application based on Windows Communication Foundation (.NET 3.0)&#xD;
and ASP.NET, and illustrates many of the .NET enterprise development technologies&#xD;
for building highly scalable, rich "enterprise-connected" applications. It is designed&#xD;
as a benchmark kit to illustrate alternative technologies within .NET and their relative&#xD;
performance.&#xD;
&lt;/p&gt;&#xD;
          &lt;p&gt;&#xD;
The application offers full interoperability with J2EE and &lt;a id="ctl00_mainContentContainer_ctl01" onclick="javascript:Track('ctl00_mainContentContainer_ctl00|ctl00_mainContentContainer_ctl01',this);" href="http://go.microsoft.com/?linkid=6895278"&gt;&lt;font color="#0033cc"&gt;IBM&#xD;
WebSphere's Trade 6.1&lt;/font&gt;&lt;/a&gt; sample application. As such, the application offers&#xD;
an excellent opportunity for developers to learn about .NET and building interoperable,&#xD;
service-oriented applications.&#xD;
&lt;/p&gt;&#xD;
        &lt;/blockquote&gt;&#xD;
        &lt;p&gt;&#xD;
Read more here: &lt;a href="http://msdn.microsoft.com/en-us/netframework/bb499684.aspx"&gt;http://msdn.microsoft.com/en-us/netframework/bb499684.aspx&lt;/a&gt;&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
I've been diving into WCF lately and I have found this sample application as a great&#xD;
blueprint on how to develop applications using WCF &amp;amp; ASP.NET. The sample includes&#xD;
a smart client and an ASP.NET application that you can jump on and play that showcases&#xD;
as huge list of technologies and approaches when developing an SOA app via WCF and&#xD;
.NET&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Below is a list of technologies that's demonstrated in this sample application:&#xD;
&lt;/p&gt;&#xD;
        &lt;ul&gt;&#xD;
          &lt;li&gt;&#xD;
            &lt;strong&gt;Service-oriented, n-tier design with ASP.NET and WCF&lt;/strong&gt;&#xD;
            &lt;ul&gt;&#xD;
              &lt;li&gt;&#xD;
Clean separation of UI, business services and DB access &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Design and tuning for performance &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Horizontally scalable via dynamic clustering &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Centralized configuration management of clustered service nodes &#xD;
&lt;/li&gt;&#xD;
            &lt;/ul&gt;&#xD;
          &lt;/li&gt;&#xD;
          &lt;li&gt;&#xD;
            &lt;strong&gt;.NET 3.5 with Windows Communication Foundation&lt;/strong&gt;&#xD;
            &lt;ul&gt;&#xD;
              &lt;li&gt;&#xD;
Interoperability with J2EE/WebSphere Trade 6.1 &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Incorporates alternative designs for performance comparisons &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Loosely-coupled, message-oriented design with WCF and MSMQ &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Achieving assured message delivery with transactions &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Self-hosting WCF Services &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Custom WCF Behaviors &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Service host failure detection and automatic restarts &#xD;
&lt;/li&gt;&#xD;
            &lt;/ul&gt;&#xD;
          &lt;/li&gt;&#xD;
          &lt;li&gt;&#xD;
            &lt;strong&gt;.NET Enterprise Application Server Technologies&lt;/strong&gt;&#xD;
            &lt;ul&gt;&#xD;
              &lt;li&gt;&#xD;
ASP.NET 2.0 &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
ADO.NET 2.0 &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
.NET Transactions &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
MSMQ 3.5 (Windows XP/Windows Server 2003) &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
MSMQ 4.0 (Windows Vista/"Longhorn Server CTP") &#xD;
&lt;/li&gt;&#xD;
              &lt;li&gt;&#xD;
Transaction batching with WCF and MSMQ&lt;/li&gt;&#xD;
            &lt;/ul&gt;&#xD;
          &lt;/li&gt;&#xD;
        &lt;/ul&gt;&#xD;
        &lt;p&gt;&#xD;
Try and see for yourself ;) I bet you will enjoy it too!&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
 &#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=f6fe8418-f273-4f35-860a-0a9ce0739393"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=0zohDq"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=0zohDq" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,f6fe8418-f273-4f35-860a-0a9ce0739393.aspx</comments>
      <category>.NET</category>
      <category>ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=0ca331c7-a936-43b0-9a6d-661b6a653a4e</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,0ca331c7-a936-43b0-9a6d-661b6a653a4e.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,0ca331c7-a936-43b0-9a6d-661b6a653a4e.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=0ca331c7-a936-43b0-9a6d-661b6a653a4e</wfw:commentRss>
      
      <title>LINQBridge: Use LINQ querries in .NET 2.0 and 3.0 applications</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,0ca331c7-a936-43b0-9a6d-661b6a653a4e.aspx</guid>
      <link>http://www.keithrull.com/2008/06/11/LINQBridgeUseLINQQuerriesInNET20And30Applications.aspx</link>
      <pubDate>Wed, 11 Jun 2008 00:45:05 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
Do you want to use LINQ but you are still stuck with .NET 2.0 and .NET 3.0? Are you&#xD;
still waiting for your company to upgrade to VS 2008 to get a hold of LINQ? Then wait&#xD;
no more because the good guys who wrote the book &lt;strong&gt;&lt;a href="http://www.albahari.com/nutshell/"&gt;C#&#xD;
3.0 In A Nutshell&lt;/a&gt;&lt;/strong&gt; have created a .NET library that implements all the&#xD;
standard LINQ operators so that you can enjoy the goodness of LINQ in .NET 2.0 and&#xD;
3.0.&#xD;
&lt;/p&gt;&#xD;
        &lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&#xD;
          &lt;p&gt;&#xD;
            &lt;b&gt;&#xD;
              &lt;a href="http://www.albahari.com/nutshell/linqbridge.html"&gt;LINQBridge&lt;/a&gt; is a&#xD;
reimplementation of all the standard query operators in Framework 3.5's Enumerable&#xD;
class.&lt;/b&gt; It's designed to work with the &lt;b&gt;C# 3.0&lt;/b&gt; compiler, as used by Visual&#xD;
Studio 2008. LINQBridge comprises a "LINQ to Objects" API for running local queries.&#xD;
(It doesn't include an implementation of LINQ to SQL, nor LINQ to XML; a good compromise&#xD;
can be to force Framework 3.5 out to just the server machines, allowing LINQ to SQL&#xD;
to be used where it's needed most).&#xD;
&lt;/p&gt;&#xD;
          &lt;p&gt;&#xD;
LINQBridge also includes Framework 3.5's generic &lt;b&gt;Func&lt;/b&gt; and &lt;b&gt;Action&lt;/b&gt; delegates,&#xD;
as well as &lt;b&gt;ExtensionAttribute&lt;/b&gt;, allowing you to use C# 3.0's extension methods&#xD;
in Framework 2.0.&#xD;
&lt;/p&gt;&#xD;
          &lt;p&gt;&#xD;
In fact LINQBridge lets you use nearly all of the features in C# 3.0 with Framework&#xD;
2.0—including extension methods, lambda functions and query comprehensions. The only&#xD;
feature it does not support is compiling lambdas to expression trees (i.e., Expression&amp;lt;TDelegate&amp;gt;). &#xD;
&lt;/p&gt;&#xD;
        &lt;/blockquote&gt;&#xD;
        &lt;p&gt;&#xD;
Awesome huh?! Get this goodie here: &lt;a href="http://www.albahari.com/nutshell/linqbridge.html"&gt;&lt;strong&gt;http://www.albahari.com/nutshell/linqbridge.html&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=0ca331c7-a936-43b0-9a6d-661b6a653a4e"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=U8FxNf"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=U8FxNf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,0ca331c7-a936-43b0-9a6d-661b6a653a4e.aspx</comments>
      <category>.NET</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=872ed7e9-e183-4bb5-9049-30b4f2de9c12</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,872ed7e9-e183-4bb5-9049-30b4f2de9c12.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,872ed7e9-e183-4bb5-9049-30b4f2de9c12.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=872ed7e9-e183-4bb5-9049-30b4f2de9c12</wfw:commentRss>
      
      <title>A Leader Should Know How To Manage Failure</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,872ed7e9-e183-4bb5-9049-30b4f2de9c12.aspx</guid>
      <link>http://www.keithrull.com/2008/06/11/ALeaderShouldKnowHowToManageFailure.aspx</link>
      <pubDate>Wed, 11 Jun 2008 00:34:36 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
I &lt;strong&gt;&lt;a href="http://geekswithblogs.net/mahesh/archive/2008/06/09/a-leader-should-know-how-to-manage-failure.aspx"&gt;saw&#xD;
this post&lt;/a&gt;&lt;/strong&gt; from &lt;strong&gt;&lt;a href="http://geekswithblogs.net/mahesh/"&gt;Mahesh&lt;/a&gt;&lt;/strong&gt; today&#xD;
and it taught me something that I know I'll put in good use in years to come...&#xD;
&lt;/p&gt;&#xD;
        &lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&#xD;
          &lt;p&gt;&#xD;
            &lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&#xD;
              &lt;em&gt;Former President&#xD;
of India &lt;/em&gt;&#xD;
              &lt;a href="javascript:void(window.open('http://en.wikipedia.org/wiki/Abdul_Kalam','','resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no'))"&gt;&#xD;
                &lt;em&gt;APJ&#xD;
Abdul Kalam&lt;/em&gt;&#xD;
              &lt;/a&gt;&#xD;
              &lt;em&gt; at &lt;/em&gt;&#xD;
              &lt;a href="http://en.wikipedia.org/wiki/Wharton_India_Economic_Forum" target="_blank"&gt;&#xD;
                &lt;em&gt;Wharton&#xD;
India Economic forum&lt;/em&gt;&#xD;
              &lt;/a&gt;&#xD;
              &lt;em&gt; , Philadelphia, United States March 22,2008)&lt;br&gt;&lt;br&gt;&#xD;
Question: Could you give an example, from your own experience, of how leaders should&#xD;
manage failure?&lt;br&gt;&lt;br&gt;&#xD;
Kalam:   Let me tell you about my experience. In 1973 I became the project director&#xD;
of India's satellite launch vehicle program, commonly called the SLV-3. Our goal was&#xD;
to put India's "Rohini" satellite into orbit by 1980. I was given funds and human&#xD;
resources -- but was told clearly that by 1980 we had to launch the satellite into&#xD;
space. Thousands of people worked together in scientific and technical teams towards&#xD;
that goal.&lt;br&gt;&lt;br&gt;&#xD;
By 1979 -- I think the month was August -- we thought we were ready. As the project&#xD;
director, I went to the control center for the launch. At four minutes before the&#xD;
satellite launch, the computer began to go through the checklist of items that needed&#xD;
to be checked. One minute later, the computer program put the launch on hold; the&#xD;
display showed that some control components were not in order. My experts -- I had&#xD;
four or five of them with me -- told me not to worry; they had done their calculations&#xD;
and there was enough reserve fuel. So I bypassed the computer, switched to manual&#xD;
mode, and launched the rocket. In the first stage, everything worked fine. In the&#xD;
second stage, a problem developed. Instead of the satellite going into orbit, the&#xD;
whole rocket system plunged into the Bay of Bengal. It was a big failure.&lt;br&gt;&lt;br&gt;&#xD;
That day, the chairman of the &lt;/em&gt;&#xD;
              &lt;a href="http://en.wikipedia.org/wiki/Indian_Space_Research_Organisation" target="_blank"&gt;&#xD;
                &lt;em&gt;Indian&#xD;
Space Research Organization&lt;/em&gt;&#xD;
              &lt;/a&gt;&#xD;
              &lt;em&gt;, &lt;/em&gt;&#xD;
              &lt;a href="http://en.wikipedia.org/wiki/Satish_Dhawan" target="_blank"&gt;&#xD;
                &lt;em&gt;Prof.&#xD;
Satish Dhawan&lt;/em&gt;&#xD;
              &lt;/a&gt;&#xD;
              &lt;em&gt;, had called a press conference. The launch was at 7:00&#xD;
am, and the press conference -- where journalists from around the world were present&#xD;
-- was at 7:45 am at &lt;/em&gt;&#xD;
              &lt;a href="http://en.wikipedia.org/wiki/Indian_Space_Research_Organisation" target="_blank"&gt;&#xD;
                &lt;em&gt;ISRO&lt;/em&gt;&#xD;
              &lt;/a&gt;&#xD;
              &lt;em&gt;'s&#xD;
satellite launch range in &lt;/em&gt;&#xD;
              &lt;a href="http://en.wikipedia.org/wiki/Sriharikota" target="_blank"&gt;&#xD;
                &lt;em&gt;Sriharikota &lt;/em&gt;&#xD;
              &lt;/a&gt;&#xD;
              &lt;em&gt;[in &lt;/em&gt;&#xD;
              &lt;a href="http://en.wikipedia.org/wiki/Andhra_Pradesh" target="_blank"&gt;&#xD;
                &lt;em&gt;Andhra&#xD;
Pradesh&lt;/em&gt;&#xD;
              &lt;/a&gt;&#xD;
              &lt;em&gt; in southern India]. Prof. Dhawan, the leader of the organization,&#xD;
conducted the press conference himself. He took responsibility for the failure --&#xD;
he said that the team had worked very hard, but that it needed more technological&#xD;
support. He assured the media that in another year, the team would definitely succeed.&#xD;
Now, I was the project director, and it was my failure, but instead, he took responsibility&#xD;
for the failure as chairman of the organization.&lt;br&gt;&lt;br&gt;&#xD;
The next year, in July 1980, we tried again to launch the satellite -- and this time&#xD;
we succeeded. The whole nation was jubilant. Again, there was a press conference.&#xD;
Prof. Dhawan called me aside and told me, "You conduct the press conference today."&lt;br&gt;&lt;br&gt;&#xD;
I learned a very important lesson that day. When failure occurred, the leader of the&#xD;
organization owned that failure. When success came, he gave it to his team. The best&#xD;
management lesson I have learned did not come to me from reading a book; it came from&#xD;
that experience&lt;/em&gt;&#xD;
            &lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&#xD;
              &lt;em&gt;….&lt;/em&gt;&#xD;
            &lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 10pt"&gt;&#xD;
              &lt;br&gt;&#xD;
            &lt;/span&gt;&#xD;
          &lt;/p&gt;&#xD;
        &lt;/blockquote&gt;&#xD;
        &lt;p&gt;&#xD;
Thanks &lt;strong&gt;&lt;a href="http://geekswithblogs.net/mahesh/"&gt;Mahesh&lt;/a&gt;&lt;/strong&gt; for&#xD;
sharing such a wonderful inspiration to us...&#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=872ed7e9-e183-4bb5-9049-30b4f2de9c12"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=bMzW7x"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=bMzW7x" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,872ed7e9-e183-4bb5-9049-30b4f2de9c12.aspx</comments>
      <category>All about Keith</category>
      <category>Life</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=578a1b5a-65fc-428b-870d-e88695254b7f</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,578a1b5a-65fc-428b-870d-e88695254b7f.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,578a1b5a-65fc-428b-870d-e88695254b7f.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=578a1b5a-65fc-428b-870d-e88695254b7f</wfw:commentRss>
      
      <title>Are you ready for a StackOverflow?</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,578a1b5a-65fc-428b-870d-e88695254b7f.aspx</guid>
      <link>http://www.keithrull.com/2008/04/17/AreYouReadyForAStackOverflow.aspx</link>
      <pubDate>Thu, 17 Apr 2008 22:09:41 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
I know &lt;strong&gt;&lt;a href="http://www.joelonsoftware.com/items/2008/04/16.html"&gt;Joel&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;a href="http://www.codinghorror.com/blog/archives/001101.html"&gt;Jeff&lt;/a&gt;&lt;/strong&gt; are&#xD;
ready. I am ready! Are you?&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/stackoverflow.jpg" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;a href="http://www.stackoverflow.com/"&gt;http://www.stackoverflow.com/&lt;/a&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=578a1b5a-65fc-428b-870d-e88695254b7f"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=zM4wSu"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=zM4wSu" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,578a1b5a-65fc-428b-870d-e88695254b7f.aspx</comments>
      <category>Tech News and Issues</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=e393cdf9-c41e-49cc-98ef-cd4885925b87</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,e393cdf9-c41e-49cc-98ef-cd4885925b87.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,e393cdf9-c41e-49cc-98ef-cd4885925b87.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=e393cdf9-c41e-49cc-98ef-cd4885925b87</wfw:commentRss>
      
      <title>HowTo: Convert an Xml string to DataSet</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,e393cdf9-c41e-49cc-98ef-cd4885925b87.aspx</guid>
      <link>http://www.keithrull.com/2008/04/17/HowToConvertAnXmlStringToDataSet.aspx</link>
      <pubDate>Thu, 17 Apr 2008 17:27:06 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
In my &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/04/08/HowToConsumeWebServicesInASPNET.aspx"&gt;previous&#xD;
article&lt;/a&gt;&lt;/strong&gt; I showed you how to add a web service reference in your ASP.NET&#xD;
application, call a webmethod and the display the values returned byt the web service&#xD;
to a Label. This time I'm going to show you how to transform that Xml string into&#xD;
a DataSet.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
I suggest that you read the &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/04/08/HowToConsumeWebServicesInASPNET.aspx"&gt;previous&#xD;
article&lt;/a&gt;&lt;/strong&gt; before continuing in reading this post so you'll have a better&#xD;
insight on what we are trying to accomplish on this article.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Let's begin!&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
To start off this article let's look at how the application that we built for&#xD;
the previous article.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices07.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
and the HTML code for the UI&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;font color="#ff0000"&gt;&amp;lt;%@&#xD;
Page Language=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"C#"&lt;/span&gt; AutoEventWireup=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"true"&lt;/span&gt; CodeFile=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Default.aspx.cs"&lt;/span&gt; Inherits=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"_Default"&lt;/span&gt; %&amp;gt;&#xD;
&amp;lt;!DOCTYPE html PUBLIC &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"-//W3C//DTD&#xD;
XHTML 1.0 Transitional//EN"&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;html xmlns=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://www.w3.org/1999/xhtml"&lt;/span&gt; &amp;gt;&#xD;
&amp;lt;head runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;title&amp;gt;Keith Rull's Consuming Web Services Sample&amp;lt;/title&amp;gt; &amp;lt;/head&amp;gt;&#xD;
&amp;lt;body&amp;gt; &amp;lt;form id=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"form1"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;div&amp;gt; &amp;lt;strong&amp;gt;Symbol&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt; &amp;lt;asp:TextBox ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"symbolTextBox"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;asp:Button ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"executeButton"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; Text=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Execute"&lt;/span&gt; OnClick=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"executeButton_Click"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Result&amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt; &amp;lt;asp:Label&#xD;
ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"xmlResultLabel"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;/div&amp;gt; &amp;lt;/form&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/font&gt;&#xD;
          &lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
and the underlying code for the click event of the "Execute" button&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;   &#xD;
protected&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; executeButton_Click(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,&#xD;
EventArgs e)&lt;br&gt;&#xD;
    {&lt;br&gt;&#xD;
        &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//get&#xD;
the execution symbol entered in the TextBox&lt;/span&gt;&lt;br&gt;&#xD;
        &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; executionSymbol &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; symbolTextBox.Text;&lt;br&gt;&lt;br&gt;&#xD;
        &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//get&#xD;
the stock quote information&lt;/span&gt;&lt;br&gt;&#xD;
        &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; quoteInfo &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;em&gt;&lt;u&gt;GetStockQuoteInformation(executionSymbol);&lt;/u&gt;&lt;/em&gt;&lt;br&gt;&lt;br&gt;&#xD;
        &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//HtmlEncode&#xD;
the string to properly render it on the page&lt;/span&gt;&lt;br&gt;&#xD;
        &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; htmlEncodedResult &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; System.Web.HttpUtility.HtmlEncode(quoteInfo);&lt;br&gt;&#xD;
        &#xD;
&lt;br&gt;&#xD;
        &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//assign&#xD;
the HtmlEncoded string to our Label control&lt;/span&gt;&lt;br&gt;&#xD;
        xmlResultLabel.Text &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; htmlEncodedResult;&lt;br&gt;&#xD;
    }&lt;/span&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
As you can see the code above does the job of displaying the retuned xml from the&#xD;
webservice. It works. We can understand that XML because we are techie enough but&#xD;
imagine a normal user seeing a xml values on his screen? Yup. Not good. The best way&#xD;
to present data to a user is to show values in tabular form. A lot more pleasing to&#xD;
the eyes and much easier to understand. With that said let's start by replacing the&#xD;
Label control in the form with a DetailsView control. The new aspx page for our form&#xD;
should look like this:&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;font color="#ff0000"&gt;&amp;lt;%@&#xD;
Page Language=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"C#"&lt;/span&gt; AutoEventWireup=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"true"&lt;/span&gt; CodeFile=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Default.aspx.cs"&lt;/span&gt; Inherits=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"_Default"&lt;/span&gt; %&amp;gt;&#xD;
&amp;lt;!DOCTYPE html PUBLIC &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"-//W3C//DTD&#xD;
XHTML 1.0 Transitional//EN"&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;html xmlns=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://www.w3.org/1999/xhtml"&lt;/span&gt; &amp;gt;&#xD;
&amp;lt;head runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;title&amp;gt;Keith Rull's Consuming Web Services Sample&amp;lt;/title&amp;gt; &amp;lt;/head&amp;gt;&#xD;
&amp;lt;body&amp;gt; &amp;lt;form id=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"form1"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;div&amp;gt; &amp;lt;strong&amp;gt;Symbol&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt; &amp;lt;asp:TextBox ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"symbolTextBox"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;asp:Button ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"executeButton"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; Text=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Execute"&lt;/span&gt; OnClick=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"executeButton_Click"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Result&amp;lt;/strong&amp;gt;&amp;amp;nbsp;&amp;lt;br /&amp;gt;&#xD;
&amp;lt;asp:DetailsView ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"stockQuoteInfoDetailsView"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; Height=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"50px"&lt;/span&gt; Width=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"125px"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;/asp:DetailsView&amp;gt; &amp;lt;/div&amp;gt; &amp;lt;/form&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/font&gt;&#xD;
          &lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
As you can see in the old code for the Click event we are able to get the XML and&#xD;
display it on a Label. What we need to do now is to read that XML string and assign&#xD;
it to a our DetailsView but there is one problem... The XML string needs to be converted&#xD;
to an object that supports IList or IEnumerable first before it could be loaded to&#xD;
our DetailsView.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
To solve this problem I've decided to create this method that accepts an XML string&#xD;
and converts it to a DataSet.&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;summary&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
A function that takes an XML string and converts it into a DataSet&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;/summary&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;param name="xmlString"&amp;gt;The xml string to tranform into a DataSet&amp;lt;/param&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;returns&amp;gt;The DataSet representing the values and schema from our xml string&amp;lt;/returns&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;private&lt;/span&gt; DataSet&#xD;
XmlString2DataSet(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; xmlString)&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
a new DataSet that will hold our values&lt;/span&gt; DataSet quoteDataSet &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;null&lt;/span&gt;; &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//check&#xD;
if the xmlString is not blank&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (String.IsNullOrEmpty(xmlString))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//stop&#xD;
the processing&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;return&lt;/span&gt; quoteDataSet;&#xD;
} &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;try&lt;/span&gt;{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
a StringReader object to read our xml string&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; (StringReader&#xD;
stringReader &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; StringReader(xmlString))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//initialize&#xD;
our DataSet&lt;/span&gt; quoteDataSet &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; DataSet(); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//load&#xD;
the StringReader to our DataSet&lt;/span&gt; quoteDataSet.ReadXml(stringReader); } } &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;catch&lt;/span&gt;{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//return&#xD;
null&lt;/span&gt; quoteDataSet &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;null&lt;/span&gt;;&#xD;
} &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//return&#xD;
the DataSet containing the stock information&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;return&lt;/span&gt; quoteDataSet;&#xD;
}&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
Now we can modify our our executeButton_Click event&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;protected&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; executeButton_Click(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,&#xD;
EventArgs e) { &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//get&#xD;
the execution symbol entered in the TextBox&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; executionSymbol &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; symbolTextBox.Text; &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//get&#xD;
the stock quote information&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; quoteInfo &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; GetStockQuoteInformation(executionSymbol); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
our quote DataTable&lt;/span&gt; DataSet quoteDataSet &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; XmlString2DataSet(quoteInfo); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//assign&#xD;
the quote information to our DetailsView&lt;/span&gt; stockQuoteInfoDetailsView.DataSource &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; quoteDataSet;&#xD;
stockQuoteInfoDetailsView.DataBind(); }&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
All we did was pass the xml string to the XmlString2DataSet function to retrieve a&#xD;
DataSet containing the stock quote information and then assigning that DataSet object&#xD;
to our DetailsView for display. Below is how the final form looks-like after our modification&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices01part1.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Now that is more presentable! I hope I was able to share with you something useful.&#xD;
Next stop, we'll be building Master-Detail pages in ASP.NET ;)&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Care for the code? Grab it here: &lt;a href="http://www.keithrull.com/content/binary/KeithRull.ConsumingWebServices.Part2.zip"&gt;&lt;strong&gt;KeithRull.ConsumingWebServices.Part2.zip&#xD;
(5.76 KB)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=e393cdf9-c41e-49cc-98ef-cd4885925b87"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=9qHyJ7"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=9qHyJ7" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,e393cdf9-c41e-49cc-98ef-cd4885925b87.aspx</comments>
      <category>.NET</category>
      <category>ASP.NET</category>
      <category>Tutorial</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=97085444-468c-44d7-af3b-3cc1aee7b72d</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,97085444-468c-44d7-af3b-3cc1aee7b72d.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,97085444-468c-44d7-af3b-3cc1aee7b72d.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=97085444-468c-44d7-af3b-3cc1aee7b72d</wfw:commentRss>
      
      <title>The best MVP congratulatory comment I've ever seen!</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,97085444-468c-44d7-af3b-3cc1aee7b72d.aspx</guid>
      <link>http://www.keithrull.com/2008/04/11/TheBestMVPCongratulatoryCommentIveEverSeen.aspx</link>
      <pubDate>Fri, 11 Apr 2008 15:51:16 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
I saw &lt;strong&gt;&lt;a href="http://diditwith.net/CommentView,guid,83d883f4-d736-4b5c-8dcb-b3fd6f38d7e2.aspx#commentstart"&gt;this&#xD;
comment&lt;/a&gt;&lt;/strong&gt; on &lt;strong&gt;&lt;a href="http://diditwith.net/"&gt;Dustin Campbell&lt;/a&gt;&lt;/strong&gt;'s &lt;strong&gt;&lt;a href="http://diditwith.net/2008/04/01/MicrosoftMVPRenewed.aspx"&gt;MVP&#xD;
renewal post&lt;/a&gt;&lt;/strong&gt; and it made me smile&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/davecampbellsproudmom.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
That is definetely one proud mama! Congrats &lt;strong&gt;&lt;a href="http://diditwith.net/"&gt;Dustin&lt;/a&gt;&lt;/strong&gt; and&#xD;
Happy Birthday too ;)&#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=97085444-468c-44d7-af3b-3cc1aee7b72d"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=twaXT1"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=twaXT1" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,97085444-468c-44d7-af3b-3cc1aee7b72d.aspx</comments>
      <category>All about Keith</category>
      <category>Tech News and Issues</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=af1dae39-727d-4956-9747-15efd6ef95ea</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,af1dae39-727d-4956-9747-15efd6ef95ea.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,af1dae39-727d-4956-9747-15efd6ef95ea.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=af1dae39-727d-4956-9747-15efd6ef95ea</wfw:commentRss>
      
      <title>How To: Consume Web Services in ASP.NET</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,af1dae39-727d-4956-9747-15efd6ef95ea.aspx</guid>
      <link>http://www.keithrull.com/2008/04/08/HowToConsumeWebServicesInASPNET.aspx</link>
      <pubDate>Tue, 08 Apr 2008 16:48:30 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
I've been meaning to write this tutorial for a month now and finally i found time&#xD;
to write it. As you may have noticed, I have been blogging about &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/03/19/HowToReadAFileInNETSample1.aspx"&gt;accessing&#xD;
files&lt;/a&gt;&lt;/strong&gt; (&lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/03/19/HowToReadAFileInNETSample1.aspx"&gt;here&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/03/19/HowToReadAFileInNETSample2.aspx"&gt;here&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/03/19/HowToReadAFileInNETSample1.aspx"&gt;here&lt;/a&gt;&lt;/strong&gt;), &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/03/27/HowToReadXMLDataIntoADataSet.aspx"&gt;reading XML&lt;/a&gt;&lt;/strong&gt;,&#xD;
and &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/03/31/HowToUseTheXmlDataSourceObjectLoadXMLDataToAGridView.aspx"&gt;loading XML&#xD;
data to a GridView&lt;/a&gt;&lt;/strong&gt; lately. The reason behind this is that I am preping&#xD;
you guys up for a much larger article that would span to 5 articles with different&#xD;
demos for each post... something that needs to spend a little bit of time on&#xD;
the lower end of the grid to make the whole thing easier to explain once we start&#xD;
building the big picture... but I won't spill the details about the post yet ;) so&#xD;
better keep up with the site to learn what I've been brewing since early March.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
In the meantime let's talk about how to consume XML Web Services in ASP.NET. I don't&#xD;
want to bore you with explanations on what an XML Web Service means so I'll just&#xD;
lead you to a &lt;a href="http://msdn2.microsoft.com/en-us/library/ms996507.aspx"&gt;&lt;strong&gt;document written&#xD;
by Roger Wolter in 2001&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;that explains&#xD;
the whole enselada about Web Services. Below is an excerpt from that &lt;strong&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms996507.aspx"&gt;document&lt;/a&gt;&lt;/strong&gt;:&#xD;
&lt;/p&gt;&#xD;
        &lt;blockquote&gt;&#xD;
          &lt;p&gt;&#xD;
            &lt;em&gt;&#xD;
              &lt;font size="1"&gt;XML Web services are the fundamental building blocks in the move&#xD;
to distributed computing on the Internet. Open standards and the focus on communication&#xD;
and collaboration among people and applications have created an environment where&#xD;
XML Web services are becoming the platform for application integration. Applications&#xD;
are constructed using multiple XML Web services from various sources that work together&#xD;
regardless of where they reside or how they were implemented. &lt;/font&gt;&#xD;
            &lt;/em&gt;&#xD;
          &lt;/p&gt;&#xD;
          &lt;p&gt;&#xD;
            &lt;em&gt;&#xD;
              &lt;font size="1"&gt;There are probably as many definitions of XML Web Service as there&#xD;
are companies building them, but almost all definitions have these things in common: &lt;/font&gt;&#xD;
            &lt;/em&gt;&#xD;
          &lt;/p&gt;&#xD;
          &lt;ul type="disc"&gt;&#xD;
            &lt;li&gt;&#xD;
              &lt;em&gt;&#xD;
                &lt;font size="1"&gt;XML Web Services expose useful functionality to Web users through&#xD;
a standard Web protocol. In most cases, the protocol used is SOAP. &lt;/font&gt;&#xD;
              &lt;/em&gt;&#xD;
            &lt;/li&gt;&#xD;
            &lt;li&gt;&#xD;
              &lt;em&gt;&#xD;
                &lt;font size="1"&gt;XML Web services provide a way to describe their interfaces in&#xD;
enough detail to allow a user to build a client application to talk to them. This&#xD;
description is usually provided in an XML document called a Web Services Description&#xD;
Language (WSDL) document. &lt;/font&gt;&#xD;
              &lt;/em&gt;&#xD;
            &lt;/li&gt;&#xD;
            &lt;li&gt;&#xD;
              &lt;em&gt;&#xD;
                &lt;font size="1"&gt;XML Web services are registered so that potential users can find&#xD;
them easily. This is done with Universal Discovery Description and Integration (UDDI).&lt;/font&gt;&#xD;
              &lt;/em&gt;&#xD;
            &lt;/li&gt;&#xD;
          &lt;/ul&gt;&#xD;
        &lt;/blockquote&gt;&#xD;
        &lt;p&gt;&#xD;
Now that we have nailed the basic definition let's build a simple application that&#xD;
consumes a publicly available web service. There are a lot of sites that list useful&#xD;
public web services and one of those sites is &lt;strong&gt;&lt;a href="http://www.webservicex.net/WCF/default.aspx"&gt;WebServiceX&lt;/a&gt;&lt;/strong&gt;.&#xD;
WebServiceX's website contains 70+ freely available web service that you&#xD;
can use and utilize in your projects. For this demo I've decided to use&#xD;
the &lt;strong&gt;&lt;a href="http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=19"&gt;StockQuote&#xD;
service&lt;/a&gt;&lt;/strong&gt; which is a web service that allows you to query stock information&#xD;
by using the symbol of the stock. Here's some information about the service &lt;strong&gt;&lt;a href="http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=19"&gt;taken&#xD;
from their website&lt;/a&gt;&lt;/strong&gt;:&#xD;
&lt;/p&gt;&#xD;
        &lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&#xD;
          &lt;p&gt;&#xD;
            &lt;em&gt;&#xD;
              &lt;strong&gt;Summary&lt;/strong&gt;: Get Stock quote for a company symbol by using this web&#xD;
service &#xD;
&lt;br&gt;&lt;strong&gt;Endpoint&lt;/strong&gt;: &lt;/em&gt;&#xD;
            &lt;a href="http://www.webservicex.net/stockquote.asmx"&gt;&#xD;
              &lt;em&gt;http://www.webservicex.net/stockquote.asmx&lt;/em&gt;&#xD;
            &lt;/a&gt;&#xD;
            &lt;br&gt;&#xD;
            &lt;em&gt;&#xD;
              &lt;strong&gt;Disco&lt;/strong&gt;: &lt;/em&gt;&#xD;
            &lt;a href="http://www.webservicex.net/stockquote.asmx?Disco"&gt;&#xD;
              &lt;em&gt;http://www.webservicex.net/stockquote.asmx?Disco&lt;/em&gt;&#xD;
            &lt;/a&gt;&#xD;
            &lt;br&gt;&#xD;
            &lt;em&gt;&#xD;
              &lt;strong&gt;WSDL Location&lt;/strong&gt;: &lt;/em&gt;&#xD;
            &lt;a href="http://www.webservicex.net/stockquote.asmx?wsdl"&gt;&#xD;
              &lt;em&gt;http://www.webservicex.net/stockquote.asmx?wsdl&lt;/em&gt;&#xD;
            &lt;/a&gt;&#xD;
          &lt;/p&gt;&#xD;
        &lt;/blockquote&gt;&#xD;
        &lt;p&gt;&#xD;
Let's begin building!&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
First, let's start by creating a new ASP.NET Website Project&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices01.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Once that's done we need to add a Web Reference to our project that would point to&#xD;
the StockQuote service hosted on the WebServiceX website. We can do this by right-clicking&#xD;
on our solution and then selecting the Web Reference menu item.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices02.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
A new screen will appear that will enable you to specify the URL of the web service.&#xD;
Input &lt;a href="http://www.webservicex.net/stockquote.asmx"&gt;http://www.webservicex.net/stockquote.asmx&lt;/a&gt; on&#xD;
the URL dropdownlist to create reference to the StockQuote service.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices03.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Click "Add Reference" to add the reference to the project. You'll notice that the&#xD;
folder structure of your project has been updated and a new folder called "App_WebReferences"&#xD;
has been added to the project.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices04.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Ok, now let's build our UI. My idea for this sample application is to have a TextBox&#xD;
that allows users to enter the symbol, a Button control that will trigger the lookup&#xD;
to the web service via it's Click event and a Label control that will used&#xD;
to display the values returned by the web service. Below is how I envisioned&#xD;
our form to look-like:&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices05.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
And here's the accompanying HTML source for our form&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;font color="#ff0000"&gt;&amp;lt;%@&#xD;
Page Language=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"C#"&lt;/span&gt; AutoEventWireup=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"true"&lt;/span&gt; CodeFile=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Default.aspx.cs"&lt;/span&gt; Inherits=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"_Default"&lt;/span&gt; %&amp;gt;&#xD;
&amp;lt;!DOCTYPE html PUBLIC &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"-//W3C//DTD&#xD;
XHTML 1.0 Transitional//EN"&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;html xmlns=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://www.w3.org/1999/xhtml"&lt;/span&gt; &amp;gt;&#xD;
&amp;lt;head runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;title&amp;gt;Keith Rull's Consuming Web Services Sample&amp;lt;/title&amp;gt; &amp;lt;/head&amp;gt;&#xD;
&amp;lt;body&amp;gt; &amp;lt;form id=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"form1"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt;&amp;gt;&#xD;
&amp;lt;div&amp;gt; &amp;lt;strong&amp;gt;Symbol&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt; &amp;lt;asp:TextBox ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"symbolTextBox"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;asp:Button ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"executeButton"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; Text=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Execute"&lt;/span&gt; OnClick=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"executeButton_Click"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Result&amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt; &amp;lt;asp:Label&#xD;
ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"xmlResultLabel"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; /&amp;gt;&#xD;
&amp;lt;/div&amp;gt; &amp;lt;/form&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/font&gt;&#xD;
          &lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
Now that we have the infrastructure in place it's time to write some code. The first&#xD;
thing that we need to do on the code-behind level is to add the using declaration&#xD;
to include the web service class in our page.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices06.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
This enables us to create objects from our web service. The class that we would&#xD;
be using in this exercise is the StockQuote object which has the StockQuote.GetQuote&#xD;
method that returns the XML data containing the information for a specified symbol.&#xD;
Below is the method I wrote to show you how to use this class:&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;summary&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
A function that retrieves the stock information&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
from the StockQuote web service&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;/summary&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;param name="executionSymbol"&amp;gt;the execution symbol to lookup&amp;lt;/param&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;///&#xD;
&amp;lt;returns&amp;gt;The string containing the XML information regarding the symbol&amp;lt;/returns&amp;gt;&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;private&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; GetStockQuoteInformation(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; executionSymbol)&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; quoteInfo &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; String.Empty; &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//check&#xD;
if the executionSymbol is not blank&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (String.IsNullOrEmpty(executionSymbol))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//stop&#xD;
the processing&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;return&lt;/span&gt; quoteInfo;&#xD;
} &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;try&lt;/span&gt; { &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
a StockQuote object&lt;/span&gt; StockQuote quote &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; StockQuote(); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//get&#xD;
the stock quote information for the specified symbol&lt;/span&gt; quoteInfo &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; quote.GetQuote(executionSymbol);&#xD;
} &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;catch&lt;/span&gt; (Exception&#xD;
ex) { &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//raise&#xD;
the error&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; errorMessage &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; String.Format(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Error&#xD;
while trying to connect to the Web Service. {0}"&lt;/span&gt;, ex.Message); &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;throw&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; Exception(errorMessage);&#xD;
} &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//return&#xD;
the quote information&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;return&lt;/span&gt; quoteInfo;&#xD;
}&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
Now that we have the function that will call our web service it's time to hook up&#xD;
our method to the Click event of our button.&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt; protected&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; executeButton_Click(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,&#xD;
EventArgs e) { &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//get&#xD;
the execution symbol entered in the TextBox&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; executionSymbol &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; symbolTextBox.Text; &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//get&#xD;
the stock quote information&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; quoteInfo &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;em&gt;&lt;u&gt;GetStockQuoteInformation(executionSymbol);&lt;/u&gt;&lt;/em&gt;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//HtmlEncode&#xD;
the string to properly render it on the page&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; htmlEncodedResult &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; System.Web.HttpUtility.HtmlEncode(quoteInfo); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//assign&#xD;
the HtmlEncoded string to our Label control&lt;/span&gt; xmlResultLabel.Text &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; htmlEncodedResult;&#xD;
}&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
As you can see the whole process was built with little code. Run the application and&#xD;
see how the easy it is to connect to a web service, call a web service method&#xD;
and use it's returned value.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/consumingwebservices07.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
I hope you learned something from this tutorial. On our next article i'll show&#xD;
you howto display the XML returned by the web service to a GridView.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Later ;)&#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=af1dae39-727d-4956-9747-15efd6ef95ea"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=cz2CSR"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=cz2CSR" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,af1dae39-727d-4956-9747-15efd6ef95ea.aspx</comments>
      <category>.NET</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=800cd7fc-2198-4528-9d6e-35ba3e83f99b</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,800cd7fc-2198-4528-9d6e-35ba3e83f99b.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,800cd7fc-2198-4528-9d6e-35ba3e83f99b.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=800cd7fc-2198-4528-9d6e-35ba3e83f99b</wfw:commentRss>
      
      <title>How To: Use the XmlDataSource object load XML data to a GridView</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,800cd7fc-2198-4528-9d6e-35ba3e83f99b.aspx</guid>
      <link>http://www.keithrull.com/2008/03/31/HowToUseTheXmlDataSourceObjectLoadXMLDataToAGridView.aspx</link>
      <pubDate>Mon, 31 Mar 2008 23:15:13 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
Last week I showed you &lt;strong&gt;&lt;a href="http://www.keithrull.com/2008/03/27/HowToReadXMLDataIntoADataSet.aspx"&gt;how&#xD;
to read an XML file, load it to a DataSet and assign those values into a GridView&lt;/a&gt;&lt;/strong&gt;.&#xD;
Today I'll show you how you can read an XML file using the XmlDataSource object.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Let's assume that we have an XML file called Symbols.xml in our App_Data folder&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmlfileinsolution.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
that contains the following data&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;font color="#ff0000"&gt;&amp;lt;?xml&#xD;
version=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"1.0"&lt;/span&gt; encoding=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"utf-8"&lt;/span&gt; ?&amp;gt;&#xD;
&amp;lt;Symbols&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"ATT"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"AT&amp;amp;amp;T"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MSFT"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Microsoft"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"GOOG"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Google"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"CSCO"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cisco"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"IP"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"International&#xD;
Paper Co."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MF"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MF&#xD;
Global"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Q"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Qwest&#xD;
Communications International Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol&#xD;
ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"BMC"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"BMC&#xD;
Software Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"WCI"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"WCI&#xD;
Communities Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"SPY"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"SDRs"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"LEH"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Lehman&#xD;
Brothers Holdings Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol&#xD;
ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"XLF"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Financial&#xD;
Select Sector SPDR"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"QQQQ"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"PowerShares&#xD;
QQQ TR 1"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"IWM"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"IShare&#xD;
Rus 2000 INDX"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"GE"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"General&#xD;
Electric Co."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MER"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Merrill&#xD;
Lynch Co., Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"BAC"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Bank&#xD;
of America Corporation"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol&#xD;
ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"INTC"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Intel&#xD;
Corp"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"F"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Ford&#xD;
Motor Co."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"QID"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"UltraShort&#xD;
QQQ ProShares"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt; &amp;lt;/Symbols&amp;gt;&lt;/font&gt;&#xD;
          &lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
and we want to load it to a GridView with no server-side code and a quick and easy&#xD;
way. The answer is to use the XmlDataSource object. The XmlDataSource control is an&#xD;
ASP.NET control that allows you to automatically read XML Data and make that data&#xD;
readily available to any ASP.NET control.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
To start using this control, go to your Toolbox and drag the XmlDataSource control&#xD;
to your page.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmldatasourcecontrol.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Once the control is on the page it would popup a dialog that has configuration options&#xD;
for our XmlDataSource control. Click the "Configure Data Source" button to configure&#xD;
our XmlDataSource&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmldatasourcecontrol2.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
A popup like below will come up that allows you to select the Xml file you want to&#xD;
your XmlDataSource object to read. It also gives you the option to select the XSL&#xD;
file. You can also specify an XPath expression to use to filter the data in our Xml.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmldatasourcecontrol3.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Click the "Browse" button for the "Data File" option to select an XML file.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
A new dialog will appear that will let you navigate the folder tree to select your&#xD;
desired XML file&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmldatasourcecontrol4.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Click "Ok" and you'll be taken back to the "Configure Data Source" screen. Click "Ok"&#xD;
again to finalize the XML data assignment.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Now that we have the file set in to our XmlDataSource control we need assign it to&#xD;
a control. We can do that by dragging a GridView control to our form.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmldatasourcecontrol6.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Next, we need to assign the XmlDataSource control as the data source for our GridView.&#xD;
We can do this by selecting our XmlDataSource from the "Choose Data Source" dropdownlist.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmldatasourcecontrol7.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Click "XmlDataSource1" and you will notice that our GridView was automatically updated&#xD;
and now shows the contents of our XML file.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;img src="http://www.keithrull.com/content/binary/xmldatasourcecontrol8.JPG" border="0"&gt;&lt;/img&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Easy huh? Next up, Consuming Web Services in ASP.NET&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
 &#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=800cd7fc-2198-4528-9d6e-35ba3e83f99b"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=5uSEDI"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=5uSEDI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,800cd7fc-2198-4528-9d6e-35ba3e83f99b.aspx</comments>
      <category>.NET</category>
      <category>ASP.NET</category>
      <category>Tutorial</category>
    </item>
    <item>
      <trackback:ping>http://www.keithrull.com/Trackback.aspx?guid=ff6bf117-df79-4b86-8297-09ce7d6c3046</trackback:ping>
      <pingback:server>http://www.keithrull.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.keithrull.com/PermaLink,guid,ff6bf117-df79-4b86-8297-09ce7d6c3046.aspx</pingback:target>
      <dc:creator>Keith Rull</dc:creator>
      <wfw:comment>http://www.keithrull.com/CommentView,guid,ff6bf117-df79-4b86-8297-09ce7d6c3046.aspx</wfw:comment>
      <wfw:commentRss>http://www.keithrull.com/SyndicationService.asmx/GetEntryCommentsRss?guid=ff6bf117-df79-4b86-8297-09ce7d6c3046</wfw:commentRss>
      
      <title>How To: Read XML data into a DataSet</title>
      <guid isPermaLink="false">http://www.keithrull.com/PermaLink,guid,ff6bf117-df79-4b86-8297-09ce7d6c3046.aspx</guid>
      <link>http://www.keithrull.com/2008/03/27/HowToReadXMLDataIntoADataSet.aspx</link>
      <pubDate>Thu, 27 Mar 2008 15:47:22 GMT</pubDate>
      <description>&#xD;
        &lt;p&gt;&#xD;
Last week I showed you ways on how to read text files. This time around we will be&#xD;
looking at how to load XML files into a DataSet.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
Let's assume that we have a file called Symbols.xml which contains some XML data.&#xD;
&lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;font color="#ff0000"&gt;&amp;lt;?xml&#xD;
version=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"1.0"&lt;/span&gt; encoding=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"utf-8"&lt;/span&gt; ?&amp;gt;&#xD;
&amp;lt;Symbols&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"ATT"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"AT&amp;amp;amp;T"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MSFT"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Microsoft"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"GOOG"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Google"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"CSCO"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cisco"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"IP"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"International&#xD;
Paper Co."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MF"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MF&#xD;
Global"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Q"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Qwest&#xD;
Communications International Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol&#xD;
ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"BMC"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"BMC&#xD;
Software Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"WCI"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"WCI&#xD;
Communities Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"SPY"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"SDRs"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;&#xD;
    &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"LEH"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Lehman&#xD;
Brothers Holdings Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol&#xD;
ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"XLF"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Financial&#xD;
Select Sector SPDR"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"QQQQ"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"PowerShares&#xD;
QQQ TR 1"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"IWM"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"IShare&#xD;
Rus 2000 INDX"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"GE"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"General&#xD;
Electric Co."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MER"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Merrill&#xD;
Lynch Co., Inc."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"BAC"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Bank&#xD;
of America Corporation"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol&#xD;
ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"INTC"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Intel&#xD;
Corp"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"F"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Ford&#xD;
Motor Co."&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt;     &amp;lt;Symbol ExecutionSymbol=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"QID"&lt;/span&gt; Name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"UltraShort&#xD;
QQQ ProShares"&lt;/span&gt;&amp;gt;&amp;lt;/Symbol&amp;gt; &amp;lt;/Symbols&amp;gt;&lt;/font&gt;&#xD;
          &lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
And you want to load that data into a DataSet and display it to a GridView. How would&#xD;
you do it? &#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
There are different ways you can load an XML file to a DataSet and i'm here to show&#xD;
you 4 of them. I don't have alot of time to explain the intrinsicts of each sample&#xD;
or performance comparisson of each technique because of time constraints so i'll&#xD;
leave that part for you to figure out the best among this examples. ;)&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;strong&gt;SAMPLE 1&lt;/strong&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Sample&#xD;
1&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//the&#xD;
code below shows us how to load the XML document&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//directly&#xD;
to our dataset by just specifying the file&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//location&#xD;
to the DataSet.ReadXml method of the DataSet&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Data; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Xml; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.IO; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;public&lt;/span&gt; partial &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;class&lt;/span&gt; _Default&#xD;
: System.Web.UI.Page { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;protected&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; Page_Load(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,&#xD;
EventArgs e) { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; xmlFilePath &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Server.MapPath(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;@"App_Data/Symbols.xml"&lt;/span&gt;); &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (File.Exists(xmlFilePath))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
the Dataset object&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; (DataSet&#xD;
ds &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; DataSet())&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//load&#xD;
the xml data to the dataset&lt;/span&gt; ds.ReadXml(xmlFilePath); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//bind&#xD;
the values to our GridView&lt;/span&gt; symbolGridView.Caption &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"&amp;lt;h4&amp;gt;Loaded&#xD;
the data using Sample1&amp;lt;/h4&amp;gt;"&lt;/span&gt;; symbolGridView.DataSource &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; ds;&#xD;
symbolGridView.DataBind(); } } } }&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;strong&gt;SAMPLE 2&lt;/strong&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Sample&#xD;
2&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//The&#xD;
code below is using the TextReader object to read&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//the&#xD;
contents of the file and then assign those values&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//to&#xD;
our dataset object&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Data; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Xml; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.IO; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;public&lt;/span&gt; partial &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;class&lt;/span&gt; _Default&#xD;
: System.Web.UI.Page { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;protected&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; Page_Load(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,&#xD;
EventArgs e) { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; xmlFilePath &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Server.MapPath(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;@"App_Data/Symbols.xml"&lt;/span&gt;); &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (File.Exists(xmlFilePath))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Create&#xD;
the TextReader object&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; (TextReader&#xD;
sReader &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; StreamReader(xmlFilePath))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
the Dataset object&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; (DataSet&#xD;
ds &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; DataSet())&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//load&#xD;
the xml data from the TextReader to the Dataset&lt;/span&gt; ds.ReadXml(sReader); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//bind&#xD;
the values to our GridView&lt;/span&gt; symbolGridView.Caption &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"&amp;lt;h4&amp;gt;Loaded&#xD;
the data using Sample2&amp;lt;/h4&amp;gt;"&lt;/span&gt;; symbolGridView.DataSource &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; ds;&#xD;
symbolGridView.DataBind(); } } } } }&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;strong&gt;SAMPLE 3&lt;/strong&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Sample&#xD;
3&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//The&#xD;
code below is basically the same as the above code&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//but&#xD;
this time we are using the XmlTextReader object&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//instead&#xD;
of using the TextReader object. Please note that&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//the&#xD;
XmlReader object calls the TextReader internally.&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Data; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Xml; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.IO; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;public&lt;/span&gt; partial &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;class&lt;/span&gt; _Default&#xD;
: System.Web.UI.Page { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;protected&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; Page_Load(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,&#xD;
EventArgs e) { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; xmlFilePath &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Server.MapPath(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;@"App_Data/Symbols.xml"&lt;/span&gt;); &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (File.Exists(xmlFilePath))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Create&#xD;
the XmlTextReader object&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; (XmlTextReader&#xD;
xTextReader &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; XmlTextReader(xmlFilePath))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
the Dataset object&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; (DataSet&#xD;
ds &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; DataSet())&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//load&#xD;
the xml data to dataset&lt;/span&gt; ds.ReadXml(xTextReader); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//bind&#xD;
the values to our GridView&lt;/span&gt; symbolGridView.Caption &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"&amp;lt;h4&amp;gt;Loaded&#xD;
the data using Sample3&amp;lt;/h4&amp;gt;"&lt;/span&gt;; symbolGridView.DataSource &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; ds;&#xD;
symbolGridView.DataBind(); } } } } }&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
          &lt;strong&gt;SAMPLE 4&lt;/strong&gt;&#xD;
        &lt;/p&gt;&#xD;
        &lt;pre&gt;&#xD;
          &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Sample&#xD;
4&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//The&#xD;
code below uses an XmlDocument object and reads a file&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//using&#xD;
the XmlDocument.LoadXml method. That data is then&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//transfered&#xD;
to a DataSet by using the DataSet.ReadXml method&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//and&#xD;
passing a XmlNodeReader object based on our XmlDocument&lt;/span&gt;&#xD;
            &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Data; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.Xml; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; System.IO; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;public&lt;/span&gt; partial &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;class&lt;/span&gt; _Default&#xD;
: System.Web.UI.Page { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;protected&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; Page_Load(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,&#xD;
EventArgs e) { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;string&lt;/span&gt; xmlFilePath &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Server.MapPath(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;@"App_Data/Symbols.xml"&lt;/span&gt;); &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (File.Exists(xmlFilePath))&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Create&#xD;
the Dataset object&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; (DataSet&#xD;
ds &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; DataSet())&#xD;
{ &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//create&#xD;
the XmlDocument object&lt;/span&gt; XmlDocument xDoc &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; XmlDocument(); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//load&#xD;
the contents of the file to our XmlDocument object&lt;/span&gt; xDoc.LoadXml(File.ReadAllText(xmlFilePath)); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//load&#xD;
the xml data in the XmlDocument object to the Dataset&lt;/span&gt; ds.ReadXml(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; XmlNodeReader(xDoc)); &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//bind&#xD;
the values to our GridView&lt;/span&gt; symbolGridView4.Caption &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"&amp;lt;h4&amp;gt;Loaded&#xD;
the data using Sample4&amp;lt;/h4&amp;gt;"&lt;/span&gt;; symbolGridView4.DataSource &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; ds;&#xD;
symbolGridView4.DataBind(); } } } }&lt;/span&gt;&#xD;
        &lt;/pre&gt;&#xD;
        &lt;p&gt;&#xD;
And that's it. On my next post i'll show you how to load XML data directly to the&#xD;
GridView using the XMLDataSource object.&#xD;
&lt;/p&gt;&#xD;
        &lt;p&gt;&#xD;
HTH.&#xD;
&lt;/p&gt;&#xD;
        &lt;img width="0" height="0" src="http://www.keithrull.com/aggbug.ashx?id=ff6bf117-df79-4b86-8297-09ce7d6c3046"&gt;&lt;/img&gt;&#xD;
      
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/KeithRull?a=goy75V"&gt;&lt;img src="http://feeds.feedburner.com/~a/KeithRull?i=goy75V" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <comments>http://www.keithrull.com/CommentView,guid,ff6bf117-df79-4b86-8297-09ce7d6c3046.aspx</comments>
      <category>.NET</category>
      <category>Tutorial</category>
    </item>
  </channel>
</rss>
