<?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>SharpDeveloper &#187; Uncategorized</title>
	<atom:link href="http://www.sharpdeveloper.net/content/archive/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sharpdeveloper.net/content</link>
	<description>C# articles and tutorials on SharpDeveloper.NET</description>
	<lastBuildDate>Sun, 09 Oct 2011 17:09:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Allow Visual Studio to use more memory in 32bit windows</title>
		<link>http://www.sharpdeveloper.net/content/archive/2011/01/21/allow-visual-studio-to-use-more-memory-in-32bit-windows.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2011/01/21/allow-visual-studio-to-use-more-memory-in-32bit-windows.aspx#comments</comments>
		<pubDate>Fri, 21 Jan 2011 17:23:36 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=558</guid>
		<description><![CDATA[<p>Read this excellent guide on <a href="http://stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx">increasing the total memory Visual Studio can use</a>, even in 32bit windows</p> Other Interesting Posts<a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a>]]></description>
			<content:encoded><![CDATA[<p>Read this excellent guide on <a href="http://stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx">increasing the total memory Visual Studio can use</a>, even in 32bit windows</p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2011/01/21/allow-visual-studio-to-use-more-memory-in-32bit-windows.aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to completely disable ViewState and ControlState</title>
		<link>http://www.sharpdeveloper.net/content/archive/2010/04/21/how-to-completely-disable-viewstate-and-controlstate.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2010/04/21/how-to-completely-disable-viewstate-and-controlstate.aspx#comments</comments>
		<pubDate>Wed, 21 Apr 2010 21:25:29 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=525</guid>
		<description><![CDATA[<p>Here is a code snippet that will COMPLETELY disable ViewState and ControlState.</p> <p>Please note, if you want to disable viewstate, you can set &#8220;EnableViewState&#8221; to false for the page, however you will still see &#8220;VIEWSTATE&#8221; in the page. The reason for that is because the hidden ViewState HTML field also contains &#8220;Control State&#8221;, which is [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a code snippet that will COMPLETELY disable ViewState and ControlState.</p>
<p>Please note, if you want to disable viewstate, you can set &#8220;EnableViewState&#8221; to false for the page, however you will still see &#8220;VIEWSTATE&#8221; in the page.  The reason for that is because the hidden ViewState HTML field also contains &#8220;Control State&#8221;, which is used by server controls (either built in controls or custom 3rd party controls) and is not disable-able (for core functionality that their control depends on).</p>
<p>However you can still disable this, with disastrous consequences on postback.</p>
<p>USE THIS only if you have NO POSTBACKS whatsoever and you are living in a happy client side world of javascript and web service calls.</p>
<p>Put this following code inside your ASP.NET page</p>
<pre class="brush: c#">
private class DummyPageStatePersister  <img src='http://www.sharpdeveloper.net/content/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ageStatePersister
{
    public DummyPageStatePersister(Page p) : base(p) { }
    public override void Load() { }
    public override void Save() { }
}

private DummyPageStatePersister _PageStatePersister;
protected override PageStatePersister PageStatePersister
{
    get
    {
        if (_PageStatePersister == null)
            _PageStatePersister = new DummyPageStatePersister(this);
        return _PageStatePersister;
    }
}
</pre>
<p>Please note this will has disastrous consequences if you attempt to do a postback because you have essentially killed the control state.</p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2010/04/21/how-to-completely-disable-viewstate-and-controlstate.aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse</title>
		<link>http://www.sharpdeveloper.net/content/archive/2009/08/07/the-most-useful-net-utility-classes-developers-tend-to-reinvent-rather-than-reuse.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2009/08/07/the-most-useful-net-utility-classes-developers-tend-to-reinvent-rather-than-reuse.aspx#comments</comments>
		<pubDate>Fri, 07 Aug 2009 15:36:18 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=496</guid>
		<description><![CDATA[<p>I think this is a classic post that everyone should read: </p> <p><a href="http://haacked.com/archive/2007/06/13/the-most-useful-.net-utility-classes-developers-tend-to-reinvent.aspx">The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse</a></p> Other Interesting Posts<a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database [...]]]></description>
			<content:encoded><![CDATA[<p>I think this is a classic post that everyone should read: </p>
<p><a href="http://haacked.com/archive/2007/06/13/the-most-useful-.net-utility-classes-developers-tend-to-reinvent.aspx">The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse</a></p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2009/08/07/the-most-useful-net-utility-classes-developers-tend-to-reinvent-rather-than-reuse.aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Annoying Nulls in SQLParameters</title>
		<link>http://www.sharpdeveloper.net/content/archive/2009/08/07/annoying-nulls-in-sqlparameters.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2009/08/07/annoying-nulls-in-sqlparameters.aspx#comments</comments>
		<pubDate>Fri, 07 Aug 2009 14:16:38 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=485</guid>
		<description><![CDATA[<p>If you read <a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx">Creating SqlParameters Best Practices</a> you will find the fun you have if you have null values:</p> SqlParameter[] sqlParams = new SqlParameter[] { new SqlParameter(&#34;@Required&#34;, required), questionCode == null ? new SqlParameter(&#34;@Code&#34;, DBNull.Value) : new SqlParameter(&#34;@Code&#34;, questionCode) }; <p>Here is a nice helper function to deal with nulls without having to manually [...]]]></description>
			<content:encoded><![CDATA[<p>If you read <a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx">Creating SqlParameters Best Practices</a> you will find the fun you have if you have null values:</p>
<pre class="brush: c#">
SqlParameter[] sqlParams = new SqlParameter[] {
  new SqlParameter(&quot;@Required&quot;, required),
  questionCode == null ? new SqlParameter(&quot;@Code&quot;, DBNull.Value) : new SqlParameter(&quot;@Code&quot;, questionCode)
};
</pre>
<p>Here is a nice helper function to deal with nulls without having to manually check every time.</p>
<pre class="brush: c#">
        /// &lt;summary&gt;
        /// Return a SqlParameter with DBNull value or value
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;key&quot;&gt;&lt;/param&gt;
        /// &lt;param name=&quot;value&quot;&gt;&lt;/param&gt;
        /// &lt;returns&gt;&lt;/returns&gt;
        public static SqlParameter NullWrapper(string key, object value)
        {
            if (value == null)
                return new SqlParameter(key, DBNull.Value);
            else
                return new SqlParameter(key, value);
        }
</pre>
<p>Then you can use it as follows</p>
<pre class="brush: c#">
            SqlParameter[] sqlParams = new SqlParameter[] {
                new SqlParameter(&quot;@UserID&quot;, userId),
                new SqlParameter(&quot;@itemNo&quot;, itemNo),
                General.NullWrapper(&quot;@expiryDate&quot;, expiryDate) //no need to check if null any more
            };
</pre>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2009/08/07/annoying-nulls-in-sqlparameters.aspx/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ASP.NET 4.0 Features</title>
		<link>http://www.sharpdeveloper.net/content/archive/2009/05/27/aspnet-40-features.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2009/05/27/aspnet-40-features.aspx#comments</comments>
		<pubDate>Wed, 27 May 2009 14:37:00 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=470</guid>
		<description><![CDATA[<p>Here is a list of <a href="http://www.asp.net/learn/whitepapers/aspnet40/">new features in ASP.NET 4.0</a>.</p> <p>Very interesting. Auto start feature, new ways to choose where data is cached, built in option for compression session (via gzip), and more!</p> Other Interesting Posts<a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of <a href="http://www.asp.net/learn/whitepapers/aspnet40/">new features in ASP.NET 4.0</a>.</p>
<p>Very interesting.  Auto start feature, new ways to choose where data is cached, built in option for compression session (via gzip), and more!</p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2009/05/27/aspnet-40-features.aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write .NET 3.5 in a .NET 2.0 World</title>
		<link>http://www.sharpdeveloper.net/content/archive/2009/04/02/write-net-35-in-a-net-20-world.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2009/04/02/write-net-35-in-a-net-20-world.aspx#comments</comments>
		<pubDate>Thu, 02 Apr 2009 14:16:23 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=464</guid>
		<description><![CDATA[<p>Wow, sweet. <a href="http://abdullin.com/how-to-use-net-35-syntax-and-compiler-features-for-net-20/">Use .NET 3.5 features in .NET 2.0</a>.</p> <p>A quick overview how to do it.<br /> 1. Edit your .CSPROJ file and manually add another reference to System.Core<br /> Add a True</p> <p>This will make the compiler copy it to the BIN folder. </p> <p>Thats it. You can now use .NET 3.5 features</p> [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, sweet.  <a href="http://abdullin.com/how-to-use-net-35-syntax-and-compiler-features-for-net-20/">Use .NET 3.5 features in .NET 2.0</a>.</p>
<p>A quick overview how to do it.<br />
1.  Edit your .CSPROJ file and manually add another reference to System.Core<br />
Add a <Private>True</Private></p>
<p>This will make the compiler copy it to the BIN folder.  </p>
<p>Thats it.  You can now use .NET 3.5 features</p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2009/04/02/write-net-35-in-a-net-20-world.aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy Data from One SQL Instance to Another</title>
		<link>http://www.sharpdeveloper.net/content/archive/2009/02/03/copy-data-from-one-sql-instance-to-another.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2009/02/03/copy-data-from-one-sql-instance-to-another.aspx#comments</comments>
		<pubDate>Tue, 03 Feb 2009 15:52:00 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=455</guid>
		<description><![CDATA[<p>When using SQL Server Management Studio you might want to copy data from one DB to another (using just a SELECT and INSERT statement)</p> <p>It&#8217;s so easy you won&#8217;t believe it</p> sp_addlinkedserver @server=&#039;192.168.123.456&#039;, @provider=&#039;SQLNCLI&#039;,    @srvproduct=&#039;&#039;,@provstr=&#039;User Id=sa; Password=are-you-crazy-to-use-sa&#039; insert into [192.168.123.456].MYDB.dbo.tblRecords select * from MYDB.dbo.tblRecords <p>and when you are done</p> sp_dropserver [192.168.123.456] <p>References:<br /> <a href="http://msdn.microsoft.com/en-us/library/ms190479.aspx">sp_addlinkedserver [...]]]></description>
			<content:encoded><![CDATA[<p>When using SQL Server Management Studio you might want to copy data from one DB to another (using just a SELECT and INSERT statement)</p>
<p>It&#8217;s so easy you won&#8217;t believe it</p>
<pre class="brush: sql">
sp_addlinkedserver @server=&#039;192.168.123.456&#039;, @provider=&#039;SQLNCLI&#039;,    @srvproduct=&#039;&#039;,@provstr=&#039;User Id=sa; Password=are-you-crazy-to-use-sa&#039;

insert into [192.168.123.456].MYDB.dbo.tblRecords

select * from MYDB.dbo.tblRecords
</pre>
<p>and when you are done</p>
<pre class="brush: sql">
sp_dropserver  [192.168.123.456]
</pre>
<p>References:<br />
<a href="http://msdn.microsoft.com/en-us/library/ms190479.aspx">sp_addlinkedserver on MSDN</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms174310.aspx">sp_dropserver on MSDN</a></p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2009/02/03/copy-data-from-one-sql-instance-to-another.aspx/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>What is hnc.cgi ?</title>
		<link>http://www.sharpdeveloper.net/content/archive/2008/12/13/what-is-hnccgi.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2008/12/13/what-is-hnccgi.aspx#comments</comments>
		<pubDate>Sat, 13 Dec 2008 23:50:14 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=451</guid>
		<description><![CDATA[<p>hnc.cgi is a spam script. Its also known as <a href="http://en.wikipedia.org/wiki/Dark_Mailer">dm.cgi</a>. </p> <p>If you have this script running, chances are your server has been exploited.</p> <p>Here is the <a href="http://forums.digitalpoint.com/attachment.php?attachmentid=21541&#038;d=1225215308">actual dm.cgi script</a> if you want to see it.</p> Other Interesting Posts<a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a><a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>hnc.cgi</strong> is a spam script.  Its also known as <a href="http://en.wikipedia.org/wiki/Dark_Mailer">dm.cgi</a>.   </p>
<p>If you have this script running, chances are your server has been exploited.</p>
<p>Here is the <a href="http://forums.digitalpoint.com/attachment.php?attachmentid=21541&#038;d=1225215308">actual dm.cgi script</a> if you want to see it.</p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2008/12/13/what-is-hnccgi.aspx/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changes in __doPostback in .NET 1.1 to .NET 2.0</title>
		<link>http://www.sharpdeveloper.net/content/archive/2008/11/27/changes-in-__dopostback-in-net-11-to-net-20.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2008/11/27/changes-in-__dopostback-in-net-11-to-net-20.aspx#comments</comments>
		<pubDate>Thu, 27 Nov 2008 23:03:46 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=441</guid>
		<description><![CDATA[<p>Before and After</p> <p>If you manually want to simulate a postback, Here is how you would stick together a string manually calling __doPostBack in .NET 1.1<br /> In this case its making a link in a particular linkbutton control inside a datagrid.</p> <p>__doPostBack in .NET 1.0</p> string link = &#34;&#60;a href=\&#34;javascript:__doPostBack(&#039;dataGridCart$_ctl&#34; + i + &#34;$linkButton&#039;,&#039;&#039;);\&#34;&#34;; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Before and After</strong></p>
<p>If you manually want to simulate a postback, Here is how you would stick together a string manually calling __doPostBack in .NET 1.1<br />
In this case its making a link in a particular linkbutton control inside a datagrid.</p>
<p><strong>__doPostBack in .NET 1.0</strong></p>
<pre class="brush: c#">
string link = &quot;&lt;a href=\&quot;javascript:__doPostBack(&#039;dataGridCart$_ctl&quot; + i + &quot;$linkButton&#039;,&#039;&#039;);\&quot;&quot;;
</pre>
<p><strong>__doPostBack in .NET 2.0</strong></p>
<pre class="brush: c#">
string link = &quot;&lt;a href=\&quot;javascript:__doPostBack(&#039;dataGridCart$ctl0&quot; + i + &quot;$linkButton&#039;,&#039;&#039;);\&quot;&quot;;
</pre>
<p>Dont use this function any more.  Use  <strong>Page.GetPostBackClientHyperlink </strong>from .NET 2.0+.  This is because they might change __doPostBack yet again and your code will be broken.</p>
<p>Look at the comment thread on <a href="http://www.codeproject.com/KB/webforms/dgrowselect.aspx">this codeproject article</a> for more details</p>
<p>Further reading: <a href="http://microsoft.apress.com/asptodayarchive/73961/dopostback-hijacking">Do Postback Hijacking</a></p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2008/11/27/changes-in-__dopostback-in-net-11-to-net-20.aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracking Influenza (flu) with Google Trends</title>
		<link>http://www.sharpdeveloper.net/content/archive/2008/11/13/tracking-influenza-flu-with-google-trends.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2008/11/13/tracking-influenza-flu-with-google-trends.aspx#comments</comments>
		<pubDate>Thu, 13 Nov 2008 14:02:58 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=437</guid>
		<description><![CDATA[<p>This is quite an astonishing use of Google Trends.  Google realized that when people get sick they (obviously) search for flu related keywords and they managed to find a correlation to actual published flu infection statistics.  Quite amazing and this is definately a unique and interesting application of technology.</p> <p><a href="http://googleblog.blogspot.com/2008/11/how-we-help-track-flu-trends.html">How we track flu trends [...]]]></description>
			<content:encoded><![CDATA[<p>This is quite an astonishing use of Google Trends.  Google realized that when people get sick they (obviously) search for flu related keywords and they managed to find a correlation to actual published flu infection statistics.  Quite amazing and this is definately a unique and interesting application of technology.</p>
<p><a href="http://googleblog.blogspot.com/2008/11/how-we-help-track-flu-trends.html">How we track flu trends (Google blog)</a><br />
Here is an explanation of <a href="http://www.google.org/about/flutrends/how.html">how it works</a></p>
<p>What other ideas can we apply this to?</p>
<h3  class="related_post_title">Other Interesting Posts</h3><ul class="related_post"><li><a href="http://www.sharpdeveloper.net/content/archive/2008/05/08/php-vs-aspnet.aspx" title="PHP VS. ASP.NET">PHP VS. ASP.NET</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/05/25/creating-sqlparameters-best-practices.aspx" title="Creating SqlParameters Best Practices">Creating SqlParameters Best Practices</a></li><li><a href="http://www.sharpdeveloper.net/content/archive/2007/06/15/creating-maintainable-database-queries-in-c-with-source-code.aspx" title="Creating Maintainable Database Queries In C# (with source code)">Creating Maintainable Database Queries In C# (with source code)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2008/11/13/tracking-influenza-flu-with-google-trends.aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

