<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ramani Sandeep&#039;s Blog</title>
	<atom:link href="http://ramanisandeep.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramanisandeep.wordpress.com</link>
	<description>DotNetting - Fast , Easy Way of Developing Applications</description>
	<lastBuildDate>Fri, 27 Nov 2009 12:53:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ramanisandeep.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ce733b90c7daf4f0c385a904fda5b532?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ramani Sandeep&#039;s Blog</title>
		<link>http://ramanisandeep.wordpress.com</link>
	</image>
			<item>
		<title>Hide/Change Sort expression link in gridview</title>
		<link>http://ramanisandeep.wordpress.com/2009/11/27/hidechange-sort-expression-link-in-gridview/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/11/27/hidechange-sort-expression-link-in-gridview/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 10:23:15 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Gridview]]></category>
		<category><![CDATA[Gridview Sorting]]></category>
		<category><![CDATA[gridview sorting in asp.net]]></category>
		<category><![CDATA[Hide/Change Sort expression link in gridview]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/11/27/hidechange-sort-expression-link-in-gridview/</guid>
		<description><![CDATA[Today I was reading www.asp.net forums for some Q/A  &#38; I found one interesting Query regarding Gridview sorting. So I feel that let me share it with others also.
Query Posted by Kamran Shahid
I am using built in sorting in gridview. The links on the headers column shows like
javascript:__doPostBack(&#8216;GridView1&#8242;,&#8217;Sort$au_fname&#8217;) 
Is tehre any way I can change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=621&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I was reading www.asp.net forums for some Q/A  &amp; I found one interesting Query regarding Gridview sorting. So I feel that let me share it with others also.</p>
<p><span style="color:#008080;"><strong>Query Posted by Kamran Shahid</strong></span></p>
<p style="padding-left:30px;">I am using built in sorting in gridview. The links on the headers column shows like</p>
<p style="padding-left:30px;"><em>javascript:__doPostBack(&#8216;GridView1&#8242;,&#8217;Sort$au_fname&#8217;) </em></p>
<p style="padding-left:30px;">Is tehre any way I can change the display of that link like for example it may show # or au_fname only.</p>
<p><span style="color:#008080;"><strong>Solutions by Imran Baloch </strong></span></p>
<p><span style="color:#003366;"><strong>With JQuery</strong></span></p>
<pre class="brush: jscript;">
&lt;script language=&quot;javascript&quot;&gt;
$(function(){
    $(&quot;a[href]&quot;).each(function(n){
        if(this.href.indexOf(&quot;GridView1&quot;)&gt;-1)
        {
            var a=this.href;
            this.href=&quot;#&quot;;
            $(this).click(function(event){
                this.href=a;
            });
        }
    });
});
&lt;/script&gt;
</pre>
<p><span style="color:#003366;"><strong>Without JQuery</strong></span></p>
<pre class="brush: jscript;">
&lt;script language=&quot;javascript&quot;&gt;
 var tags = document.getElementsByTagName('a');
 for (var i=0; i &lt; tags.length; i++)
 {
      if(tags[i].href.indexOf(&quot;GridView1&quot;)&gt;-1)
      {
            tags[i].custom1=tags[i].href;
            tags[i].href=&quot;#&quot;;
            tags[i].onclick=function(event){
                alert(this.custom1);
                thisthis.href=this.custom1;
            }
      }
 }
&lt;/script&gt;  
</pre>
<p>Hope this will help !!!</p>
<p>Happy Programming</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=621&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/11/27/hidechange-sort-expression-link-in-gridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Firebug like tool for IE , Safari &amp; Crome</title>
		<link>http://ramanisandeep.wordpress.com/2009/11/20/firebug-like-tool-for-ie-safari-crome/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/11/20/firebug-like-tool-for-ie-safari-crome/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 16:25:31 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[Mics]]></category>
		<category><![CDATA[firebug for chrome]]></category>
		<category><![CDATA[firebug for safari]]></category>
		<category><![CDATA[firebug like tool for ie]]></category>
		<category><![CDATA[firebug like tool for internet explorer]]></category>
		<category><![CDATA[Internet Explorer Developer Toolbar]]></category>
		<category><![CDATA[Web Inspector]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/11/20/firebug-like-tool-for-ie-safari-crome/</guid>
		<description><![CDATA[I always use firebug in firefox to check my web pages while developing my applications. I became use to of that. So I thought there must be some tool for IE also. So I googled on that and I came to know that IE Developer Toolbar is the tool that I works like firebug.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=619&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I always use firebug in firefox to check my web pages while developing my applications. I became use to of that. So I thought there must be some tool for IE also. So I googled on that and I came to know that <strong>IE Developer Toolbar</strong> is the tool that I works like firebug.    </p>
<p>Download link : <a href="https://www.microsoft.com/downloads/thankyou.aspx?familyId=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displayLang=en" target="_blank">here</a></p>
<p>Same way I have searched Tools that work like Firebug on Crome &amp; Safari. I have found that Web Inspector can help me to do so.</p>
<p><strong>Web Inspector</strong></p>
<p>The Web Inspector allows you to view the page source, live DOM hierarchy, script debugging, profiling and more!</p>
<p>•&#160;&#160;&#160; Safari — Enable the Develop menu option in the Advanced preferences. Use the optional toolbar button, Develop menu or Inspect Element context menu to access to Web Inspector. </p>
<p>•&#160;&#160;&#160; Google Chrome — Enabled by default, use the Inspect Element context menu to access to Web Inspector.     </p>
<p>For download &amp; more info : <a href="http://trac.webkit.org/wiki/WebInspector" target="_blank">here</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/619/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=619&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/11/20/firebug-like-tool-for-ie-safari-crome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Service Vs WCF</title>
		<link>http://ramanisandeep.wordpress.com/2009/11/12/web-service-vs-wcf/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/11/12/web-service-vs-wcf/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 16:11:41 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[WCF]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[ASMX Vs WCF]]></category>
		<category><![CDATA[WCF Vs ASMX]]></category>
		<category><![CDATA[WCF vs Web Services]]></category>
		<category><![CDATA[Web Services vs WCF]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/11/12/web-service-vs-wcf/</guid>
		<description><![CDATA[Introduction
ASP.NET Web services were developed for building applications that send and receive messages by using the Simple Object Access Protocol (SOAP) over HTTP. The structure of the messages can be defined using an XML Schema, and a tool is provided to facilitate serializing the messages to and from .NET Framework objects. The technology can automatically [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=614&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Introduction</b></p>
<p align="justify">ASP.NET Web services were developed for building applications that send and receive messages by using the Simple Object Access Protocol (SOAP) over HTTP. The structure of the messages can be defined using an XML Schema, and a tool is provided to facilitate serializing the messages to and from .NET Framework objects. The technology can automatically generate metadata to describe Web services in the Web Services Description Language (WSDL), and a second tool is provided for generating clients for Web services from the WSDL.</p>
<p align="justify">WCF is for enabling .NET Framework applications to exchange messages with other software entities. SOAP is used by default, but the messages can be in any format, and conveyed by using any transport protocol. The structure of the messages can be defined using an XML Schema, and there are various options for serializing the messages to and from .NET Framework objects. WCF can automatically generate metadata to describe applications built using the technology in WSDL, and it also provides a tool for generating clients for those applications from the WSDL.</p>
<p><b>Protocol Support</b></p>
<p>WCF Supports following protocol: HTTP, TCP, Named Pipes, MSMQ, Custom, UDP.</p>
<p>Web Service Support only HTTP Protocol.</p>
<p><b>Hosting Support</b></p>
<p align="justify">Web Service can be hosted only with Http Runtime on IIS. WCF component can be hosted in any kind of environment in .NET 3.0, such as a console application, Windows application, or IIS.</p>
<p align="justify">WCF services are known as &#8217;services&#8217; as opposed to web services because you can host services without a web server.</p>
<p align="justify">Self-hosting the services gives you the flexibility to use transports other than HTTP.</p>
<p><b>Backwards Compatibility</b></p>
<p>The purpose of WCF is to provide a unified programming model for distributed applications.</p>
<p>WCF takes all the capabilities of the existing technology stacks while not relying upon any of them.</p>
<p>Applications built with these earlier technologies will continue to work unchanged on systems with WCF installed. </p>
<p>Existing applications are able to upgrade with WCF</p>
<p><b>Integration</b></p>
<p>WCF can use WS-* or HTTP bindings to communicate with ASMX pages</p>
<p><b>Advantage of WCF or Limitations of ASMX</b></p>
<p>An ASMX page doesn’t tell you how to deliver it over the transports and to use a specific type of security. This is something that WCF enhances quite significantly.</p>
<p>ASMX has a tight coupling with the HTTP runtime and the dependence on IIS to host it. WCF can be hosted by any Windows process that is able to host the .NET Framework 3.0.</p>
<p>ASMX service is instantiated on a per-call basis, while WCF gives you flexibility by providing various instancing options such as Singleton, private session, per call. </p>
<p>ASMX provides the way for interoperability but it does not provide or guarantee end-to-end security or reliable communication.</p>
<p>Reference : <a href="http://msdn.microsoft.com/en-us/library/aa702755.aspx">http://msdn.microsoft.com/en-us/library/aa702755.aspx</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/614/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/614/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/614/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=614&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/11/12/web-service-vs-wcf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Color Picker</title>
		<link>http://ramanisandeep.wordpress.com/2009/11/06/color-picker/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/11/06/color-picker/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 14:13:57 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[ASP.NET Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Color Picker]]></category>
		<category><![CDATA[Color Picker using javascript]]></category>
		<category><![CDATA[ColorPicker AJAX Extender]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/11/06/color-picker/</guid>
		<description><![CDATA[There are lots of way show color picker on web site. Today I was search for such color picker which I want to use it in one of my website. 
I have searched a lot of color picker that can be useful, so here I m writing about it. 
ColorPicker AJAX Extender 
ColorPicker is an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=612&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are lots of way show color picker on web site. Today I was search for such color picker which I want to use it in one of my website. </p>
<p>I have searched a lot of color picker that can be useful, so here I m writing about it. </p>
<h4><strong>ColorPicker AJAX Extender</strong> </h4>
<p align="justify">ColorPicker is an ASP.NET AJAX extender that can be attached to any ASP.NET TextBox control. It provides client-side color-picking functionality with UI in a popup control. You can interact with the ColorPicker by clicking on a colored area to set a color. It requires a binary reference to the ASP.NET AJAX Control Toolkit. </p>
<p align="justify">ColorPicker extender is multi-browser compatible: it works with IE 6/7/8, Firefox, Safari and Goggle Chrome. ColorPicker is built on top of ASP.NET AJAX Control Toolkit and internally utilizes a Popup extender. ColorPicker is compatible with the UpdatePanel: can be placed inside the UpdatePanel. </p>
<p align="justify">ColorPicker is included in Ajax Control Toolkit since <a href="http://ajaxcontroltoolkit.codeplex.com/wikipage?title=30512&amp;ProjectName=ajaxcontroltoolkit" target="_blank"><font color="#0000ff" size="1">Release 30512</font></a>. For those who use previous release of Ajax Control Toolkit this ColorPicker project will continue to evolve and stay in sync with the Ajax Control Toolkit. </p>
<p><a href="http://www.codeplex.com/cpe" target="_blank">Read more…</a><strong></strong></p>
<h4><strong>Color Picker using javascript</strong> </h4>
<p align="justify">This widget is used to select a color, in hexadecimal #RRGGBB form. It uses a color &quot;swatch&quot; to display the standard 216-color web-safe palette. The user can then click on a color to select it. </p>
<p align="justify">This script is very simple to implement, and can add a lot of style to your page that requires color values!</p>
<p align="justify">Because of the size of the table, this color picker may be slow on lower-end machines. Consider your target users when deciding whether or not it operates fast enough. </p>
<p><a href="http://www.mattkruse.com/javascript/colorpicker/" target="_blank">Read more…</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/612/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=612&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/11/06/color-picker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Moving Values Between Select Boxes</title>
		<link>http://ramanisandeep.wordpress.com/2009/11/02/moving-values-between-select-boxes/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/11/02/moving-values-between-select-boxes/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 13:42:56 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[How to Add Remove ListItems from one ListBox to Another?]]></category>
		<category><![CDATA[Listbox]]></category>
		<category><![CDATA[Moving Values Between Select Boxes]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/11/02/moving-values-between-select-boxes/</guid>
		<description><![CDATA[These functions allowed you to do commonly-requested actions with select boxes. 
For example, you can easily pass values between two select boxes. This makes a nice Windows-style interface for choosing components, adding and removing items from a list, etc. Options are re-ordered as they are added and removed from the lists. 
Several other functions are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=609&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify">These functions allowed you to do commonly-requested actions with select boxes. </p>
<p align="justify">For example, you can easily pass values between two select boxes. This makes a nice Windows-style interface for choosing components, adding and removing items from a list, etc. Options are re-ordered as they are added and removed from the lists. </p>
<p align="justify">Several other functions are included in the source that are not in the examples. This includes copying items in lists instead of moving them, copying/moving all items, and automatically selecting all items in a list. </p>
<p><a href="http://www.mattkruse.com/javascript/selectbox/index.html" target="_blank">read more</a></p>
<h4><strong>Other related articles</strong>&#160;</h4>
<ul>
<li><a href="http://www.codedigest.com/CodeDigest/90-How-to-Add--Remove-ListItems-from-one-ListBox-to-Another-Using-JQuery-.aspx" target="_blank">using jQuery moving Items in Listboxes</a> </li>
<li><a href="http://www.codedigest.com/CodeDigest/45-Add-Add-All--Remove--Remove-All-functionalities-from-one-ASP-Net-ListBox-to-another-in-Javascript.aspx" target="_blank">using javascript moving Items in Listboxes</a> </li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/609/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=609&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/11/02/moving-values-between-select-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Beginning with Digital Signatures in .NET Framework</title>
		<link>http://ramanisandeep.wordpress.com/2009/11/02/beginning-with-digital-signatures-in-net-framework/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/11/02/beginning-with-digital-signatures-in-net-framework/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:27:05 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Beginning with Digital Signatures in .NET Framework]]></category>
		<category><![CDATA[Digital Signatures]]></category>
		<category><![CDATA[Digital Signatures in .NET Framework]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/11/02/beginning-with-digital-signatures-in-net-framework/</guid>
		<description><![CDATA[This article explains how to get started with digital signatures, using X509 certificates in .NET. 
The purpose of digital signatures is to identify data in a way that cannot easily be faked.&#160; Phishing, infected software and illegal contents published by unknown subjects can be prevented with digital signatures. Digital signatures will allow data and digital [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=608&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify">This article explains how to get started with digital signatures, using X509 certificates in .NET. </p>
<p align="justify">The purpose of digital signatures is to identify data in a way that cannot easily be faked.&#160; Phishing, infected software and illegal contents published by unknown subjects can be prevented with digital signatures. Digital signatures will allow data and digital documents to be used as if they were signed paper. Browsers are now able to recognize X.509 certificates and know which Certificate Authorities are trusted. The X.509 system has grown to be the standard format for public key certificates, and is therefore the best way of proving that a document comes from the source it claims to come from. </p>
<p align="justify">This article will introduce X509 certificates, explain a little about the asymmetric cryptography that is at their heart, and end by describing how to use and manage these certificates within the .NET Framework classes. </p>
<p><strong>Asymmetric Cryptography and Digital Signatures</strong> </p>
<p align="justify">Digital signatures are created using asymmetric cryptography, the approach on which digital signatures are based. Asymmetric Cryptography is distinguished by having two different keys, a private key to encrypt messages and a public key to decrypt them. The cryptographic private key K0 (a suitable array of bytes) is used with an appropriate algorithm to&#160; transform the initial human-readable message into a different message that is encrypted. </p>
<p align="justify">A second public cryptographic key K1, which is related to the private one, is used to change the encrypted message back to its original decrypted form via a second related algorithm. </p>
<p align="justify">With this mechanism, your recipient is sure that the message that she/he received is your message, because only you hold the private key that is related to the public, shared, key. You digitally ‘sign’ your message. </p>
<p align="justify">In practice, you will hash the message beforehand (with hash algorithm such as MD5 or SHA1), obtaining the hashed message M1. Then you will encrypt M1 with your private key K0, digitally signing your message, and, finally, you will send your message M, the encrypted hash M1 (the signature) and the public key K1 to your recipient. Your recipient will compute the hash of your message M and will compare it with the decrypted value of M1. If the two hashes matches, the signature is valid. </p>
<p align="justify">You will notice that the signature is obtained by encrypting the hash of a message, rather than&#160; the message itself. This is done for performance reasons.&#160; Asymmetric cryptography is a slow process and the time required to encrypt, or decrypt, a message is directly related to the message length.&#160; You can make better use of the processor by reducing the amount of data to be processed. Sometimes, a very large (in bytes) message, can be reduced, by hashing it, to a much smaller hashed message. It is more convenient to transmit a the bulk of the data as clear text and just attach less than a hundred encrypted bytes attached to it than to encrypt the entire message and send it in the encrypted form. </p>
<p align="justify">Asymmetric key encryption by itself is not enough because it is necessary to trust the public key received. An attacker can deceive you by signing a message with his private key and send you a digitally confirmed message with its (related) public key, whilst&#160; pretending he is someone&#160; else. </p>
<p align="justify">The public-key infrastructure (PKI) avoids this by utilizing a third-party entity, called Certification Authority that, under its responsibility, binds a public key to its owner. The binding occurs when the Certification Authority digitally sign a message that contains the public key and the identity of its owner. A digital certificate is obtained. </p>
<p align="justify"><a href="http://www.simple-talk.com/dotnet/.net-framework/beginning-with-digital-signatures-in-.net-framework/?utm_source=simpletalk&amp;utm_medium=email&amp;utm_content=DigitalSignatures20091102&amp;utm_campaign=.NET" target="_blank">Read more</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/608/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=608&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/11/02/beginning-with-digital-signatures-in-net-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET Challenge &#8211; for or foreach?</title>
		<link>http://ramanisandeep.wordpress.com/2009/11/02/net-challenge-for-or-foreach/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/11/02/net-challenge-for-or-foreach/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:20:48 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[C# 2.0]]></category>
		<category><![CDATA[C# 3.0]]></category>
		<category><![CDATA[.NET Challenge – for or foreach?]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[for vs foreach]]></category>
		<category><![CDATA[foreach]]></category>
		<category><![CDATA[foreach vs for]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/11/02/net-challenge-for-or-foreach/</guid>
		<description><![CDATA[Question: 
for should be used instead of foreach to iterate over collections in performance-critical loops. 
Answer: True 
foreach uses an enumerator which can sometimes be slower than the simple iteration of a variable in a for loop. Enumerators, such as those contained in the .NET Framework, have both managed heap and virtual function overhead. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=607&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Question:</strong> </p>
<p><strong>for</strong> should be used instead of <strong>foreach</strong> to iterate over collections in performance-critical loops. </p>
<p><strong>Answer:</strong> True </p>
<p align="justify"><strong>foreach</strong> uses an enumerator which can sometimes be slower than the simple iteration of a variable in a for loop. Enumerators, such as those contained in the .NET Framework, have both managed heap and virtual function overhead. The amount of overhead depends on the collection used and the version of the .NET Framework. As always, the best way to determine the overhead between techniques is to run a performance test and compare.</p>
<p align="justify">To illustrate the performance impact, 10 strings were concatenated 100 times using the techniques outlined below.&#160; </p>
<p align="justify">Running against .NET Framework 3.5 using an ArrayList, a generic List and a LinkedList with 5,000 strings, the following results were obtained using Ants Performance Profiler 5: </p>
<table cellspacing="0" cellpadding="2" width="400" border="0">
<tbody>
<tr>
<td valign="top" width="133"><strong>Wall Clock Time (ms)</strong></td>
<td valign="top" width="133"><strong>Loop</strong></td>
<td valign="top" width="133"><strong>Structure (5,000 strings)</strong></td>
</tr>
<tr>
<td valign="top" width="133">25.003</td>
<td valign="top" width="133">for</td>
<td valign="top" width="133">LinkedList&lt;string&gt;</td>
</tr>
<tr>
<td valign="top" width="133">0.037</td>
<td valign="top" width="133">foreach</td>
<td valign="top" width="133">LinkedList&lt;string&gt;</td>
</tr>
<tr>
<td valign="top" width="133">0.039</td>
<td valign="top" width="133">for</td>
<td valign="top" width="133">ArrayList</td>
</tr>
<tr>
<td valign="top" width="133">0.053</td>
<td valign="top" width="133">foreach</td>
<td valign="top" width="133">ArrayList</td>
</tr>
<tr>
<td valign="top" width="133">0.019</td>
<td valign="top" width="133">for</td>
<td valign="top" width="133">List&lt;string&gt;</td>
</tr>
<tr>
<td valign="top" width="133">0.034</td>
<td valign="top" width="133">foreach</td>
<td valign="top" width="133">List&lt;string&gt;</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p>Except for the LinkedList, the for loop is faster. </p>
<p align="justify">The for loop is thought by many developers to be less readable and maintainable than foreach. Using foreach also makes it possible to iterate across anything that&#8217;s IEnumerable, allowing for the creation of more general algorithms and the use of &quot;yield&quot; to build custom collections. </p>
<p>It is normally good practice to code for clarity rather than micro-optimization. </p>
<p>Reference : <a href="http://www.red-gate.com/products/ants_performance_profiler/dotnet_challenge_question_1.htm?utm_source=simpletalk&amp;utm_medium=email&amp;utm_content=dotnetchallengeq1&amp;utm_campaign=antsperformanceprofiler" target="_blank">Rad-gate</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/607/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=607&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/11/02/net-challenge-for-or-foreach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Multiple File Upload using JQuery</title>
		<link>http://ramanisandeep.wordpress.com/2009/10/28/multiple-file-upload-using-jquery/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/10/28/multiple-file-upload-using-jquery/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 14:36:33 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[FileUpload in ASP.NET]]></category>
		<category><![CDATA[Upload files uaing jQuery]]></category>
		<category><![CDATA[Upload Files using File Upload Control]]></category>
		<category><![CDATA[Upload Multiple Files in ASP.NET using jQuery]]></category>
		<category><![CDATA[Upload Multiple files using jQuery]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/10/28/multiple-file-upload-using-jquery/</guid>
		<description><![CDATA[Introduction
In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.
I have also explained how to check for file type, file maximum size limit using jQuery &#38; also using server side validation code.
Download the Following Files

jQuery 1.3.2
Multiple File Upload Plugin

Namespace used

using System.Security.Cryptography;
using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=601&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4>Introduction</h4>
<p>In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.</p>
<p>I have also explained how to check for file type, file maximum size limit using jQuery &amp; also using server side validation code.</p>
<h4>Download the Following Files</h4>
<ul>
<li><a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.js" target="_blank">jQuery 1.3.2</a></li>
<li><a href="http://jquery-multifile-plugin.googlecode.com/svn/trunk/multiple-file-upload.zip" target="_blank">Multiple File Upload Plugin</a></li>
</ul>
<h4>Namespace used</h4>
<pre class="brush: csharp;">
using System.Security.Cryptography;
using System.Text;
using System.IO;
</pre>
<h4><strong>Step 1: Include the jQuery Files needed on the page.</strong></h4>
<p>Assuming you have downloaded these files, create a reference to these files in the &lt;head&gt; section of your page as shown below:</p>
<pre class="brush: xml;">
  &lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&gt;
        &lt;title&gt;Multiple File Upload using JQuery&lt;/title&gt;
        &lt;script src=&quot;Scripts/jquery-1.3.2.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
        &lt;script src=&quot;Scripts/jquery.MultiFile.js&quot; type=&quot;text/javascript&quot;&gt;
        &lt;/script&gt;
    &lt;/head&gt;
</pre>
<h4><strong>Step 2: Add File Upload Control &amp; Button on the Page.</strong></h4>
<pre class="brush: xml;">
 &lt;asp:FileUpload ID=&quot;FileUpload1&quot; runat=&quot;server&quot; class=&quot;multi&quot; accept=&quot;gif|jpeg|bmp|png|jpg&quot;
        maxlength=&quot;5&quot; /&gt;
    &lt;br /&gt;
    &lt;asp:Button ID=&quot;btnUpload&quot; runat=&quot;server&quot; Text=&quot;Upload All&quot; OnClick=&quot;btnUpload_Click&quot; /&gt;
    &lt;br /&gt;
    &lt;asp:Label ID=&quot;lblMsg&quot; runat=&quot;server&quot; Text=&quot;&quot;&gt;\
    &lt;/asp:Label&gt;
</pre>
<div class="csharpcode"><strong>class=”multi”</strong> is used to specify that user can select multiple files.</div>
<div class="csharpcode"><strong>maxlength</strong> property specify that user can upload maximum 5 files not more than that.</div>
<div class="csharpcode"><strong>accept</strong> property used to restrict user to upload only certain type of file only.</div>
<h4>Step 3: Double click on Upload Button &amp; Write the code that is used to upload files.</h4>
<pre class="brush: csharp;">
 protected void btnUpload_Click(object sender, EventArgs e)
    {
        if (ServerSideValidation() == true)
        {
            string SavePath, Msg = null;

            // Get the HttpFileCollection
            HttpFileCollection hfc = Request.Files;
            for (int i = 0; i &lt; hfc.Count; i++)
            {
                HttpPostedFile hpf = hfc[i];
                if (hpf.ContentLength &gt; 0)
                {
                    SavePath = ConfigurationManager.AppSettings[&quot;PatientPhotoImages&quot;].ToString()
                        + GetUniqueKey() + GetFileExtension(hpf.FileName);
                    hpf.SaveAs(Server.MapPath(SavePath));
                    //SavePath can be saved in DB.
                    Msg += GetFileName(hpf.FileName.ToString()) + &quot; , &quot;;
                }
            }
            lblMsg.Text = Msg + &quot; Uploaded Successfully.&quot;;
        }
    }
</pre>
<h4>Step 4: Write the private function which helps to Upload files.</h4>
<p>This function helps to extract file extension from the fileName.</p>
<pre class="brush: csharp;">
 private string GetFileExtension(string FileName)
    {
        char saperator = '.';
        string[] temp = FileName.Split(saperator);

        return &quot;.&quot; + temp[1].ToString();
    }
</pre>
<p><span style="color:#ff0000;font-size:small;"><strong>OR</strong></span></p>
<pre class="brush: csharp;">
private string GetFileExtension(string filePath)
    {
        FileInfo fi = new FileInfo(filePath);
        return fi.Extension;
    }
</pre>
<p>This function helps to get Unique Key, which is used to save files on server with different name that does not collied with each other.</p>
<pre class="brush: csharp;">
 private string GetUniqueKey()
    {
        int maxSize = 8;
        char[] chars = new char[62];
        string a;

        a = &quot;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890&quot;;

        chars = a.ToCharArray();

        int size = maxSize;
        byte[] data = new byte[1];

        RNGCryptoServiceProvider crypto = new RNGCryptoServiceProvider();

        crypto.GetNonZeroBytes(data);
        size = maxSize;
        data = new byte[size];
        crypto.GetNonZeroBytes(data);
        StringBuilder result = new StringBuilder(size);

        foreach (byte b in data)
        {
            result.Append(chars[b % (chars.Length - 1)]);
        }

        return result.ToString();
    }
</pre>
<p>This function help to get Filename from the filepath.</p>
<pre class="brush: csharp;">
 private string GetFileName(string filePath)
    {
        FileInfo fi = new FileInfo(filePath);
        return fi.Name;
    }
</pre>
<h4>Step 5: Add Server Side Validation Code</h4>
<p>This is the function which is used to validate files that user wants to upload. If the client side validation does not work, this code will help us to identify the invalid files.</p>
<p>Validation rules like whether file type is correct or not, file size is valid or not.</p>
<p>If you do not want to validate the files on server side, you can ignore this code. But I prefer to use it.</p>
<pre class="brush: csharp;">
 private bool ServerSideValidation()
    {
        string errorMsg = string.Empty, temp = null;
        bool errorFlag = true;

        // Get the HttpFileCollection
        HttpFileCollection hfc = Request.Files;
        for (int i = 0; i &lt; hfc.Count; i++)
        {
            HttpPostedFile hpf = hfc[i];
            if (hpf.ContentLength &gt; 0)
            {
                temp = ValidateImage(hpf);
                if (temp != null)
                {
                    errorMsg += GetFileName(hpf.FileName.ToString()) + &quot; has error : &quot; + temp;
                    temp = null;
                }
            }
        }

        if (errorMsg != &quot;&quot;)
        {
            lblMsg.Text = errorMsg;
            errorFlag = false;
        }
        return errorFlag;
    }
</pre>
<p>This function used to check file type &amp; file size. If file is invalid than it will return error message.</p>
<pre class="brush: csharp;">
 private string ValidateImage(HttpPostedFile myFile)
    {
        string msg = null;
        int FileMaxSize = Convert.ToInt32(ConfigurationManager.AppSettings[&quot;FileUploadSizeLimit&quot;].ToString());
        //Check Length of File is Valid or Not.
        if (myFile.ContentLength &gt; FileMaxSize)
        {
            msg = msg + &quot;File Size is Too Large.&quot;;
        }
        //Check File Type is Valid or Not.
        if (!IsValidFile(myFile.FileName))
        {
            msg = msg + &quot;Invalid File Type.&quot;;
        }
        return msg;
    }
</pre>
<p>This function is used to check whether the file that user want to upload is valid file type or not.</p>
<pre class="brush: csharp;">
private bool IsValidFile(string filePath)
    {
        bool isValid = false;

        string[] fileExtensions = { &quot;.bmp&quot;, &quot;.jpg&quot;, &quot;.png&quot;, &quot;.gif&quot;, &quot;.jpeg&quot;, &quot;.BMP&quot;, &quot;.JPG&quot;, &quot;.PNG&quot;, &quot;.GIF&quot;, &quot;.JPEG&quot; };

        for (int i = 0; i &lt; fileExtensions.Length; i++)
        {
            if (filePath.Contains(fileExtensions[i]))
            {
                isValid = true; break;
            }
        }
        return isValid;
    }
</pre>
<h4>Conclusion:</h4>
<p>This code is complete solution that helps to upload multiple file using File Upload with jQuery plugin. I was always in a need of such code in my route work so I decided to write the code that helps others also.</p>
<p><strong>Hope this will help !!!<br />
Jay Ganesh</strong></p>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p><a href="http://11011.net/software/vspaste"> </a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/601/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=601&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/10/28/multiple-file-upload-using-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>ASTreeView &#8211; A Powerful ASP.Net TreeView Control</title>
		<link>http://ramanisandeep.wordpress.com/2009/10/23/astreeview-a-powerful-asp-net-treeview-control/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/10/23/astreeview-a-powerful-asp-net-treeview-control/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 09:28:21 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[ASP.NET Ajax]]></category>
		<category><![CDATA[A Powerful ASP.Net TreeView Control]]></category>
		<category><![CDATA[ASTreeView]]></category>
		<category><![CDATA[Treeview]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/2009/10/23/astreeview-a-powerful-asp-net-treeview-control/</guid>
		<description><![CDATA[ASTreeView is a powerful treeview with drag drop, ajax loading, context menu, xml import/export, checkbox, selection, add/editing/deleting nodes with ajax. 
ASTreeView is developed on .NET framework 2.0. Demo project is a Visual Studio 2005 project. 
ASTreeView is FREE! That means you can use it anywhere! 
for more detail : click here
     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=598&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ASTreeView is a powerful treeview with drag drop, ajax loading, context menu, xml import/export, checkbox, selection, add/editing/deleting nodes with ajax. </p>
<p>ASTreeView is developed on .NET framework 2.0. Demo project is a Visual Studio 2005 project. </p>
<p>ASTreeView is FREE! That means you can use it anywhere! </p>
<p>for more detail : <a href="http://www.codeproject.com/KB/webforms/ASTreeView.aspx" target="_blank"><font color="#ff0000">click here</font></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/598/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=598&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/10/23/astreeview-a-powerful-asp-net-treeview-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Ebook : 51 Tips, Tricks and Recipes with jQuery and ASP.NET Controls</title>
		<link>http://ramanisandeep.wordpress.com/2009/10/14/ebook-51-tips-tricks-and-recipes-with-jquery-and-asp-net-controls/</link>
		<comments>http://ramanisandeep.wordpress.com/2009/10/14/ebook-51-tips-tricks-and-recipes-with-jquery-and-asp-net-controls/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 11:32:23 +0000</pubDate>
		<dc:creator>ramanisandeep</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Ebook : 51 Tips]]></category>
		<category><![CDATA[EBook jQuery and ASP.NET]]></category>
		<category><![CDATA[Tricks and Recipes with jQuery and ASP.NET Controls]]></category>
		<category><![CDATA[using jQuery with ASP.NET controls]]></category>

		<guid isPermaLink="false">http://ramanisandeep.wordpress.com/?p=591</guid>
		<description><![CDATA[hi readers ,
here is a very useful book that explore the jQuery usage with ASP.NET Controls. This is very handy book for the web developer who uses jQuery along with ASP.NET.
It helps to enhance your web experience &#38; better understand how/where/when to use jQuery with ASP.NET Controls.
read more  : here
read the content  : [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=591&subd=ramanisandeep&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>hi readers ,</p>
<p>here is a very useful book that explore the jQuery usage with ASP.NET Controls. This is very handy book for the web developer who uses jQuery along with ASP.NET.</p>
<p>It helps to enhance your web experience &amp; better understand how/where/when to use jQuery with ASP.NET Controls.</p>
<p>read more  : <a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=393" target="_blank">here</a></p>
<p>read the content  : <a href="http://www.scribd.com/doc/20458606/51-Recipes-With-jQuery-and-ASP-net-Preview" target="_blank">here </a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ramanisandeep.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ramanisandeep.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ramanisandeep.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ramanisandeep.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ramanisandeep.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ramanisandeep.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ramanisandeep.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ramanisandeep.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ramanisandeep.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ramanisandeep.wordpress.com/591/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ramanisandeep.wordpress.com&blog=4219553&post=591&subd=ramanisandeep&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ramanisandeep.wordpress.com/2009/10/14/ebook-51-tips-tricks-and-recipes-with-jquery-and-asp-net-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6d269205ff05eb290eed22b7d422b7ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
	</channel>
</rss>