<?xml version="1.0" encoding="utf-8"?>
<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>Rujith Anand's space - Coding</title>
    <link>http://www.rujith.net/RujithBlogTech/</link>
    <description>The techie in me</description>
    <language>en-us</language>
    <copyright>Rujith Anand</copyright>
    <lastBuildDate>Sat, 10 Apr 2010 22:18:00 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>rujith@rujith.net</managingEditor>
    <webMaster>rujith@rujith.net</webMaster>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=89973a28-1e94-41d2-9855-413aee325702</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=89973a28-1e94-41d2-9855-413aee325702</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
String.Replace is not case insensitive, so what is the best way to do it. There are
several ways, if I think of the quickest one it is using regex.
</p>
        <pre class="csharpcode">
          <span class="kwrd">using</span> System.Text.RegularExpressions;<span class="kwrd">string</span><span class="kwrd">string</span> str
= <span class="str">"The quick brown Fox jumps over the lazy dog"</span>; <span class="kwrd">string</span> strReplace
= <span class="str">"cat"</span>; <span class="kwrd">string</span> result = Regex.Replace(str, <span class="str">"fox"</span>,
strReplace, RegexOptions.IgnoreCase);</pre>
        <p>
-Rujith
</p>
        <p>
 
</p>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
      </body>
      <title>Quickest String.Replace case insensitive</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/04/10/QuickestStringReplaceCaseInsensitive.aspx</link>
      <pubDate>Sat, 10 Apr 2010 22:18:00 GMT</pubDate>
      <description>&lt;p&gt;
String.Replace is not case insensitive, so what is the best way to do it. There are
several ways, if I think of the quickest one it is using regex.
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text.RegularExpressions;&lt;span class="kwrd"&gt;string&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; str
= &lt;span class="str"&gt;"The quick brown Fox jumps over the lazy dog"&lt;/span&gt;; &lt;span class="kwrd"&gt;string&lt;/span&gt; strReplace
= &lt;span class="str"&gt;"cat"&lt;/span&gt;; &lt;span class="kwrd"&gt;string&lt;/span&gt; result = Regex.Replace(str, &lt;span class="str"&gt;"fox"&lt;/span&gt;,
strReplace, RegexOptions.IgnoreCase);&lt;/pre&gt;
&lt;p&gt;
-Rujith
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</comments>
      <category>Coding</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=6b8104a3-84b0-410c-b946-cac1cb8755ba</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=6b8104a3-84b0-410c-b946-cac1cb8755ba</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I had lot of trouble in my last project due the html body onload event. The aspx pages
were relying lot on this event ( I agree its not the best way, but we don't have the
budget and time for to rebuild the entire site). These sites were AJAXyfied recently
using Telerik RadControls, and were not working in FireFox. I must admin Telerik controls
are really good, its makes your job very easy in AJAX world. Though I don't like their
quarterly release idea. YES, they release a new version every quarter... 
</p>
        <p>
So the problem in AJAX is, the page can be loaded asynchronously, so when the onload
event on the body is fired the controls may not be ready, so you get null exceptions. 
</p>
        <p>
The best way I found is to use the built in ‘pageLoad()’ method(this is a reserved
method). This will be called once all AJAX load events are finished. Remember you
can use this only in AJAX pages. Also this is consistent in different browsers. (If
you are going with FireFox you have to use window.load=function() instead onload=function())
</p>
        <p>
Coding is fun
</p>
        <p>
-Rujith
</p>
      </body>
      <title>Body onload and AJAX</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/02/08/BodyOnloadAndAJAX.aspx</link>
      <pubDate>Mon, 08 Feb 2010 00:32:00 GMT</pubDate>
      <description>&lt;p&gt;
I had lot of trouble in my last project due the html body onload event. The aspx pages
were relying lot on this event ( I agree its not the best way, but we don't have the
budget and time for to rebuild the entire site). These sites were AJAXyfied recently
using Telerik RadControls, and were not working in FireFox. I must admin Telerik controls
are really good, its makes your job very easy in AJAX world. Though I don't like their
quarterly release idea. YES, they release a new version every quarter... 
&lt;/p&gt;
&lt;p&gt;
So the problem in AJAX is, the page can be loaded asynchronously, so when the onload
event on the body is fired the controls may not be ready, so you get null exceptions. 
&lt;/p&gt;
&lt;p&gt;
The best way I found is to use the built in ‘pageLoad()’ method(this is a reserved
method). This will be called once all AJAX load events are finished. Remember you
can use this only in AJAX pages. Also this is consistent in different browsers. (If
you are going with FireFox you have to use window.load=function() instead onload=function())
&lt;/p&gt;
&lt;p&gt;
Coding is fun
&lt;/p&gt;
&lt;p&gt;
-Rujith
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</comments>
      <category>Coding</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=86152535-3c14-42da-939d-9d86384332a7</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=86152535-3c14-42da-939d-9d86384332a7</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Maximum request length matters when you want to allow upload/download of large files.
