<?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>Thu, 12 Aug 2010 15:17:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Jquery Rich Array Documentation</title>
		<link>http://www.sharpdeveloper.net/content/archive/2010/04/30/jquery-rich-array-documentation.aspx</link>
		<comments>http://www.sharpdeveloper.net/content/archive/2010/04/30/jquery-rich-array-documentation.aspx#comments</comments>
		<pubDate>Fri, 30 Apr 2010 20:54:12 +0000</pubDate>
		<dc:creator>Sameer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdeveloper.net/content/?p=538</guid>
		<description><![CDATA[If you want to use the JQuery Rich Array and you were hoping for some documentation, well its inside the .JS file but I am posting it here for reference purposes /*************************************************************************** * Copyright (C) 2007 by Vladimir Kadalashvili * * Vladimir.Kadalashvili@gmail.com * * * * This program is free software; you can redistribute it [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to use the JQuery Rich Array and you were hoping for some documentation, well its inside the .JS file but I am posting it here for reference purposes</p>
<pre class="brush: js">
/***************************************************************************
 *   Copyright (C) 2007 by Vladimir Kadalashvili                                        *
 *   Vladimir.Kadalashvili@gmail.com                                                   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

/*
A simple jQuery plugin for varios manipulations with arrays
*/ 

jQuery.richArray = {

    /*
        Checks whether an array contains some value
	@param {Array} array - an array in which we search for a value
	@param {Mixed} value - the value we search for
	@return {boolean} true if the array contains the value, otherwise false
    */

    in: function(array, value) {
    },

    /*
        Produces the duplicate-free version of the array
	@param {Array} array
	@returns {array}  - an array without duplicates
    */
    unique: function(array) {

    },

    /*
        Finds the difference between two arrays.
	@param {Array} array1
	@param {Array} array2
	@return {Array} array of values which are present in the first array, but not in the second
    */

    diff: function(array1, array2) {

    },

    /*
        Finds the intersection of two arrays
	@param {Array} array1
	@param {Array} array2
	@return {Array} - the array of values wich are present in both arrays
    */

    intersect: function(array1, array2) {

    },

    /*
        Applies filter to the array, using callback function
	@param {Array} array - an array which we apply filter to
	@param {Function} fn - the filter function. If it returns the value that may be evaluated as TRUE, the value will be included to the returned array.
	@param {Object} scope - the scope of the callback function. Default is jQuery.richArray
	@returns {Array} - an array of values for which callback function returned true
    */

    filter: function(array, fn, scope) {

    },

    /*
        Applies callback function for each element in the input array, and returns array of values that this function returned
	@param {Array} array - an array which we should apply callback to
	@param {Function} fn - callback function
	@param scope - the scope of the callback function. Default is jQuery.richArray
    */
    map: function(array, fn, scope) {
    },

    /*
        Computes the sum of all array elements.
	@param {Array} array - an array we should compute the sum for
	@param {Mixed} init - the initial value of the sum. Default is 0.
	@returns {Mixed} the sum of all elements of the input array
    */

    sum: function(array, init) {
    },

    /*
        Calculates the production of all elements of the array
	@param array - an array we should compute production for
	@param init - the initial value. Default is 1.
	@returns {Mixed} - the production of all elements of the input array
    */

    product: function(array, init) {
    },

    /*
        Reduces the array. One-elemen arrays are turned into their unique element, others are retured untouched
	Examples:
	jQuery.richArray.reduce([3]) -&gt; 3
	jQuery.richArray.reduce([3, 5]) -&gt; [3, 5]
    */

    reduce: function(array) {
    },

    /*
        Creates new version of array without null/undefined values
	@param {Array} array - input array
	@returns {Array} - an array without null/undefined values
    */

    compact: function(array) {
    },

    /*
       Creates a new version of the array that doesn&#039;t contain the specified value
       @patam {Array} array - input array
       @param {Mixed} value - the value that shouldn&#039;t be included to the returned array
       @returns {Array} - a new version of the input array without specified value
    */

    without: function(array, value) {
    },

    /*
        If the passed argument is an array, returns it untouched, otherwise returns an empty array.
	For internal use.
    */

    getArray: function(array) {
    },

    /*
        if the passed argument is a function, returns it untouched, otherwise returns an empty function
   */

    getFunction: function(fn) {
        if (!(fn instanceof Function)) fn = new Function();
	return fn;
    }    

};
</pre>
<p>Homepage: <a href="http://vladimir-k.blogspot.com/2008/12/rich-array-jquery-plugin.html">Jquery Rich Array Plugin</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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.sharpdeveloper.net/content/archive/2010/04/30/jquery-rich-array-documentation.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[Here is a code snippet that will COMPLETELY disable ViewState and ControlState. 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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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[I think this is a classic post that everyone should read: The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse Other Interesting PostsPHP VS. ASP.NETCreating SqlParameters Best PracticesAre You a Sharp Developer?? (Part 1)]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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[If you read Creating SqlParameters Best Practices you will find the fun you have if you have null values: 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) }; Here is a nice helper function to deal with nulls without having to manually check [...]]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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[Here is a list of new features in ASP.NET 4.0. Very interesting. Auto start feature, new ways to choose where data is cached, built in option for compression session (via gzip), and more! Other Interesting PostsPHP VS. ASP.NETCreating SqlParameters Best PracticesAre You a Sharp Developer?? (Part 1)]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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[Wow, sweet. Use .NET 3.5 features in .NET 2.0. A quick overview how to do it. 1. Edit your .CSPROJ file and manually add another reference to System.Core Add a True This will make the compiler copy it to the BIN folder. Thats it. You can now use .NET 3.5 features Other Interesting PostsPHP VS. [...]]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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[When using SQL Server Management Studio you might want to copy data from one DB to another (using just a SELECT and INSERT statement) It&#8217;s so easy you won&#8217;t believe it 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 and when you are done sp_dropserver [192.168.123.456] References: sp_addlinkedserver on MSDN [...]]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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>2</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[hnc.cgi is a spam script. Its also known as dm.cgi. If you have this script running, chances are your server has been exploited. Here is the actual dm.cgi script if you want to see it. Other Interesting PostsPHP VS. ASP.NETCreating SqlParameters Best PracticesAre You a Sharp Developer?? (Part 1)]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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>0</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[Before and After If you manually want to simulate a postback, Here is how you would stick together a string manually calling __doPostBack in .NET 1.1 In this case its making a link in a particular linkbutton control inside a datagrid. __doPostBack in .NET 1.0 string link = &#34;&#60;a href=\&#34;javascript:__doPostBack(&#039;dataGridCart$_ctl&#34; + i + &#34;$linkButton&#039;,&#039;&#039;);\&#34;&#34;; __doPostBack [...]]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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[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. How we track flu trends (Google [...]]]></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/07/11/what-makes-a-sharp-developer-part-1.aspx" title="Are You a Sharp Developer?? (Part 1)">Are You a Sharp Developer?? (Part 1)</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>
