<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dev 4 Web</title>
	<atom:link href="http://nordz.sauleil.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nordz.sauleil.com</link>
	<description>Just another Developer WordPress Discovery Channel</description>
	<lastBuildDate>Tue, 13 Mar 2012 10:40:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SharePoint 2010 Installer (Standalone VS Server Farm)</title>
		<link>http://nordz.sauleil.com/2012/03/13/sharepoint-2010-installer/</link>
		<comments>http://nordz.sauleil.com/2012/03/13/sharepoint-2010-installer/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 10:30:27 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=254</guid>
		<description><![CDATA[One of the important thing to know when we install SharePoint is to select the appropriate options in the &#8220;Wizard&#8221;. I didn&#8217;t knew exactely the difference between &#8220;Standalone&#8221; and &#8220;Server Farm&#8221;. I only knew that a &#8220;Farm&#8221; consists of multiple installation of SharePoint accross a domain, but that was it. If you ever install SharePoint [...]]]></description>
			<content:encoded><![CDATA[<p>One of the important thing to know when we install SharePoint is to select the appropriate options in the &#8220;Wizard&#8221;. I didn&#8217;t knew exactely the difference between &#8220;Standalone&#8221; and &#8220;Server Farm&#8221;. I only knew that a &#8220;Farm&#8221; consists of multiple installation of SharePoint accross a domain, but that was it.</p>
<p>If you ever install SharePoint 2010, it is recommended to alway&#8217;s use the &#8220;Server Farm&#8221; configuration unless you want to install a test/development server. This is because the &#8220;Standalone&#8221; install everything by itself, including the SQL Express 2008R2. If you want to configure everything properly (user accounts, services,  database, etc.) you <strong>must</strong> choose the &#8220;Server Farm&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2012/03/13/sharepoint-2010-installer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change the default language in login screen (Windows)</title>
		<link>http://nordz.sauleil.com/2010/04/12/change-the-default-language-in-login-screen-windows/</link>
		<comments>http://nordz.sauleil.com/2010/04/12/change-the-default-language-in-login-screen-windows/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 08:17:48 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=251</guid>
		<description><![CDATA[At my new job, I had the french keyboard set by default. When I type my password I always need to change the language. I finaly found a solution, and to be able to apply the solution you need to be able to go in the regedit. Here&#8217;s the article: http://support.microsoft.com/kb/138354 It also works into [...]]]></description>
			<content:encoded><![CDATA[<p>At my new job, I had the french keyboard set by default. When I type my password I always need to change the language. I finaly found a solution, and to be able to apply the solution you need to be able to go in the regedit.</p>
<p>Here&#8217;s the article: <a href="http://support.microsoft.com/kb/138354" target="_blank">http://support.microsoft.com/kb/138354</a></p>
<p>It also works into windows Xp.</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2010/04/12/change-the-default-language-in-login-screen-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image resizing in IE does weird thing</title>
		<link>http://nordz.sauleil.com/2009/04/21/image-resizing-in-ie-does-weird-thing/</link>
		<comments>http://nordz.sauleil.com/2009/04/21/image-resizing-in-ie-does-weird-thing/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 14:53:39 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/2009/04/21/image-resizing-in-ie-does-weird-thing/</guid>
		<description><![CDATA[The fix can be found on http://devthought.com/tumble/2009/03/tip-high-quality-css-thumbnails-in-ie7/ It gives an easy css solution to display thumbnails properly on a web page (ie7 bug).]]></description>
			<content:encoded><![CDATA[<p>The fix can be found on http://devthought.com/tumble/2009/03/tip-high-quality-css-thumbnails-in-ie7/</p>
<p>It gives an easy css solution to display thumbnails properly on a web page (ie7 bug).</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2009/04/21/image-resizing-in-ie-does-weird-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery and ajax call to ASP.Net using object</title>
		<link>http://nordz.sauleil.com/2009/04/07/jquery-and-ajax-call-to-aspnet-using-object/</link>
		<comments>http://nordz.sauleil.com/2009/04/07/jquery-and-ajax-call-to-aspnet-using-object/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 12:14:25 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=246</guid>
		<description><![CDATA[Great article on Encosia web site about posting data to your application using Ajax call. It use the JQuery.ajax to post the data to the server using a stringnify method. http://encosia.com/2009/04/07/using-complex-types-to-make-calling-services-less-complex/]]></description>
			<content:encoded><![CDATA[<p>Great article on Encosia web site about posting data to your application using Ajax call.</p>
<p>It use the JQuery.ajax to post the data to the server using a stringnify method.</p>
<p><a href="http://encosia.com/2009/04/07/using-complex-types-to-make-calling-services-less-complex/">http://encosia.com/2009/04/07/using-complex-types-to-make-calling-services-less-complex/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2009/04/07/jquery-and-ajax-call-to-aspnet-using-object/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>When should we do tests?</title>
		<link>http://nordz.sauleil.com/2008/12/18/when-should-we-do-tests/</link>
		<comments>http://nordz.sauleil.com/2008/12/18/when-should-we-do-tests/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 13:06:26 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=237</guid>
		<description><![CDATA[A co-worker asked me to go on the Steven Harman Blog to read the post &#8220;When Should I Write Tests&#8220;. I strongly suggest you to get there and open the two links he created.]]></description>
			<content:encoded><![CDATA[<p>A co-worker asked me to go on the <a href="http://stevenharman.net/blog/" target="_blank">Steven Harman Blog</a> to read the post &#8220;<a href="http://stevenharman.net/blog/archive/2008/12/17/when-should-i-write-tests.aspx" target="_blank">When Should I Write Tests</a>&#8220;. I strongly suggest you to get there and open the two links he created.</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/12/18/when-should-we-do-tests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regroup your JavaScript function using JSON</title>
		<link>http://nordz.sauleil.com/2008/11/19/regroup-your-javascript-function-using-json/</link>
		<comments>http://nordz.sauleil.com/2008/11/19/regroup-your-javascript-function-using-json/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 13:38:38 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=220</guid>
		<description><![CDATA[In JavaScript we have the opportunity to create object using JSON and we should use that opportunity for clarity of code. By example, if you want to have a call to a function that load something and return something else, you can do something like this: var Math = &#123; Add: function&#40;Number1, Number2&#41; &#123; /// [...]]]></description>
			<content:encoded><![CDATA[<p>In JavaScript we have the opportunity to create object using JSON and we should use that opportunity for clarity of code. By example, if you want to have a call to a function that load something and return something else, you can do something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> Math <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
	Add<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>Number1<span style="color: #339933;">,</span> Number2<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">///		Addition function.</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">/// Return the total of two number (n1 + n2).</span>
&nbsp;
		Code here.
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
	Sub<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>Number1<span style="color: #339933;">,</span> Number2<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">///		Substract function.</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">/// Return the total of two number (n1 – n2).</span>
&nbsp;
		Code here.
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
	...
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To call your function, you can simply call it by doing “alert(Math.Add(12,12));”. It is also possible to create object where you need to do a new to instantiate it.  To learn more about the JSON, you can go on http://msdn.microsoft.com/en-us/library/bb299886.aspx.<br />
If you want to instantiate an object that does some init stuff, I strongly suggest using something like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> Math <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#123;</span>
	init stuff here
	...
	<span style="color: #660066;">Create</span> <span style="color: #003366; font-weight: bold;">function</span> directly inside the <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>anonymous type<span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">function</span> Sub<span style="color: #009900;">&#40;</span>Number1<span style="color: #339933;">,</span> Number2<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">///		Substract function.</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">/// Return the total of two number (n1 – n2).</span>
&nbsp;
		Code here.
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> Math.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">Add</span> <span style="color: #009900;">&#40;</span>Number1<span style="color: #339933;">,</span> Number2<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">///		Addition function.</span>
		<span style="color: #006600; font-style: italic;">///</span>
		<span style="color: #006600; font-style: italic;">/// Return the total of two number (n1 + n2).</span>
&nbsp;
		Code here.
	<span style="color: #009900;">&#125;</span></pre></div></div>

<p>It actually looks more like a class that you need to instantiate. By example to use the previous code, you need to do:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> myMathObj <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Math<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> addResult <span style="color: #339933;">=</span> myMathObj.<span style="color: #660066;">Add</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">10</span><span style="color: #339933;">,</span><span style="color: #CC0000;">14</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> subResult <span style="color: #339933;">=</span> myMathObj.<span style="color: #660066;">Sub</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">15</span><span style="color: #339933;">,</span><span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Here’s a link to a good tutorial about the prototype: http://www.javascriptkit.com/javatutors/proto.shtml.</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/11/19/regroup-your-javascript-function-using-json/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio &#8211; compress automatically your js file when building</title>
		<link>http://nordz.sauleil.com/2008/11/16/visual-studio-compress-automatically-your-js-file-when-building/</link>
		<comments>http://nordz.sauleil.com/2008/11/16/visual-studio-compress-automatically-your-js-file-when-building/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 19:16:58 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=213</guid>
		<description><![CDATA[I found out that tiny-MCE (Moxie) was using one of their tool called JSTrim. That executable is used to compress your JavaScript files when you want and it also use an XML configuration file so you can select multiple JS files and put them together. By example, if you have 5 classes defined in 5 [...]]]></description>
			<content:encoded><![CDATA[<p>I found out that <a href="http://tinymce.moxiecode.com/">tiny-MCE (Moxie)</a> was using one of their tool called <a href="http://http://moxieforge.net/overview.php?project_id=10&amp;category_id=7">JSTrim</a>. That executable is used to compress your JavaScript files when you want and it also use an XML configuration file so you can select multiple JS files and put them together. By example, if you have 5 classes defined in 5 different JS files, you can create only one file having all those classes. You can even create a temporary files that contains those files and then compress it using a javascript compressor. That compressor remove all comments and stuff like that. You can actually choose if you want it compressed &#8220;high&#8221; or &#8220;low&#8221;.</p>
<p>When I work I actually have a source control (Team Foundation Server) application inside my Visual Studio 2008. I wanted to have some JavaScript file to be compressed when I was publishing my application on the web server. To do so, I actually added a new JavaScript file containing nothing to the solution under my script folder and I checked in my stuff. After that, I also added my JSTrim somewhere in the project with it&#8217;s config file.</p>
<p>After I went inside the project properties (right click on the project/properties). I went inside the build event (Post Build event command line) and added those lines:</p>
<pre lang="">
cd $(SolutionDir)Web\Script\
attrib -r myCompiledJS.js
JSTrim.exe -m high --config JSTrim.config
attrib +r myCompiledJS.js</pre>
<p>The <strong>$(SolutionDir)</strong> is actually a system variable or macro, so that you can export those settings on different computer without having problems. The <strong>Web\Script\</strong> is the folder inside your solution where you can find your <strong>JSTrim.exe</strong>. The <strong>attrib -r myCompiledJS.js</strong> is actually a windows command line executable that allow you to remove the read-only and then put it back using the <strong>+r</strong> feature. Any Windows system or dos system should be able to run that line. Concerning the JSTrim possible attributes, I suggest you to do <strong>JSTrim -h</strong> to get all parameter information.</p>
<p>So, by adding those lines inside the post-build, whenever you have a successfull build, it will regenerate the compiled JavaScript file. What I personally do, I use the compiler current mode (debug, release, etc.) to use the proper JavaScript file. When I&#8217;m in debug mode, I always keep the non compiled JS files and when I publish or run as &#8220;Release&#8221; I use those compiled files. The major reason to do that is because you may want to debug your JavaScript more easily.</p>
<p>If you have any question, ask them <img src='http://nordz.sauleil.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/11/16/visual-studio-compress-automatically-your-js-file-when-building/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goodies to know (.Net)</title>
		<link>http://nordz.sauleil.com/2008/11/05/goodies-to-know-net/</link>
		<comments>http://nordz.sauleil.com/2008/11/05/goodies-to-know-net/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 18:23:24 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Asp]]></category>
		<category><![CDATA[Ressources]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=208</guid>
		<description><![CDATA[There is some addon to Visual studio that are free that you may likes. Here&#8217;s some of them: - DevExpress CodeRush Express: http://devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/ - Want to refactor your Aspx files ? http://devexpress.com/Products/Visual_Studio_Add-in/RefactorASP/ Want to know how it works? Look here http://tv.devexpress.com/ You want more goodies? Check this out! http://www.visualstudiogallery.com/ This is an official site from [...]]]></description>
			<content:encoded><![CDATA[<p>There is some addon to Visual studio that are free that you may likes. Here&#8217;s some of them:</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-CA</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--> <!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} --></p>
<p><!--[endif]-->- DevExpress CodeRush Express<span style="font-family: Wingdings;">:</span> <a href="http://devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/">http://devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/</a></p>
<p class="MsoNormal">- Want to refactor your Aspx files ? <a href="http://devexpress.com/Products/Visual_Studio_Add-in/RefactorASP/">http://devexpress.com/Products/Visual_Studio_Add-in/RefactorASP/</a></p>
<p class="MsoNormal">Want to know how it works? Look here <a href="http://tv.devexpress.com/">http://tv.devexpress.com/</a></p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">You want more goodies?</p>
<p class="MsoNormal">Check this out! <a href="http://www.visualstudiogallery.com/">http://www.visualstudiogallery.com/</a> This is an official site from MSFT!</p>
<p class="MsoNormal">
<p class="MsoNormal">Thanks to Yvan C.</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/11/05/goodies-to-know-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a WebService in ASP.Net that return an XML Document.</title>
		<link>http://nordz.sauleil.com/2008/09/14/create-a-webservice-in-aspnet-that-return-an-xml-document/</link>
		<comments>http://nordz.sauleil.com/2008/09/14/create-a-webservice-in-aspnet-that-return-an-xml-document/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 19:49:16 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[WebServices]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=184</guid>
		<description><![CDATA[I know that you can find a lot of tutorial over the internet to create a simple Web Services that return data. Personally, I just wanted to create a quick tutorial to return an XML Document from a DataSet. First of all, you will need Visual Studio 2005 or 2008. Once you&#8217;ve created a web [...]]]></description>
			<content:encoded><![CDATA[<p>I know that you can find a lot of tutorial over the internet to create a simple Web Services that return data. Personally, I just wanted to create a quick tutorial to return an XML Document from a DataSet. </p>
<p>First of all, you will need Visual Studio 2005 or 2008. Once you&#8217;ve created a web site project or an web site application project, you need to add to the solution a &#8220;Web Service&#8221; page. You can call that web service &#8220;Test.asmx&#8221;. By default you will see an &#8220;Hello World&#8221; test function. To try out that fabulous function press &#8220;F5&#8243; to compile and run from the test.asmx page. By doing that, it will display you the available function for your Web Services. Click on it to see how to call that function by soap or HTTP post. You also have in that screen a button to invoke your web method inside your service. If you had any primitive parameters (Ex.: string, int, bool, &#8230;), you would see the inputs to call your method. In your case, only click on the button &#8220;Invoke&#8221;. The result displayed on your browser should be an &#8220;Hello World&#8221; text.</p>
<p>Let&#8217;s get back to the &#8220;Test.asmx&#8221; and replace the hello world function by &#8220;GetXMLDataSetData&#8221;. Don&#8217;t put any arguments at the moment. Inside that function, put the following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&#91;</span>WebMethod<span style="color: #008000;">&#93;</span>
<span style="color: #0600FF; font-weight: bold;">public</span> XmlDocument GetXMLDataSetData<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
	XmlDocument myXmlDocument <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> XmlDocument<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	DataSet myDataSet <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> DataSet<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;MyDataSetName&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	DataTable myDataTable <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> DataTable<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;MyDataTableStuff&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	myDataSet<span style="color: #008000;">.</span><span style="color: #0000FF;">Tables</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>myDataTable<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	myDataTable<span style="color: #008000;">.</span><span style="color: #0000FF;">Columns</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;FirstName&quot;</span>, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	myDataTable<span style="color: #008000;">.</span><span style="color: #0000FF;">Columns</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;LastName&quot;</span>, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	myDataTable<span style="color: #008000;">.</span><span style="color: #0000FF;">Columns</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;FullName&quot;</span>, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#41;</span>, <span style="color: #666666;">&quot;LastName + ', ' + FirstName&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	DataRow dtrow <span style="color: #008000;">=</span> myDataTable<span style="color: #008000;">.</span><span style="color: #0000FF;">NewRow</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	dtrow<span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;FirstName&quot;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Nordes&quot;</span><span style="color: #008000;">;</span>
	dtrow<span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;LastName&quot;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Lamarre&quot;</span><span style="color: #008000;">;</span>
&nbsp;
	myDataTable<span style="color: #008000;">.</span><span style="color: #0000FF;">Rows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>dtrow<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	myDataTable<span style="color: #008000;">.</span><span style="color: #0000FF;">AcceptChanges</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	myXmlDocument<span style="color: #008000;">.</span><span style="color: #0000FF;">LoadXml</span><span style="color: #008000;">&#40;</span>myDataSet<span style="color: #008000;">.</span><span style="color: #0000FF;">GetXml</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #0600FF; font-weight: bold;">return</span> myXmlDocument<span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>The result given by clicking the invoke button will be the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;MyDataSetName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;MyDataTableStuff<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;FirstName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Nordes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/FirstName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;LastName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Lamarre<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/LastName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;FullName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Lamarre, Nordes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/FullName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/MyDataTableStuff<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/MyDataSetName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>What you could also do is calling a stored procedure that is returning you a dataset. From that DataSet, you only return the tables you need with the appropriate data.</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/09/14/create-a-webservice-in-aspnet-that-return-an-xml-document/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to resize IFrame to it&#8217;s content full height</title>
		<link>http://nordz.sauleil.com/2008/09/14/iframe-resize-to-its-content-full-height/</link>
		<comments>http://nordz.sauleil.com/2008/09/14/iframe-resize-to-its-content-full-height/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 14:52:56 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[IFrame]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=177</guid>
		<description><![CDATA[When working with IFrame, we may want the frame taking the 100% height of its content. In fact, we want to simulate the IFrame to look like a DIV. It is not simple as setting height 100% and overflow none. The content of the IFrame content load after the current page is loaded or after [...]]]></description>
			<content:encoded><![CDATA[<p>When working with IFrame, we may want the frame taking the 100% height of its content. In fact, we want to simulate the IFrame to look like a DIV. It is not simple as setting height 100% and overflow none. </p>
<p>The content of the IFrame content load after the current page is loaded or after the &#8220;src&#8221; attribute change. So we are not able to have the IFrame content height or width until the data is rendered. It exist an event handler called &#8220;onload&#8221; that trigger once the content is loaded, but it is not possible to get the content body height, in fact it will alway&#8217;s return 0. By googling, I&#8217;ve found a lot of solutions, but none of them was working properly or at least working like I wanted. Because of that, I&#8217;ve written my own solution.</p>
<p>My solution is to use a &#8220;setTimeout&#8221; until the IFrame content is fully rendered on the page and after that, we are able to get the iframe content height and set it to the IFrame itself. In the following solution I actually use JQuery. If you need to convert it to normal JavaScript, it should be pretty easy.</p>
<p>Write this into your HTML:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;iframe id=&quot;iframeId&quot; name=&quot;iframeId&quot; onload=&quot;sizeIFrame(this.id);&quot; style=&quot;width:100%;&quot;&gt;
&lt;/iframe&gt;</pre></td></tr></table></div>

<p>Write this in your javascript (header or JS file):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> sizeIFrame<span style="color: #009900;">&#40;</span>frameId<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> myIFrame <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#&quot;</span> <span style="color: #339933;">+</span> frameId<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> innerDoc <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>myIFrame.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">contentDocument</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> myIFrame.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">contentDocument</span> <span style="color: #339933;">:</span> myIFrame.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">contentWindow</span>.<span style="color: #660066;">document</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span><span style="color: #006600; font-style: italic;">// will throw an exception if the body is not fully loaded.</span>
		myIFrame.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span>innerDoc.<span style="color: #660066;">body</span>.<span style="color: #660066;">scrollHeight</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">35</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>innerDoc.<span style="color: #660066;">body</span> <span style="color: #339933;">&amp;&amp;</span> innerDoc.<span style="color: #660066;">body</span>.<span style="color: #660066;">scrollHeight</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		setTimeout<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> sizeIFrame<span style="color: #009900;">&#40;</span>frameId<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>If you are having any problem please leave a comment.</p>
<p>This solution have only been tested on Internet Explorer 6/7</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/09/14/iframe-resize-to-its-content-full-height/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BUG IFrame transparency in Internet Explorer</title>
		<link>http://nordz.sauleil.com/2008/08/18/bug-iframe-transparency-in-internet-explorer/</link>
		<comments>http://nordz.sauleil.com/2008/08/18/bug-iframe-transparency-in-internet-explorer/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 20:43:38 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[IFrame transparency]]></category>
		<category><![CDATA[Transparency]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=163</guid>
		<description><![CDATA[While doing some style on the site I&#8217;m working on, I wanted to have my IFrame with an invisible background, so I can see the main page background. What I did, is what you would do normally to make it works on &#8220;good&#8221; browsers like firefox. 1 2 3 4 body.ClassName /* Page nested in [...]]]></description>
			<content:encoded><![CDATA[<p>While doing some style on the site I&#8217;m working on, I wanted to have my IFrame with an invisible background, so I can see the main page background. What I did, is what you would do normally to make it works on &#8220;good&#8221; browsers like firefox.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body.ClassName <span style="color: #808080; font-style: italic;">/* Page nested in the IFrame */</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>But, that code doesn&#8217;t work with IE. The thing is, when you have an IFrame inside IE, it automatically add the style attribute &#8220;background-color:#ffffff&#8221;. To remove that IFrame background-color, you need to add the following attribute on your iframe.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;iframe id=&quot;myIframe&quot; allowtransparency=&quot;true&quot; src=&quot;../myproject/page&quot;&gt;
&lt;/iframe&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/08/18/bug-iframe-transparency-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Use Enumerator power instead of doing infinite if/else</title>
		<link>http://nordz.sauleil.com/2008/08/17/use-enumerator-power-instead-of-doing-infinite-ifelse/</link>
		<comments>http://nordz.sauleil.com/2008/08/17/use-enumerator-power-instead-of-doing-infinite-ifelse/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 00:40:28 +0000</pubDate>
		<dc:creator>Nordes</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[enum]]></category>

		<guid isPermaLink="false">http://nordz.sauleil.com/?p=160</guid>
		<description><![CDATA[While working with C# I found out that we can easily use the power of &#8220;Enum&#8221; instead of using hard-coded stuff. As many of you know, when we are posting a page using a query string the other page may want to manage it efficiently. Some people are doing multiple if/else to only validate the [...]]]></description>
			<content:encoded><![CDATA[<p>While working with C# I found out that we can easily use the power of &#8220;Enum&#8221; instead of using hard-coded stuff. As many of you know, when we are posting a page using a query string the other page may want to manage it efficiently. Some people are doing multiple if/else to only validate the string passed in the query string. When you have the wrong case, or when it does not exist in your if/else statement, you may encounter some bugs. Instead of that, you can use simple enumerator and also have a default value or even throw an exception when it does not exist.</p>
<p>You first need to create your enum if it doesn&#8217;t already exists in your actual project:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">enum</span> MyEnum
<span style="color: #008000;">&#123;</span>
	POSSIBLE_VALUE_1 <span style="color: #008000;">=</span> <span style="color: #FF0000;">1</span>,
	POSSIBLE_VALUE_2 <span style="color: #008000;">=</span> <span style="color: #FF0000;">2</span>,
	DEFAULT_VALUE <span style="color: #008000;">=</span> <span style="color: #FF0000;">1</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>After, in your page load or wherever you need it, you can do as follow to convert your string to your enum. That way, it will be more useful inside your project.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;">MyEnum test<span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">try</span>
<span style="color: #008000;">&#123;</span>
	test <span style="color: #008000;">=</span> <span style="color: #008000;">&#40;</span>MyEnum<span style="color: #008000;">&#41;</span><span style="color: #6666cc; font-weight: bold;">Enum</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>MyEnum<span style="color: #008000;">&#41;</span>, Request<span style="color: #008000;">.</span><span style="color: #0000FF;">QueryString</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;MyQueryStringItem&quot;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>, <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span>
<span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Exception<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// Possible exception: </span>
	<span style="color: #008080; font-style: italic;">//	The query string does not exist : NullReferenceException</span>
	<span style="color: #008080; font-style: italic;">//	The query string value is not in the enum: ArgumentException</span>
&nbsp;
	test <span style="color: #008000;">=</span> MyEnum<span style="color: #008000;">.</span><span style="color: #0000FF;">DEFAULT_VALUE</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Or you can throw your own exception here.</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>You now see how easy it is to convert a simple string to an enum type. After that conversion, it will be more usable across your project. You will also be able to do switch with a more robust case. In case you change your enum list and you remove an item. At compile time, it will tell you that the enum value selected does not exists. That way your code stay clean.</p>
]]></content:encoded>
			<wfw:commentRss>http://nordz.sauleil.com/2008/08/17/use-enumerator-power-instead-of-doing-infinite-ifelse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