</p>
        <p>
This is one of the major change in IIS7. In previous version the default is 4MB, in
IIS7 its 28.6MB. So when you deploy your ASP.NET application you will see that it
will work for files larger than 4MB, but will give as soon as you cross the 28MB.
</p>
        <p>
In IIS 7, the attribute has been changed to maxAllowedContentLength and it has to
appear in &lt;system.webServer&gt; section (as for all IIS 7 settings). The complete
attribute will look something like this…
</p>
        <pre class="code">
          <span style="color: blue">&lt;</span>
          <span style="color: #a31515">system.webServer</span>
          <span style="color: blue">&gt;</span>
          <span style="color: blue">
            <br />
&lt;</span>
          <span style="color: #a31515">security </span>
          <span style="color: blue">&gt;
&lt;</span>
          <span style="color: #a31515">requestFiltering</span>
          <span style="color: blue">&gt;
&lt;</span>
          <span style="color: #a31515">requestLimits </span>
          <span style="color: red">maxAllowedContentLength</span>
          <span style="color: blue">=</span>"<span style="color: blue">3072000000</span>" <span style="color: blue">/&gt;
&lt;/</span><span style="color: #a31515">requestFiltering</span><span style="color: blue">&gt;
&lt;/</span><span style="color: #a31515">security</span><span style="color: blue">&gt;</span></pre>
        <p>
…
</p>
        <p>
 
</p>
        <p>
          <a href="http://11011.net/software/vspaste">
          </a>
        </p>
      </body>
      <title>Change Request length in IIS 7</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/02/07/ChangeRequestLengthInIIS7.aspx</link>
      <pubDate>Sun, 07 Feb 2010 00:18:00 GMT</pubDate>
      <description>&lt;p&gt;
Maximum request length matters when you want to allow upload/download of large files.
&lt;/p&gt;
&lt;p&gt;
This is one of the major change in IIS7. In previous version the default is 4MB, in
IIS7 its 28.6MB. So when you deploy your ASP.NET application you will see that it
will work for files larger than 4MB, but will give as soon as you cross the 28MB.
&lt;/p&gt;
&lt;p&gt;
In IIS 7, the attribute has been changed to maxAllowedContentLength and it has to
appear in &amp;lt;system.webServer&amp;gt; section (as for all IIS 7 settings). The complete
attribute will look something like this…
&lt;/p&gt;
&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;system.webServer&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: blue"&gt;
&lt;br&gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;security &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;requestFiltering&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;requestLimits &lt;/span&gt;&lt;span style="color: red"&gt;maxAllowedContentLength&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;3072000000&lt;/span&gt;" &lt;span style="color: blue"&gt;/&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;requestFiltering&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;security&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;
…
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</comments>
      <category>Coding</category>
      <category>WCF</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=63430cde-d51d-4c82-8a67-3ec0498ddb27</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,63430cde-d51d-4c82-8a67-3ec0498ddb27.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,63430cde-d51d-4c82-8a67-3ec0498ddb27.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=63430cde-d51d-4c82-8a67-3ec0498ddb27</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
When you are working with Active Directory the following may be useful,
</p>
        <p>
Import and export directory objects – <a href="http://www.computerperformance.co.uk/Logon/Logon_CSVDE_Home.htm" target="_blank">CSVDE</a> &amp; <a href="http://www.computerperformance.co.uk/Logon/Logon_LDIF.htm" target="_blank">LDIFDE</a><br />
ex: from the command prompt try CSVDE -f C:\Exportfile.csv<br />
more help is available in <a href="http://support.microsoft.com/kb/237677" target="_blank">this
KB article</a>.
</p>
        <p>
Another useful utility while working with Active directory and LDAP(Light Weight Directory
Access Protocol) is <a href="http://technet.microsoft.com/en-us/library/cc773354(WS.10).aspx" target="_blank">ADSI
Edit (adsiedit.msc)</a>. <a href="http://www.computerperformance.co.uk/w2k3/utilities/adsi_edit.htm" target="_blank">Nice
link</a> if you want to know in detail.
</p>
        <p>
