<?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>Code4asp.net</title>
	<atom:link href="http://www.code4asp.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.code4asp.net</link>
	<description>Search.   Think.   Apply.</description>
	<lastBuildDate>Wed, 07 Jul 2010 08:42:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WPF Tutorial &#8211; Part 1 : WPF DataBinding</title>
		<link>http://www.code4asp.net/2010/07/07/wpf-tutorial-part-1-wpf-databinding/</link>
		<comments>http://www.code4asp.net/2010/07/07/wpf-tutorial-part-1-wpf-databinding/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 08:32:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[wcf]]></category>
		<category><![CDATA[wpf-application]]></category>
		<category><![CDATA[WPF-CLR-properties]]></category>
		<category><![CDATA[WPF-Commands-and-Custom-WPF-Commands]]></category>
		<category><![CDATA[wpf-controls]]></category>
		<category><![CDATA[WPF-DataBinding]]></category>
		<category><![CDATA[wpf-demo]]></category>
		<category><![CDATA[WPF-Dependency-Properties]]></category>
		<category><![CDATA[WPF-Dispatcher]]></category>
		<category><![CDATA[wpf-examples]]></category>
		<category><![CDATA[WPF-Layouts]]></category>
		<category><![CDATA[WPF-Resources]]></category>
		<category><![CDATA[wpf-samples]]></category>
		<category><![CDATA[WPF-Styles-and-Control-Templates]]></category>
		<category><![CDATA[WPF-Tutorial]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://www.code4asp.net/?p=98</guid>
		<description><![CDATA[Nowadays everyone running behind WCF and WPF. I have come across many articles related to these topics while googling. I hope you too have read lot of articles on these topics. But here am not going to bore you with definitions and keywords. According to me,learning by example is always a good way of learning [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays everyone running behind WCF and WPF. I have come across many articles related to these topics while googling. I hope you too have read lot of articles on these topics. But here am not going to bore you with definitions and keywords. According to me,learning by example is always a good way of learning new things, that’s why am going to expose the knowledge i have acquired via examples. In this article, will provide some practical examples which reviews some important features of Windows Presentation Foundation. It covers the following features :</p>
<ul>
<li> <strong>WPF DataBinding</strong></li>
<li> <strong>WPF Styles and Control Templates</strong></li>
<li> <strong>WPF Commands and Custom WPF Commands</strong></li>
<li> <strong>WPF Dispatcher</strong></li>
<li> <strong>WPF Resources, Layouts</strong></li>
<li> <strong>WPF CLR properties and Dependency Properties</strong></li>
</ul>
<p>These will done in a series of articles, one at a time.</p>
<p>This article is the first in a series, the entire series barely scratches the surface of the immense WPF platform, and it does not dive too deeply into core level on any specific topic. The purpose of this series is to familiarize the reader with the basic WPF programming model.</p>
<p><strong>WPF DataBinding</strong> Example: Display a set of data in ListView.</p>
<p>DataBinding.xaml :</p>
<blockquote><p>&lt;Window x:Class=&#8221;DataBinding.DataBinding&#8221;<br />
xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;<br />
xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;<br />
Title=&#8221;DataBinding example&#8221; Height=&#8221;300&#8243; Width=&#8221;300&#8243;&gt;<br />
&lt;Window.Resources&gt;<br />
&lt;Style x:Key=&#8221;TextBlockStyle&#8221; TargetType=&#8221;{x:Type TextBlock}&#8221;&gt;<br />
&lt;Setter Property=&#8221;Foreground&#8221; Value=&#8221;Black&#8221; /&gt;<br />
&lt;/Style&gt;<br />
&lt;Style x:Key=&#8221;GridHeaderStyle&#8221; TargetType=&#8221;{x:Type GridViewColumnHeader}&#8221;&gt;<br />
&lt;Setter Property=&#8221;Foreground&#8221; Value=&#8221;#356CAD&#8221; /&gt;<br />
&lt;Setter Property=&#8221;FontSize&#8221; Value=&#8221;12pt&#8221; /&gt;<br />
&lt;/Style&gt;<br />
&lt;/Window.Resources&gt;<br />
&lt;Grid&gt;<br />
&lt;ListView x:Name=&#8221;ItemsListView&#8221;&gt;<br />
&lt;ListView.View&gt;<br />
&lt;GridView&gt;<br />
&lt;GridViewColumn&gt;<br />
&lt;GridViewColumnHeader Content=&#8221;Item Name&#8221;  Style=&#8221;{StaticResource GridHeaderStyle}&#8221; /&gt;<br />
&lt;GridViewColumn.CellTemplate&gt;<br />
&lt;DataTemplate&gt;<br />
&lt;TextBlock Text=&#8221;{Binding Name}&#8221;  Style=&#8221;{StaticResource TextBlockStyle}&#8221;&gt;&lt;/TextBlock&gt;<br />
&lt;/DataTemplate&gt;<br />
&lt;/GridViewColumn.CellTemplate&gt;<br />
&lt;/GridViewColumn&gt;<br />
&lt;GridViewColumn&gt;<br />
&lt;GridViewColumnHeader Content=&#8221;Item Rate&#8221;  Style=&#8221;{StaticResource GridHeaderStyle}&#8221;/&gt;<br />
&lt;GridViewColumn.CellTemplate&gt;<br />
&lt;DataTemplate&gt;<br />
&lt;TextBlock Text=&#8221;{Binding Rate}&#8221;&gt;&lt;/TextBlock&gt;<br />
&lt;/DataTemplate&gt;<br />
&lt;/GridViewColumn.CellTemplate&gt;<br />
&lt;/GridViewColumn&gt;<br />
&lt;/GridView&gt;<br />
&lt;/ListView.View&gt;<br />
&lt;/ListView&gt;<br />
&lt;/Grid&gt;<br />
&lt;/Window&gt;</p></blockquote>
<p><strong>DataBinding.xaml.cs :</strong></p>
<blockquote><p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows;<br />
using System.Windows.Controls;<br />
using System.Windows.Data;<br />
using System.Windows.Documents;<br />
using System.Windows.Input;<br />
using System.Windows.Media;<br />
using System.Windows.Media.Imaging;<br />
using System.Windows.Navigation;<br />
using System.Windows.Shapes;<br />
using System.Collections.ObjectModel;</p>
<p>namespace DataBinding<br />
{<br />
///<br />
/// Interaction logic for Window1.xaml<br />
///<br />
public partial class DataBinding : Window<br />
{<br />
public DataBinding()<br />
{<br />
InitializeComponent();</p>
<p>ObservableCollection oList = new ObservableCollection();<br />
oList.Add(new Items{ Name=&#8221;Ram&#8221;, Rate=&#8221;23.8&#8243;});<br />
oList.Add(new Items { Name = &#8220;Mother Board&#8221;, Rate = &#8220;10303.56&#8243; });<br />
oList.Add(new Items { Name = &#8220;SMPS&#8221;, Rate = &#8220;3421.4&#8243; });<br />
oList.Add(new Items { Name = &#8220;KeyBoard&#8221;, Rate = &#8220;200.0&#8243; });<br />
oList.Add(new Items { Name = &#8220;Monitor&#8221;, Rate = &#8220;3421.4&#8243; });<br />
CollectionViewSource dataSource = new CollectionViewSource { Source=oList };<br />
ItemsListView.ItemsSource = dataSource.View;<br />
}<br />
}<br />
}</p></blockquote>
<p><strong>item.cs :</strong></p>
<blockquote><p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;</p>
<p>namespace DataBinding<br />
{<br />
class Items<br />
{<br />
public string Name { get; set; }</p>
<p>public string Rate { get; set; }<br />
}<br />
}</p></blockquote>
<p><strong><span style="color: #ff0000;">Download Source</span></strong> : <a href="http://www.code4asp.net/wp-content/uploads/2010/07/Wpf-DataBinding-Example-1.zip" target="_blank">Wpf-DataBinding-Example  &#8211; 1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2010/07/07/wpf-tutorial-part-1-wpf-databinding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We are back&#8230;</title>
		<link>http://www.code4asp.net/2010/06/25/we-are-back/</link>
		<comments>http://www.code4asp.net/2010/06/25/we-are-back/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 02:31:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.code4asp.net/?p=87</guid>
		<description><![CDATA[Hi everybody&#8230;
We are back after short break. Will be posting more articles&#8230;Keep visting the site.
]]></description>
			<content:encoded><![CDATA[<p>Hi everybody&#8230;</p>
<p>We are back after short break. Will be posting more articles&#8230;Keep visting the site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2010/06/25/we-are-back/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apple&#039;s Response to Windows 7 Release</title>
		<link>http://www.code4asp.net/2009/11/03/apples-response-to-windows-7-release/</link>
		<comments>http://www.code4asp.net/2009/11/03/apples-response-to-windows-7-release/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:49:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[video-ad-response-from-APPLE]]></category>
		<category><![CDATA[Windows-7]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/11/03/apples-response-to-windows-7-release/</guid>
		<description><![CDATA[Microsoft released Windows 7 on last week. And here is the video ad response from APPLE.


]]></description>
			<content:encoded><![CDATA[<p>Microsoft released <a href="http://blogger.code4asp.net/2009/10/27/windows-7.aspx" target="_blank">Windows 7</a> on last week. And here is the video ad response from APPLE.<br />
<br/><br />
<object width="600" height="385"><param name="movie" value="http://www.youtube.com/v/AtvloPFYocw&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/AtvloPFYocw&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/11/03/apples-response-to-windows-7-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comics &#8211; November</title>
		<link>http://www.code4asp.net/2009/11/03/comics-november/</link>
		<comments>http://www.code4asp.net/2009/11/03/comics-november/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:34:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[comics]]></category>
		<category><![CDATA[funny-umages]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[life-humor]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/11/03/comics-november/</guid>
		<description><![CDATA[



]]></description>
			<content:encoded><![CDATA[<div></div>
<p><a href="http://www.toothpastefordinner.com/"><br />
<img src="http://www.toothpastefordinner.com/062706/horrible-dream.gif" alt="Comics-November" /></a></p>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/11/03/comics-november/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding JSON</title>
		<link>http://www.code4asp.net/2009/10/29/understanding-json/</link>
		<comments>http://www.code4asp.net/2009/10/29/understanding-json/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 15:32:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Client side script]]></category>
		<category><![CDATA[jQurey]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript object]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[web service json]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/10/29/understanding-json/</guid>
		<description><![CDATA[Today, i come across some good articles on JSON. And here is the link where JSON is explained so well.  Also you can find some good collection of related links&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Today, i come across some good articles on JSON. And here is the <a href="http://www.json.org/" target="_blank">link </a>where JSON is explained so well.  Also you can find some good collection of related links&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/10/29/understanding-json/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL SERVER – Rules for Optimizining Any Query – Best Practices for Query Optimization</title>
		<link>http://www.code4asp.net/2009/10/29/sql-server-%e2%80%93-rules-for-optimizining-any-query-%e2%80%93-best-practices-for-query-optimization/</link>
		<comments>http://www.code4asp.net/2009/10/29/sql-server-%e2%80%93-rules-for-optimizining-any-query-%e2%80%93-best-practices-for-query-optimization/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 13:58:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Best Practices for Query Optimization]]></category>
		<category><![CDATA[optimizing database]]></category>
		<category><![CDATA[Optimizining Query]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/10/29/sql-server-%e2%80%93-rules-for-optimizining-any-query-%e2%80%93-best-practices-for-query-optimization/</guid>
		<description><![CDATA[Best Practices for Query Optimization

 Table should have primary key
 Table should have minimum of one clustered index
 Table should have appropriate amount of non-clustered index
 Non-clustered index should be created on columns of table based on query which is running
 Following priority order should be followed when any index is created a) WHERE clause, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Best Practices for Query Optimization</strong></p>
<ul>
<li> Table should have primary key</li>
<li> Table should have minimum of one clustered index</li>
<li> Table should have appropriate amount of non-clustered index</li>
<li> Non-clustered index should be created on columns of table based on query which is running</li>
<li> Following priority order should be followed when any index is created a) WHERE clause, b) JOIN clause, c) ORDER BY  clause,  d)  SELECT clause</li>
<li> Do not to use Views or replace views with original source table</li>
<li> Triggers should not be used if possible, incorporate the logic of trigger in stored procedure</li>
<li> Remove any adhoc queries and use Stored Procedure instead</li>
<li> Check if there is atleast 30% HHD is empty – it improves the performance a bit</li>
<li> If possible move the logic of UDF to SP as well</li>
<li> Remove * from SELECT and use columns which are only necessary in code</li>
<li> Remove any unnecessary joins from table</li>
<li> If there is cursor used in query, see if there is any other way to avoid the usage of this (either by SELECT … INTO or INSERT … INTO,      etc)</li>
</ul>
<p>Source : <a href="http://blog.sqlauthority.com/2009/01/20/sql-server-rules-for-optimizining-any-query-best-practices-for-query-optimization/" target="_blank">SqlAuthority</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/10/29/sql-server-%e2%80%93-rules-for-optimizining-any-query-%e2%80%93-best-practices-for-query-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Makes Your Search More Musical!</title>
		<link>http://www.code4asp.net/2009/10/29/google-makes-your-search-more-musical/</link>
		<comments>http://www.code4asp.net/2009/10/29/google-makes-your-search-more-musical/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 11:16:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google-music-search]]></category>
		<category><![CDATA[google-online-music-market]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/10/29/google-makes-your-search-more-musical/</guid>
		<description><![CDATA[Google has entered the online music market to allow US consumers to search using song titles, artists or snippets of lyrics.
The top search engine has said the service will offer an alternative to the illegal file-sharing which record companied have been trying to stop.The Google music offering will also spring up in peer-to-peer file searches, [...]]]></description>
			<content:encoded><![CDATA[<p>Google has entered the online music market to allow US consumers to search using song titles, artists or snippets of lyrics.</p>
<p>The top search engine has said the service will offer an alternative to the illegal file-sharing which record companied have been trying to stop.The Google music offering will also spring up in peer-to-peer file searches, meaning people will be able to decide on an alternative to pirated music.</p>
<p>According to Google, the words &#8220;<strong>music</strong>&#8221; and &#8220;<strong>lyrics</strong>&#8221; are among the top 10 search terms in its web statistics.The company will now find partners in other countries to allow international consumers to use the service.</p>
<p>&#8220;This feature doesn&#8217;t just make search better. It also helps people discover new sources of licensed music online while helping artists to discover new generations of fans and reconnect with longtime listeners,&#8221; Google said in a statement.</p>
<p>Google has made available a video preview of its music search feature which is viewable below.</p>
<p>The music features will not be available to users elsewhere in the world. But Google is open to talking with possible overseas partners, said <strong>Marissa Mayer</strong>, vice president of search product and user experience at Google.</p>
<p>&#8220;This is pushing search traffic and business opportunities downstream to online partners and artists and labels, so we&#8217;re happy to provide a great music experience and also direct lots of music-seeking traffic to partners that can take it from there and convert it to great music discovery,&#8221; said <strong>R.J. Pittman</strong>, product manager for the music service at Google.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/10/29/google-makes-your-search-more-musical/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7</title>
		<link>http://www.code4asp.net/2009/10/27/windows-7/</link>
		<comments>http://www.code4asp.net/2009/10/27/windows-7/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 15:02:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[microsft windows 7]]></category>
		<category><![CDATA[Windows 7 Blog]]></category>
		<category><![CDATA[windows xp]]></category>
		<category><![CDATA[Windows-7]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/10/27/windows-7/</guid>
		<description><![CDATA[Windows 7 is finally released into the wild!  So far the operating system has received great reviews around the web. Amazon even said that Windows 7 is bigger than Harry Potter, so things are looking bright for them  .

Many say that Windows 7 is what Windows Vista should have been, an optimized operating system [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Windows 7</strong> is finally released into the wild!  So far the operating system has received great reviews around the web. Amazon even said that <a href="http://mashable.com/2009/10/21/windows-7-bigger-harry-potter/" target="_blank">Windows 7 is bigger than Harry Potter</a>, so things are looking bright for them <img src="http://blogger.code4asp.net/emoticons/smile.png" border="0" alt="" /> .</p>
<p><img src="http://images.quickblogcast.com/2/5/6/9/4/159200-149652/Windows_7.png?a=63" alt="" /></p>
<p>Many say that Windows 7 is what Windows Vista should have been, an optimized operating system that combines the looks of today with interesting new features and less bloat.</p>
<p>Here are the things that I personally like in Windows 7:</p>
<p>* Automatic digital camera (and other devices) recognition with proper actions displayed (e.g. copy photos from digital camera to the                computer system). No driver installation or third party software needed to do that.<br />
* The operating system feels more responsive and seems to run better on low-end hardware than Vista<br />
* Better troubleshooting options<br />
* The new taskbar. It takes a while to get used to the new features but they are very handy (e.g. pinning software to the taskbar)                     once you get used to them<br />
* Light theme customizations without system file patching<br />
* Search Connectors to search the Internet from within Windows Explorer<br />
* Better 64-bit support (meaning developers who want a certificate need to provide 32-bit and 64-bit editions of their programs)<br />
* Home Group feature for easier home network management and creation</p>
<p><a href="http://windows7news.com/" target="_blank">Also Check Windows 7 Blog</a></p>
<p><strong>Snip from the PCMAG: </strong></p>
<p>&#8220;<em>Microsoft’s decision to leave Windows XP users behind, with no easy upgrade path to Windows 7, is, possibly, the sole mistake of an otherwise pitch-perfect product development and launch campaign.</em></p>
<p><em>Yes, I know there’s precedent for Microsoft not helping customers upgrade from multi-generations-old operating systems. When XP shipped in October of 2001, Windows 3.1 and even Windows 95 were left behind. The exact phrasing Microsoft uses in its literature is: “No Supported Upgrade Paths.” When Vista shipped in January 2007, XP had multiple paths, but Windows 2000 (and older OSs) were left out in the cold</em>. <a href="http://www.pcmag.com/article2/0,2817,2350740,00.asp" target="_blank">more..</a>&#8221;</p>
<p>Have you already installed W7 on your computer? Let me know what you think in the comment section!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/10/27/windows-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 and ASP.NET 4.0 beta 1 Released</title>
		<link>http://www.code4asp.net/2009/08/12/visual-studio-2010-and-asp-net-4-0-beta-1-released/</link>
		<comments>http://www.code4asp.net/2009/08/12/visual-studio-2010-and-asp-net-4-0-beta-1-released/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 14:24:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[.net framework 4]]></category>
		<category><![CDATA[ASP.NET 4]]></category>
		<category><![CDATA[c# 4]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[vs 2010]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/08/12/visual-studio-2010-and-asp-net-4-0-beta-1-released/</guid>
		<description><![CDATA[Microsoft has released Visual Studio 2010 and ASP.NET 4.0 beta 1recently, I felt there are some amazing features which can help  developer improve productivity.
Visual Studio 2010 and .NET Framework 4 focuses on the core pillars of developer experience, support for the latest platforms, targeted experiences for specific application types, and core architecture improvements.
Check out [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has released Visual Studio 2010 and ASP.NET 4.0 beta 1recently, I felt there are some amazing features which can help<span style="position:static;text-decoration:underline;"><span style="color:#0000ff;"><span class="kLink" style="color:#0000ff!important;font-family:&amp;font-size:12px;position:static;"> </span></span></span> developer improve productivity.</p>
<p><strong>Visual Studio 2010 and .NET Framework 4</strong> focuses on the core pillars of developer experience, support for the latest platforms, targeted experiences for specific application types, and core architecture improvements.</p>
<p>Check out the following links:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/dd409230%28VS.100%29.aspx" target="_blank">What&#8217;s New in Visual Studio 2010</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/bb386063%28VS.100%29.aspx" target="_blank">What&#8217;s New in the .NET Framework 4</a></p>
<p><a href="http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx" target="_blank">Download Visual Studio 2010 and .NET Framework 4 Beta 1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/08/12/visual-studio-2010-and-asp-net-4-0-beta-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bulk Insert – SQL Server</title>
		<link>http://www.code4asp.net/2009/08/12/bulk-insert-sql-server/</link>
		<comments>http://www.code4asp.net/2009/08/12/bulk-insert-sql-server/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 14:12:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[insert multiple values]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server bulk insert]]></category>

		<guid isPermaLink="false">http://srinathgnath.wordpress.com/2009/08/12/bulk-insert-sql-server/</guid>
		<description><![CDATA[
Sample: 
CREATE  PROCEDURE InsertEmployees
/* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
Parameters
In :
@strXML = contains employee list as XML
Example:   &#8216;&#60;root&#62;
&#60;emp EmpName=&#8221;Srinath&#8221; EmpSalary=&#8221;10000&#8243; /&#62;
&#60;emp EmpName=&#8221;sree&#8221; EmpSalary=&#8221;15000&#8243; /&#62;
&#60;/root&#62;&#8217;
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- */
@strXML varchar(8000)
AS
 Declare @intPointer int
 exec sp_xml_preparedocument @intPointer output, @strXML 
 INSERT into employee
 SELECT  EmpName, EmpSalary
 FROM OpenXml(@intPointer,&#8217;/root/emp&#8217;,2)
 WITH EmpName varchar(20) &#8216;@EmpName&#8217; , EmpSalary varchar(20) &#8216;@EmpSalary&#8217;)
 exec sp_xml_removedocument @intPointer
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
EXEC InsertEmployees &#8216;&#60;root&#62;&#60;emp EmpName=&#8221;Srinath&#8221; EmpSalary=&#8221;10000&#8243; /&#62;&#60;emp EmpName=&#8221;sree&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><em><br />
<strong>Sample: </strong><br />
<span style="color:#479cc5;">CREATE  PROCEDURE InsertEmployees<br />
/* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Parameters<br />
In :<br />
@strXML = contains employee list as XML<br />
Example:   &#8216;&lt;root&gt;<br />
&lt;emp EmpName=&#8221;Srinath&#8221; EmpSalary=&#8221;10000&#8243; /&gt;<br />
&lt;emp EmpName=&#8221;sree&#8221; EmpSalary=&#8221;15000&#8243; /&gt;<br />
&lt;/root&gt;&#8217;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- */<br />
@strXML varchar(8000)<br />
AS</span></em></p>
<p><em> Declare @intPointer int</em></p>
<p><em> exec sp_xml_preparedocument @intPointer output, @strXML </em></p>
<p><em> INSERT into employee</em></p>
<p><em> SELECT  EmpName, EmpSalary</em></p>
<p><em> FROM OpenXml(@intPointer,&#8217;/root/emp&#8217;,2)</em></p>
<p><em> WITH EmpName varchar(20) &#8216;@EmpName&#8217; , EmpSalary varchar(20) &#8216;@EmpSalary&#8217;)</em></p>
<p><em> exec sp_xml_removedocument @intPointer</em></p>
<p><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</em></p>
<p><em>EXEC InsertEmployees &#8216;&lt;root&gt;&lt;emp EmpName=&#8221;Srinath&#8221; EmpSalary=&#8221;10000&#8243; /&gt;&lt;emp EmpName=&#8221;sree&#8221; EmpSalary=&#8221;15000&#8243; /&gt;&lt;/root&gt;&#8217;</em></p>
<p><em> </em><strong>sp_xml_preparedocument </strong></p>
<p>Reads the XML text provided as input, parses the text by using the MSXML parser (Msxmlsql.dll), and provides the parsed document in a state ready for consumption. This parsed document is a tree representation of the various nodes in the XML document: elements, attributes, text, comments, and so on.</p>
<p><strong>sp_xml_preparedocument</strong> returns a handle that can be used to access the newly created internal representation of the XML document. This handle is valid for the duration of the session or until the handle is invalidated by executing sp_xml_removedocument.</p>
<p><strong>OPENXML</strong></p>
<p>OPENXML provides a rowset view over an XML document. Because OPENXML is a rowset provider, OPENXML can be used in Transact-SQL statements in which rowset providers such as a table, view, or the OPENROWSET function can appear.</p>
<p>Sample:<br />
<span style="color:#2896cd;"><em><br />
OpenXml(@intPointer,&#8217;/root/emp&#8217;,2)</em></span></p>
<p><em>WITH EmpName varchar(20) &#8216;@EmpName&#8217; , EmpSalary varchar(20) &#8216;@EmpSalary&#8217;)</em></p>
<p><em> </em></p>
<p><strong>sp_xml_removedocument </strong></p>
<p>Removes the internal representation of the XML document specified bythe document handle and invalidates the document handle. To avoidrunning out of memory, will run sp_xml_removedocument to free up thememory.<span style="color:#2896cd;"><em><br />
</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.code4asp.net/2009/08/12/bulk-insert-sql-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