Also found this interesting link with attributes and its description for AD Users. <a href="http://www.winzero.ca/Active-Directory-users.htm" target="_blank">see
here</a>. And check <a href="http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/" target="_blank">this
script</a> to list all User object attributes in active directory schema.
</p>
      </body>
      <title>Exporting Active Directory attributes</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,63430cde-d51d-4c82-8a67-3ec0498ddb27.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/01/10/ExportingActiveDirectoryAttributes.aspx</link>
      <pubDate>Sun, 10 Jan 2010 22:23:00 GMT</pubDate>
      <description>&lt;p&gt;
When you are working with Active Directory the following may be useful,
&lt;/p&gt;
&lt;p&gt;
Import and export directory objects – &lt;a href="http://www.computerperformance.co.uk/Logon/Logon_CSVDE_Home.htm" target="_blank"&gt;CSVDE&lt;/a&gt; &amp;amp; &lt;a href="http://www.computerperformance.co.uk/Logon/Logon_LDIF.htm" target="_blank"&gt;LDIFDE&lt;/a&gt;
&lt;br&gt;
ex: from the command prompt try CSVDE -f C:\Exportfile.csv&lt;br&gt;
more help is available in &lt;a href="http://support.microsoft.com/kb/237677" target="_blank"&gt;this
KB article&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Another useful utility while working with Active directory and LDAP(Light Weight Directory
Access Protocol) is &lt;a href="http://technet.microsoft.com/en-us/library/cc773354(WS.10).aspx" target="_blank"&gt;ADSI
Edit (adsiedit.msc)&lt;/a&gt;. &lt;a href="http://www.computerperformance.co.uk/w2k3/utilities/adsi_edit.htm" target="_blank"&gt;Nice
link&lt;/a&gt; if you want to know in detail.
&lt;/p&gt;
&lt;p&gt;
Also found this interesting link with attributes and its description for AD Users. &lt;a href="http://www.winzero.ca/Active-Directory-users.htm" target="_blank"&gt;see
here&lt;/a&gt;. And check &lt;a href="http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/" target="_blank"&gt;this
script&lt;/a&gt; to list all User object attributes in active directory schema.
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,63430cde-d51d-4c82-8a67-3ec0498ddb27.aspx</comments>
      <category>Coding</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=a1b30200-8959-4137-9419-caf961428798</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,a1b30200-8959-4137-9419-caf961428798.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,a1b30200-8959-4137-9419-caf961428798.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=a1b30200-8959-4137-9419-caf961428798</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
ADO.NET data provider for Oracle is dying. ADO.NET team has decided to kill(deprecate)
it in .NET 4.0. How sad isn’t it? Read more about the story on <a href="http://blogs.msdn.com/adonet/archive/2009/06/15/system-data-oracleclient-update.aspx" target="_blank">ADO.NET
team blog</a></p>
        <p>
Though sometimes I feel its unnecessary to have a duplicate copy of Oracle data provider.
Most of the people use ODP.NET or some other third party client. Nice comparison <a href="http://msdn.microsoft.com/en-us/library/ms971518.aspx" target="_blank">here</a> (and
that is why people don’t use .NET Oracle client :))
</p>
        <p>
One very bad thing I noticed about these providers is both of them need Oracle client
installed. For the MS provider(System.Data.OracleClient) the minimum requirement is
Oracle 8i Release 3 (8.1.7) Client or later. Check the requirement in detail here <a href="http://msdn.microsoft.com/en-us/library/2d7h4ycx.aspx" target="_blank">System
Requirements (Oracle).</a><br />
For the ODP.NET Oracle client version 9.2 or later.
</p>
        <p>
Its not always possible to install a large application like Oracle client in some
scenario, so there is an alternative without installing the Oracle client, use <a href="http://www.oracle.com/technology/tech/oci/instantclient/index.html" target="_blank">Oracle
Database Instant Client</a>. Just put Oracle Instant Client in the same folder as
your executable file.
</p>
        <p>
-Rujith
</p>
        <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:214bbe38-79b4-4114-940b-6a47b3b45a2d" class="wlWriterEditableSmartContent">Technorati
Tags: <a href="http://technorati.com/tags/Oracle" rel="tag">Oracle</a>,<a href="http://technorati.com/tags/ADO.NET" rel="tag">ADO.NET</a>,<a href="http://technorati.com/tags/Oracle+Data+Client" rel="tag">Oracle
Data Client</a>,<a href="http://technorati.com/tags/Oracle+Instant+client" rel="tag">Oracle
Instant client</a></div>
      </body>
      <title>System.Data.OracleClient is dying</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,a1b30200-8959-4137-9419-caf961428798.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2009/12/04/SystemDataOracleClientIsDying.aspx</link>
      <pubDate>Fri, 04 Dec 2009 15:58:00 GMT</pubDate>
      <description>&lt;p&gt;
ADO.NET data provider for Oracle is dying. ADO.NET team has decided to kill(deprecate)
it in .NET 4.0. How sad isn’t it? Read more about the story on &lt;a href="http://blogs.msdn.com/adonet/archive/2009/06/15/system-data-oracleclient-update.aspx" target="_blank"&gt;ADO.NET
team blog&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Though sometimes I feel its unnecessary to have a duplicate copy of Oracle data provider.
Most of the people use ODP.NET or some other third party client. Nice comparison &lt;a href="http://msdn.microsoft.com/en-us/library/ms971518.aspx" target="_blank"&gt;here&lt;/a&gt; (and
that is why people don’t use .NET Oracle client :))
&lt;/p&gt;
&lt;p&gt;
One very bad thing I noticed about these providers is both of them need Oracle client
installed. For the MS provider(System.Data.OracleClient) the minimum requirement is
Oracle 8i Release 3 (8.1.7) Client or later. Check the requirement in detail here &lt;a href="http://msdn.microsoft.com/en-us/library/2d7h4ycx.aspx" target="_blank"&gt;System
Requirements (Oracle).&lt;/a&gt;
&lt;br&gt;
For the ODP.NET Oracle client version 9.2 or later.
&lt;/p&gt;
&lt;p&gt;
Its not always possible to install a large application like Oracle client in some
scenario, so there is an alternative without installing the Oracle client, use &lt;a href="http://www.oracle.com/technology/tech/oci/instantclient/index.html" target="_blank"&gt;Oracle
Database Instant Client&lt;/a&gt;. Just put Oracle Instant Client in the same folder as
your executable file.
&lt;/p&gt;
&lt;p&gt;
-Rujith
&lt;/p&gt;
&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:214bbe38-79b4-4114-940b-6a47b3b45a2d" class="wlWriterEditableSmartContent"&gt;Technorati
Tags: &lt;a href="http://technorati.com/tags/Oracle" rel="tag"&gt;Oracle&lt;/a&gt;,&lt;a href="http://technorati.com/tags/ADO.NET" rel="tag"&gt;ADO.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Oracle+Data+Client" rel="tag"&gt;Oracle
Data Client&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Oracle+Instant+client" rel="tag"&gt;Oracle
Instant client&lt;/a&gt;
&lt;/div&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,a1b30200-8959-4137-9419-caf961428798.aspx</comments>
      <category>Coding</category>
      <category>Database</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=eb018d9e-c64c-45e2-a8c5-b479c376a6f9</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,eb018d9e-c64c-45e2-a8c5-b479c376a6f9.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,eb018d9e-c64c-45e2-a8c5-b479c376a6f9.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=eb018d9e-c64c-45e2-a8c5-b479c376a6f9</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
We all know that there are lot of chart tools for .NET, but most of the good ones
are not free.... now check <a title="Go to link" href="http://blogs.msdn.com/davidlean/archive/2009/04/20/free-chart-controls-for-net-windows-and-web-handy-links.aspx">this</a> out,
finally some of them from MS itself...
</p>
      </body>
      <title>Finally some good free charts for .NET from Microsoft</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,eb018d9e-c64c-45e2-a8c5-b479c376a6f9.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2009/01/24/FinallySomeGoodFreeChartsForNETFromMicrosoft.aspx</link>
      <pubDate>Sat, 24 Jan 2009 21:10:34 GMT</pubDate>
      <description>&lt;p&gt;
We all know that there are lot of chart tools for .NET, but most of the good ones
are not free.... now check &lt;a title="Go to link" href="http://blogs.msdn.com/davidlean/archive/2009/04/20/free-chart-controls-for-net-windows-and-web-handy-links.aspx"&gt;this&lt;/a&gt; out,
finally some of them from MS itself...
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,eb018d9e-c64c-45e2-a8c5-b479c376a6f9.aspx</comments>
      <category>Coding</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=a128f5a2-5d8c-4346-ac65-b5140b154ffd</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,a128f5a2-5d8c-4346-ac65-b5140b154ffd.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,a128f5a2-5d8c-4346-ac65-b5140b154ffd.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=a128f5a2-5d8c-4346-ac65-b5140b154ffd</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Found some nice guy sharing C# and VB.NET coding standards... might be useful when
you dont have enough time(usually never!) to create coding standards from scratch.
</p>
        <p>
check out Clint Edmonson's blog <a href="http://blogs.msdn.com/msftisvs/archive/2008/12/29/holiday-goodie-bag-free-c-and-vb-coding-standards-reference-documents.aspx">here</a></p>
        <p>
 
</p>
      </body>
      <title>Free C# and VB Coding Standards Reference Documents </title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,a128f5a2-5d8c-4346-ac65-b5140b154ffd.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2008/12/30/FreeCAndVBCodingStandardsReferenceDocuments.aspx</link>
      <pubDate>Tue, 30 Dec 2008 11:16:37 GMT</pubDate>
      <description>&lt;p&gt;
Found some nice guy sharing C# and VB.NET coding standards... might be useful when
you dont have enough time(usually never!)&amp;nbsp;to create coding standards from scratch.
&lt;/p&gt;
&lt;p&gt;
check out Clint Edmonson's blog &lt;a href="http://blogs.msdn.com/msftisvs/archive/2008/12/29/holiday-goodie-bag-free-c-and-vb-coding-standards-reference-documents.aspx"&gt;here&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,a128f5a2-5d8c-4346-ac65-b5140b154ffd.aspx</comments>
      <category>Coding</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=f1af6b90-a7a5-4773-adcd-b61c83787f36</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,f1af6b90-a7a5-4773-adcd-b61c83787f36.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,f1af6b90-a7a5-4773-adcd-b61c83787f36.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=f1af6b90-a7a5-4773-adcd-b61c83787f36</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you have worked with strongly typed dataset, it is very likely that you must have
faced this annoying exception regularly. The error message will be something like
this.
</p>
        <blockquote>
          <p>
The value for column \'ColumnName\' in table \'TableName\' is DBNull.
</p>
          <p>
With exception type : System.Data.StrongTypingException
</p>
        </blockquote>
        <p>
Well that's a typical message ain't it ? But interesting part is, if you see the property
code in the dataset class it will similar to 
</p>
        <pre class="csharpcode">
          <pre>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">get
{ <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">try</span> { <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">return</span> ((global::System.String)(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">this</span>[<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">this</span>.tableName.Column]));
} <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">catch</span> (global::System.InvalidCastException
e) { <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">throw</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> global::System.Data.StrongTypingException(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"The
value for column \'Column\' </span></span>
          </pre>
          <pre>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
              <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">                                 in
table \'TableName\' is DBNull."</span>, e); } } set { <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">this</span>[<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">this</span>.TableName.Column] <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> value;
} </span>
          </pre>
          <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
          <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        </pre>
        <p>
Now from the code you can see that, if you are thinking of comparing the field with
Dbnull or null or some value still it will give the error. It is a InvalidCast exception. 
</p>
        <p>
There is a simple method to solve this issue, when you use the xsd.exe(or VS IDE)
to generate the dataset class give a value for the 'null value'
</p>
        <p>
This is how you do it.
</p>
        <p>
1. Add codegen namespace in the scheme
</p>
        <blockquote>
          <p>
In the xsd file(schema) add the below line to add the namespace immediately after
targetnamespace
</p>
          <pre class="csharpcode">xmlns:codegen="urn:schemas-microsoft-com:xml-msprop</pre>
        </blockquote>
        <p>
2. Add the 'null value' to the elements you want to protect from this error.
</p>
        <p>
for ex :
</p>
        <pre class="csharpcode">
          <span class="kwrd">&lt;</span>
          <span class="html">xs:element</span>
          <span class="attr">name</span>
          <span class="kwrd">="Column1"</span>
          <strong>
            <span class="attr">codegen:nullValue</span>
            <span class="kwrd">="-1"</span>
          </strong>
          <span class="attr">type</span>
          <span class="kwrd">="xs:string"</span>
          <span class="attr">minOccurs</span>
          <span class="kwrd">="0"</span>
          <span class="kwrd">/&gt;</span>
        </pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <p>
The bold attribute sets the nullvalue.
</p>
        <p>
 
</p>
        <p>
Thats it, then generate your typed dataset, and you will no longer have the weird
exception.
</p>
        <p>
If you really dont want to touch the xsd, there is another way of getting rid of this,
the dataset class gives a method 'IsColumnNull', use this method in your code to check
if its null :)
</p>
        <p>
The above information is extracted from <a title="318048" href="http://support.microsoft.com/kb/318048">MS
KB article</a></p>
        <p>
 
</p>
        <p>
Keep strong typing :)
</p>
        <p>
-Rujith <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style></p>
      </body>
      <title>Typed dataset System.Data.StrongTypingException</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,f1af6b90-a7a5-4773-adcd-b61c83787f36.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2008/05/17/TypedDatasetSystemDataStrongTypingException.aspx</link>
      <pubDate>Sat, 17 May 2008 13:21:57 GMT</pubDate>
      <description>&lt;p&gt;
If you have worked with strongly typed dataset, it is very likely that you must have
faced this annoying exception regularly. The error message will be something like
this.
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
The value for column \'ColumnName\' in table \'TableName\' is DBNull.
&lt;/p&gt;
&lt;p&gt;
With exception type : System.Data.StrongTypingException
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
Well that's a typical message ain't it ? But interesting part is, if you see the property
code in the dataset class it will similar to 
&lt;/p&gt;
&lt;pre class=csharpcode&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;get
{ &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: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;return&lt;/span&gt; ((global::System.String)(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;this&lt;/span&gt;[&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;this&lt;/span&gt;.tableName.Column]));
} &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;catch&lt;/span&gt; (global::System.InvalidCastException
e) { &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; global::System.Data.StrongTypingException(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"The
value for column \'Column\' &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;in
table \'TableName\' is DBNull."&lt;/span&gt;, e); } } set { &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;this&lt;/span&gt;[&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;this&lt;/span&gt;.TableName.Column] &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; value;
} &lt;/span&gt;&lt;/pre&gt;
&lt;style type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;style type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;/pre&gt;
&lt;p&gt;
Now from the code you can see that, if you are thinking of comparing the field with
Dbnull or null or some value still it will give the error. It is a InvalidCast exception. 
&lt;/p&gt;
&lt;p&gt;
There is a simple method to solve this issue, when you use the xsd.exe(or VS IDE)
to generate the dataset class give a value for the 'null value'
&lt;/p&gt;
&lt;p&gt;
This is how you do it.
&lt;/p&gt;
&lt;p&gt;
1. Add codegen namespace in the scheme
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
In the xsd file(schema) add the below line to add the namespace immediately after
targetnamespace
&lt;/p&gt;
&lt;pre class=csharpcode&gt;xmlns:codegen="urn:schemas-microsoft-com:xml-msprop&lt;/pre&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
2. Add the 'null value' to the elements you want to protect from this error.
&lt;/p&gt;
&lt;p&gt;
for ex :
&lt;/p&gt;
&lt;pre class=csharpcode&gt;&lt;span class=kwrd&gt;&amp;lt;&lt;/span&gt;&lt;span class=html&gt;xs:element&lt;/span&gt; &lt;span class=attr&gt;name&lt;/span&gt;&lt;span class=kwrd&gt;="Column1"&lt;/span&gt; &lt;strong&gt;&lt;span class=attr&gt;codegen:nullValue&lt;/span&gt;&lt;span class=kwrd&gt;="-1"&lt;/span&gt;&lt;/strong&gt; &lt;span class=attr&gt;type&lt;/span&gt;&lt;span class=kwrd&gt;="xs:string"&lt;/span&gt; &lt;span class=attr&gt;minOccurs&lt;/span&gt;&lt;span class=kwrd&gt;="0"&lt;/span&gt; &lt;span class=kwrd&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;style type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;p&gt;
The bold attribute sets the nullvalue.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Thats it, then generate your typed dataset, and you will no longer have the weird
exception.
&lt;/p&gt;
&lt;p&gt;
If you really dont want to touch the xsd, there is another way of getting rid of this,
the dataset class gives a method 'IsColumnNull', use this method in your code to check
if its null :)
&lt;/p&gt;
&lt;p&gt;
The above information is extracted from &lt;a title=318048 href="http://support.microsoft.com/kb/318048"&gt;MS
KB article&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Keep strong typing :)
&lt;/p&gt;
&lt;p&gt;
-Rujith &lt;style type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,f1af6b90-a7a5-4773-adcd-b61c83787f36.aspx</comments>
      <category>Coding</category>
    </item>
  </channel>
</rss>