<?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>Deepu MI&#039;s Blog</title>
	<atom:link href="http://deepumi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://deepumi.wordpress.com</link>
	<description>ASP.NET, C#, SharePoint, Silverlight</description>
	<lastBuildDate>Thu, 19 Jan 2012 13:58:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='deepumi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/fb3ebd2da7e325cc609a0764cbde49cb?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Deepu MI&#039;s Blog</title>
		<link>http://deepumi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://deepumi.wordpress.com/osd.xml" title="Deepu MI&#039;s Blog" />
	<atom:link rel='hub' href='http://deepumi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Custom Template  in InfoPath 2010</title>
		<link>http://deepumi.wordpress.com/2012/01/08/create-custom-template-in-infopath-2010/</link>
		<comments>http://deepumi.wordpress.com/2012/01/08/create-custom-template-in-infopath-2010/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 04:09:26 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[InfoPath 2010]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=745</guid>
		<description><![CDATA[I&#8217;ve been playing around with InfoPath forms this weekend  for converting paper forms to eForms (Infopath forms). One of the challenge  I have faced was maintaining the consistency of application look and feel for all the forms, since InfoPath designer doesn&#8217;t support master page layout  but it also provide an alternative solution called custom TEMPLATE control which you can convert any layout [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=745&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with InfoPath forms this weekend  for converting paper forms to eForms (Infopath forms). One of the challenge  I have faced was maintaining the consistency of application look and feel for all the forms, since InfoPath designer doesn&#8217;t support master page layout  but it also provide an alternative solution called custom TEMPLATE control which you can convert any layout in to a <strong>.STP</strong> file and can reuse across all the forms.</p>
<p><a title="Click here to download the template" href="http://www.4shared.com/zip/exBYR-eB/Template_-_STP_files.html" target="_blank">Click here to Download the template<br />
</a></p>
<p>Open InfoPath Designer 2010 and select <strong>Template Parts</strong> as <strong>BLANK  </strong>and click <strong>Design Form</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2012/01/select-template.png"><br />
<img class="alignnone size-full wp-image-748" title="select template" src="http://deepumi.files.wordpress.com/2012/01/select-template.png?w=600&#038;h=192" alt="" width="600" height="192" /><br />
</a></p>
<p>Design your own layout&#8230;I have created a sample STP layout and <strong>Save it as  Infopath Web Browser Template Part</strong>.</p>
<p><a href="http://deepumi.files.wordpress.com/2012/01/common-layout.png"><br />
<img class="alignnone size-full wp-image-751" title="common layout" src="http://deepumi.files.wordpress.com/2012/01/common-layout.png?w=600&#038;h=328" alt="" width="600" height="328" /></a></p>
<p>Once you  save the template as .STP file then you can add it as custom template in the template section</p>
<p><a href="http://deepumi.files.wordpress.com/2012/01/add_remove_blank1.png"><br />
<img class="alignnone size-full wp-image-771" title="add_remove_blank" src="http://deepumi.files.wordpress.com/2012/01/add_remove_blank1.png?w=600&#038;h=191" alt="" width="600" height="191" /></a></p>
<p>Click <strong>Add or Remove Custom Controls</strong> and select template part and browse your .STP file.</p>
<p><a href="http://deepumi.files.wordpress.com/2012/01/control_type.png"><br />
<img class="alignnone size-full wp-image-753" title="control_type" src="http://deepumi.files.wordpress.com/2012/01/control_type.png?w=600" alt=""   /><br />
</a></p>
<p>Once the template added successfully it will appear in the<strong> Custom control section</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2012/01/control_section.png"><br />
<img class="alignnone size-full wp-image-755" title="control_section" src="http://deepumi.files.wordpress.com/2012/01/control_section.png?w=600" alt=""   /></a></p>
<p>That&#8217;s it. Now you can reuse the new custom template / control to any new forms and existing forms.</p>
<p><a title="Click here to download the template" href="http://www.4shared.com/zip/exBYR-eB/Template_-_STP_files.html" target="_blank">Click here to Download the template</a></p>
<p>Hope this helps and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/745/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/745/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/745/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/745/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/745/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/745/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/745/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=745&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2012/01/08/create-custom-template-in-infopath-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2012/01/select-template.png" medium="image">
			<media:title type="html">select template</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2012/01/common-layout.png" medium="image">
			<media:title type="html">common layout</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2012/01/add_remove_blank1.png" medium="image">
			<media:title type="html">add_remove_blank</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2012/01/control_type.png" medium="image">
			<media:title type="html">control_type</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2012/01/control_section.png" medium="image">
			<media:title type="html">control_section</media:title>
		</media:content>
	</item>
		<item>
		<title>Silverlight Dashboard</title>
		<link>http://deepumi.wordpress.com/2011/10/02/silverlight-dashboard/</link>
		<comments>http://deepumi.wordpress.com/2011/10/02/silverlight-dashboard/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 14:47:59 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[dashboard]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=630</guid>
		<description><![CDATA[I  have found a dashboard control from Microsoft expression website (created by infragistics.com) which  inspired me to create a  dashboard control. Click here to watch live   &#124;   Click here to Download If you find the Silverlight Dashboard code useful, please consider donating In this article I&#8217;m going to explain the types of controls used to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=630&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I  have found a dashboard control from <a title="RIA Dashboards with silverlight" href="http://expression.microsoft.com/en-us/dd568649.aspx" target="_blank">Microsoft expression</a> website (created by infragistics.com) which  inspired me to create a  dashboard control.</p>
<p><a title="Click here to watch live" href="http://www.belindaperez.com/demo/deepu/dashboard/dashboard.aspx" target="_blank">Click here to watch live</a>   |   <a title="Click here to download" href="http://www.4shared.com/file/HYlTdo-u/DashBoardSample.html" target="_blank">Click here to Download</a><a title="Click here to watch live" href="http://www.belindaperez.com/demo/deepu/dashboard/dashboard.aspx" target="_blank"><br />
</a></p>
<p>If you find the Silverlight Dashboard code useful, please consider donating<br />
<a target='_blank' href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=deepumi%40gmail%2ecom&amp;lc=US&amp;item_name=Deepu%20MI%27s%20Blog&amp;no_note=0&amp;currency_code=USD&amp;bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest"><br />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif"><br />
</a></p>
<p><a href="http://deepumi.files.wordpress.com/2011/04/dashboard.png"><img class="alignnone size-full wp-image-631" title="dashboard" src="http://deepumi.files.wordpress.com/2011/04/dashboard.png?w=600&#038;h=365" alt="" width="600" height="365" /></a></p>
<p>In this article I&#8217;m going to explain the types of controls used to create a interactive dashboard.</p>
<ol>
<li>Grid based layout</li>
<li>Customer Master / Detail  list</li>
<li>Chart control</li>
<li>Bing Map control</li>
<li>Custom Splash screen</li>
</ol>
<p><strong><br />
Grid based layout</strong></p>
<p>A simple grid  layout with 2/2 row column.<strong><br />
</strong><br />
<code> &lt;Grid&gt;<br />
&lt;Grid.RowDefinitions&gt;<br />
&lt;RowDefinition Height="5"/&gt;<br />
&lt;RowDefinition Height="85"/&gt;<br />
&lt;RowDefinition Height="*"/&gt;<br />
&lt;/Grid.RowDefinitions&gt;<br />
&lt;Grid.ColumnDefinitions&gt;<br />
&lt;ColumnDefinition Width="5"/&gt;<br />
&lt;ColumnDefinition Width="250"/&gt;<br />
&lt;ColumnDefinition Width="5"/&gt;<br />
&lt;ColumnDefinition Width="*"/&gt;<br />
&lt;/Grid.ColumnDefinitions&gt;<br />
&lt;/Grid&gt;</code></p>
<p><code></code><strong>Customer Master / Detail  list</strong></p>
<p>For master detail scenario ListBox control is the right choice to build.. The control will list the customer name and location, once you click the detail link its going to take you to a popup window for more information.<br />
<code>&lt;ListBox x:Name="lbCustomer" Style="{StaticResource ListBoxBackground}" SelectionChanged="CustomerChanged"&gt;<br />
&lt;ListBox.ItemTemplate&gt;<br />
&lt;DataTemplate&gt;<br />
&lt;StackPanel Orientation="Horizontal"&gt;<br />
&lt;Image Source="{Binding ImageSource}" Height="73" Width="73" VerticalAlignment="Top" Margin="0,10,8,0"/&gt;<br />
&lt;StackPanel&gt;<br />
&lt;TextBlock Text="{Binding Name}" Foreground="YellowGreen" FontSize="14" /&gt;<br />
&lt;HyperlinkButton Content="Detail" Foreground="DarkRed" Name="lnkDetailCustomer" Click="CustomerDetailClick" /&gt;<br />
&lt;/StackPanel&gt;<br />
&lt;/StackPanel&gt;<br />
&lt;/DataTemplate&gt;<br />
&lt;/ListBox.ItemTemplate&gt;<br />
&lt;/ListBox&gt;</code></p>
<p><code></code><strong>Chart Controls</strong></p>
<p>Bar Chart</p>
<p><strong></strong><code>&lt;toolkit:Chart Style="{StaticResource ChartBackground}" Name="chartCoulumn" Width="490" Height="290"&gt;<br />
&lt;toolkit:Chart.Series&gt;<br />
&lt;toolkit:ColumnSeries SelectionChanged="ColumnSeriesChanged" Name="chart1" Title="Sales" DependentValuePath="Profit"<br />
IndependentValuePath="Month"<br />
AnimationSequence="Simultaneous"<br />
IsSelectionEnabled="True"&gt;<br />
&lt;toolkit:ColumnSeries.DataPointStyle&gt;<br />
&lt;Style TargetType="toolkit:ColumnDataPoint"&gt;<br />
&lt;Setter Property="Background" Value="YellowGreen"/&gt;<br />
&lt;Setter Property="BorderBrush" Value="YellowGreen"/&gt;<br />
&lt;/Style&gt;<br />
&lt;/toolkit:ColumnSeries.DataPointStyle&gt;<br />
&lt;/toolkit:ColumnSeries&gt;<br />
&lt;/toolkit:Chart.Series&gt;<br />
&lt;/toolkit:Chart&gt;</code></p>
<p><strong>Pie chart<br />
</strong><br />
<code> &lt;toolkit:Chart Style="{StaticResource ChartBackground}" x:Name="chartPie" VerticalAlignment="Top" Width="340" Height="290"&gt;<br />
&lt;toolkit:Chart.Series&gt;<br />
&lt;toolkit:PieSeries Margin="0,0,0,0" Padding="0,0,0,0" IndependentValuePath="Month"<br />
DependentValuePath="Profit" AnimationSequence="Simultaneous"/&gt;<br />
&lt;/toolkit:Chart.Series&gt;<br />
&lt;/toolkit:Chart&gt;</code></p>
<p><strong>Map<br />
</strong><br />
<code>&lt;bing:Map Width="600" Grid.Row="2" Margin="2,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Stretch"<br />
CredentialsProvider="&lt;Replace your credential here" Name="map" LogoVisibility="Collapsed" Culture="en-US" &gt;<br />
&lt;/bing:Map&gt;</code></p>
<p><a title="Click here to watch live" href="http://www.belindaperez.com/demo/deepu/dashboard/dashboard.aspx" target="_blank">Click here to watch live</a>   |   <a title="Click here to download" href="http://www.4shared.com/file/HYlTdo-u/DashBoardSample.html" target="_blank">Click here to Download</a></p>
<p>If you find the Silverlight Dashboard code useful, please consider donating<br />
<a target='_blank' href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=deepumi%40gmail%2ecom&amp;lc=US&amp;item_name=Deepu%20MI%27s%20Blog&amp;no_note=0&amp;currency_code=USD&amp;bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest"><br />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif"><br />
</a></p>
<p>Hope this helps and If you have any comments, please feel free to write your feedback.<br />
Thanks<br />
Deepu</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/630/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=630&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2011/10/02/silverlight-dashboard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" medium="image" />

		<media:content url="http://deepumi.files.wordpress.com/2011/04/dashboard.png" medium="image">
			<media:title type="html">dashboard</media:title>
		</media:content>

		<media:content url="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" medium="image" />
	</item>
		<item>
		<title>Animation using PathListBox control in Silverlight</title>
		<link>http://deepumi.wordpress.com/2011/04/23/animation-using-pathlistbox-control-in-silverlight/</link>
		<comments>http://deepumi.wordpress.com/2011/04/23/animation-using-pathlistbox-control-in-silverlight/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 13:52:48 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[PathListBox]]></category>
		<category><![CDATA[Simple Animation]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=646</guid>
		<description><![CDATA[The PathListBox is new control introduced in Silverlight 4.0 for listing items in a various shapes like path, circle, arc, rectangle etc. This control is similar to traditional ListBox control which support data binding and display of one or more items at design time or dynamically at run time. The pathlistbox provides many properties like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=646&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The PathListBox is new control introduced in Silverlight 4.0 for listing items in a various shapes like path, circle, arc, rectangle etc. This control is similar to traditional ListBox control which support data binding and display of one or more items at design time or dynamically at run time. The pathlistbox provides many properties like orienation, padding etc.</p>
<p><span style="font-family:monospace;"><strong><strong><a title="Click here to watch video" href="http://www.youtube.com/watch?v=EUoevB2qzaE" target="_blank">Watch Video</a> </strong>|<strong>  <a title="Click here to view live demo" href="http://belindaperez.com/demo/deepu/plb/" target="_blank">Live Demo</a> </strong>| <strong><a title="Click here to download the source code" href="http://www.4shared.com/file/Hb51kAgA/PathListBoxDemo.html" target="_blank">Download Source Code</a></strong> | <strong><a title="Click here to download the presentation" href="http://www.4shared.com/file/vG4D5zWv/Path_List_Box_control_Demo_PLB.html" target="_blank">Download Presentation</a></strong><br />
</strong></span></p>
<span style="text-align:center; display: block;"><a href="http://deepumi.wordpress.com/2011/04/23/animation-using-pathlistbox-control-in-silverlight/"><img src="http://img.youtube.com/vi/EUoevB2qzaE/2.jpg" alt="" /></a></span>
<p><code><br />
</code>In this tutorial, we’ll create a simple animation using PathListBox Control..</p>
<p><strong>Open Expression Blend Editor &amp; Create a new project in Silverlight Application + Website.</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2011/04/plb_prj1.png"><img class="alignnone size-full wp-image-657" title="plb_prj1" src="http://deepumi.files.wordpress.com/2011/04/plb_prj1.png?w=600" alt=""   /></a></p>
<p><strong>Add a new shape  Ellipse in to the page.</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2011/04/plb_ellipse.png"><img class="alignnone size-full wp-image-652" title="plb_ellipse" src="http://deepumi.files.wordpress.com/2011/04/plb_ellipse.png?w=600" alt=""   /></a></p>
<p><strong>Add a PathListBox control in to the page(PLB).</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2011/04/plb_plb.png"><img class="alignnone size-full wp-image-655" title="plb_plb" src="http://deepumi.files.wordpress.com/2011/04/plb_plb.png?w=600" alt=""   /></a></p>
<p><strong>Drag &amp; drop few images in to PLB control. (Press control to select multiple items from the project properties).</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2011/04/plb_imgs.png"><img class="alignnone size-full wp-image-654" title="plb_imgs" src="http://deepumi.files.wordpress.com/2011/04/plb_imgs.png?w=600&#038;h=316" alt="" width="600" height="316" /></a></p>
<p><strong> </strong><strong>Select PLB control from object &amp; time line window.</strong></p>
<p><strong></strong><strong>Go to PLB control properties window and find out Layout Paths.</strong></p>
<p><strong></strong><strong>Click on select an object to use as a LayoutPath.</strong></p>
<p><strong>Select Ellipse shape as the LayoutPath</strong></p>
<div><a href="http://deepumi.files.wordpress.com/2011/04/plb_source.png"><img class="alignnone size-full wp-image-658" title="plb_source" src="http://deepumi.files.wordpress.com/2011/04/plb_source.png?w=600&#038;h=286" alt="" width="600" height="286" /></a></div>
<p><code><br />
</code></p>
<div><strong>The images should show in circular layout path</strong></div>
<div><strong><br />
</strong></div>
<div><a href="http://deepumi.files.wordpress.com/2011/04/plb_circlepath.png"><img class="alignnone size-full wp-image-651" title="plb_circlepath" src="http://deepumi.files.wordpress.com/2011/04/plb_circlepath.png?w=600" alt=""   /></a></div>
<p><code><br />
</code></p>
<div><strong>Add a Projection for Ellipse  shape called PlaneProjection to rotate the Ellipse.</strong></div>
<p><a href="http://deepumi.files.wordpress.com/2011/04/plb_ellipse_xaml.png"><img class="alignnone size-full wp-image-653" title="plb_ellipse_xaml" src="http://deepumi.files.wordpress.com/2011/04/plb_ellipse_xaml.png?w=600" alt=""   /></a></p>
<p><strong>Add a StoryBoad control from object &amp; time line window.</strong></p>
<p><strong>Switch to XAML version and write few lines of XAML code for animation purpose.</strong></p>
<p><strong>Add a Double Animation inside the StoryBoard control and set Target name &amp; properties.</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2011/04/plb_storyboard.png"><img class="alignnone size-full wp-image-659" title="plb_storyboard" src="http://deepumi.files.wordpress.com/2011/04/plb_storyboard.png?w=600" alt=""   /></a></p>
<div>
<p><strong>Add the following line of code in the Page Load method in order to start the animation.</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2011/04/plb_storyboard_begin.png"><img class="alignnone size-full wp-image-660" title="plb_storyboard_begin" src="http://deepumi.files.wordpress.com/2011/04/plb_storyboard_begin.png?w=600" alt=""   /></a></p>
<p><strong>Hit F5 and see the demo.</strong></p>
<p><strong><a href="http://deepumi.files.wordpress.com/2011/04/plb_preview.png"><img title="plb_preview" src="http://deepumi.files.wordpress.com/2011/04/plb_preview.png?w=418&#038;h=466" alt="" width="418" height="466" /></a><br />
</strong></p>
<p><strong><a title="Click here to watch video" href="http://www.youtube.com/watch?v=EUoevB2qzaE" target="_blank">Watch Video</a> </strong>|<strong>  <a title="Click here to view live demo" href="http://belindaperez.com/demo/deepu/plb/" target="_blank">Live Demo</a> </strong>| <strong><a title="Click here to download the source code" href="http://www.4shared.com/file/Hb51kAgA/PathListBoxDemo.html" target="_blank">Download Source Code</a></strong> | <strong><a title="Click here to download the presentation" href="http://www.4shared.com/file/vG4D5zWv/Path_List_Box_control_Demo_PLB.html" target="_blank">Download Presentation</a></strong></p>
<p>Hope this helps and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/646/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=646&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2011/04/23/animation-using-pathlistbox-control-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_prj1.png" medium="image">
			<media:title type="html">plb_prj1</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_ellipse.png" medium="image">
			<media:title type="html">plb_ellipse</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_plb.png" medium="image">
			<media:title type="html">plb_plb</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_imgs.png" medium="image">
			<media:title type="html">plb_imgs</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_source.png" medium="image">
			<media:title type="html">plb_source</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_circlepath.png" medium="image">
			<media:title type="html">plb_circlepath</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_ellipse_xaml.png" medium="image">
			<media:title type="html">plb_ellipse_xaml</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_storyboard.png" medium="image">
			<media:title type="html">plb_storyboard</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_storyboard_begin.png" medium="image">
			<media:title type="html">plb_storyboard_begin</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/04/plb_preview.png" medium="image">
			<media:title type="html">plb_preview</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery Autocomplete with multiple fileds in Asp.Net C#</title>
		<link>http://deepumi.wordpress.com/2011/03/25/jquery-auto-completion-with-multiple-fileds-in-asp-net-c/</link>
		<comments>http://deepumi.wordpress.com/2011/03/25/jquery-auto-completion-with-multiple-fileds-in-asp-net-c/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 16:53:35 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Autocomplete]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=590</guid>
		<description><![CDATA[This  article explains jQuery autocomplete with  multiple fields using Asp.Net C#. Scenario :  Listing business titles for a specific city/state location. Initially I used AJAX CONTROL TOOLKIT (ACT) but I ran in to many issues and finally decided to use jQuery approach which really saved my time. You can Download the complete source code from here Add jQuery [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=590&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This  article explains jQuery autocomplete with  multiple fields using Asp.Net C#.</p>
<p>Scenario :  Listing business titles for a specific city/state location.</p>
<p>Initially I used AJAX CONTROL TOOLKIT (ACT) but I ran in to many issues and finally decided to use jQuery approach which really saved my time.</p>
<p><a title="Click here to download" href="http://www.4shared.com/file/FvnCpJ6R/jQueryAutoComplete.html" target="_blank">You can Download the complete source code from here</a></p>
<p><a href="http://deepumi.files.wordpress.com/2011/03/ac_1.png"><img class="alignnone size-full wp-image-593" title="ac_1" src="http://deepumi.files.wordpress.com/2011/03/ac_1.png?w=600" alt=""   /></a></p>
<p><a href="http://deepumi.files.wordpress.com/2011/03/ac_2.png"><img class="alignnone size-full wp-image-594" title="ac_2" src="http://deepumi.files.wordpress.com/2011/03/ac_2.png?w=600" alt=""   /></a></p>
<p><strong>Add jQuery assets on your page.</strong></p>
<p><pre class="brush: xml;">
&lt;link href=&quot;styles/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;scripts/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;scripts/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
</pre></p>
<p><strong>jQuery Code for consuming web service.</strong></p>
<p><pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
$(function () {
var search = $(&quot;#&lt;%=txtSearch.ClientID%&gt;&quot;);
var location = $(&quot;#&lt;%=txtLocation.ClientID %&gt;&quot;);
search.autocomplete({
    source: function (request, response) {
        $.ajax({
            url: '&lt;%=ResolveUrl(&quot;~/&quot;) %&gt;AutoCompleteService.asmx/GetKeyWords',
            data: &quot;{ 'keyword': '&quot; + search.val() + &quot;', 'location' : '&quot; + location.val() + &quot;'}&quot;,
            dataType: &quot;json&quot;,
            type: &quot;POST&quot;,
            contentType: &quot;application/json; charset=utf-8&quot;,
            dataFilter: function (data) { return data; },
            success: function (data) {
                if (data.d != null) {
                    response($.map(data.d, function (item) {
                        return {
                            value: item
                        }
                    }))
                }
            },
            error: function (XMLHttpRequest, textStatus, error) {
                //alert(textStatus);
            }
        });
    },
    minLength: 1
});

location.autocomplete({
    source: function (request, response) {
        $.ajax({
            url: '&lt;%=ResolveUrl(&quot;~/&quot;) %&gt;AutoCompleteService.asmx/GetLocations',
            data: &quot;{ 'location': '&quot; + location.val() + &quot;'}&quot;,
            dataType: &quot;json&quot;,
            type: &quot;POST&quot;,
            contentType: &quot;application/json; charset=utf-8&quot;,
            dataFilter: function (data) { return data; },
            success: function (data) {
                if (data.d != null) {
                    response($.map(data.d, function (item) {
                        return {
                            value: item
                        }
                    }))
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                // alert(textStatus);
            }
        });
    },
    minLength: 1
});

});
&lt;/script&gt;
</pre></p>
<p><strong>Code-behind for ASMX class</strong> (don&#8217;t forget to uncomment  <span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;"><strong>System.Web.Script.Services.ScriptService</strong>)</span></p>
<p><pre class="brush: csharp;">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Services;
using System.Collections;

[WebService(Namespace = &quot;http://tempuri.org/&quot;)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class AutoCompleteService : System.Web.Services.WebService {

public AutoCompleteService () {
}

IDictionary&lt;string, string[]&gt; LoadItems()
{
    IDictionary&lt;string, string[]&gt; items = new Dictionary&lt;string, string[]&gt;();

    items.Add(&quot;Newyork&quot;, new string[]
                                        {
                                            &quot;Applebee's&quot;, &quot;Apiary&quot;, &quot;Brenda's French Soul Food&quot;,&quot;TGI Friday's&quot;,&quot;Cafe Venue&quot;
                                        });

    items.Add(&quot;Los Angeles&quot;, new string[]
                                        {
                                            &quot;Los 1&quot;, &quot;Los 2&quot;, &quot;Los 3&quot;,&quot;TGI Friday's&quot;,&quot;Cafe Venue&quot;
                                        });

    items.Add(&quot;Las Vegas&quot;, new string[]
                                        {
                                            &quot;Los 1&quot;, &quot;Los 2&quot;, &quot;Los 3&quot;,&quot;TGI Friday's&quot;,&quot;Cafe Venue&quot;
                                        });

    return items;
}

[WebMethod]
public string[] GetKeyWords(string keyword, string location)
{
    var items = LoadItems();
    if (items != null &amp;&amp; items.Count &gt; 0)
    {
        //Get all items for a specific location
        var result = (from item in items
                        where item.Key.Equals(location, StringComparison.OrdinalIgnoreCase)
                        select item.Value)
                    .FirstOrDefault();

        //check whether the items start with the keyword
        return result.Where
                            (
                                o =&gt; o.StartsWith(keyword, StringComparison.OrdinalIgnoreCase)
                            ).ToArray&lt;string&gt;();
    }
    return null;
}

[WebMethod]
public string[] GetLocations(string location)
{
    var items = LoadItems();
    if (items != null &amp;&amp; items.Count &gt; 0)
    {
        //check whether the items start with the location
        return (from item in items
                        where item.Key.StartsWith(location, StringComparison.OrdinalIgnoreCase)
                        select item.Key).ToArray&lt;string&gt;();

    }
    return null;
}
}
</pre></p>
<p><a title="Click here to download" href="http://www.4shared.com/file/FvnCpJ6R/jQueryAutoComplete.html" target="_blank">You can Download the complete source code from here</a></p>
<p>Hope this help and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/590/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=590&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2011/03/25/jquery-auto-completion-with-multiple-fileds-in-asp-net-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/03/ac_1.png" medium="image">
			<media:title type="html">ac_1</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2011/03/ac_2.png" medium="image">
			<media:title type="html">ac_2</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery reorder list &amp; saving in to database from Asp.Net C#</title>
		<link>http://deepumi.wordpress.com/2010/11/01/jquery-reorder-list-saving-in-to-database-from-asp-net-c/</link>
		<comments>http://deepumi.wordpress.com/2010/11/01/jquery-reorder-list-saving-in-to-database-from-asp-net-c/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 03:52:34 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery image reorder]]></category>
		<category><![CDATA[jQuery Reorder list]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=541</guid>
		<description><![CDATA[I have faced lot of challenges while using Ajax Toolkit control for re-ordering a list and saving to database.. After doing some R&#38;D I&#8217;ve  found some nice samples which uses jQuery which is very light weight.The good part of jQuery is we can control the rendering marking.. with CSS and from the backed we don&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=541&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have faced lot of challenges while using Ajax Toolkit control for re-ordering a list and saving to database.. After doing some R&amp;D I&#8217;ve  found some nice samples which uses <strong>jQuery</strong> which is very light weight.The good part of jQuery is we can control the rendering marking.. with CSS and from the backed we don&#8217;t need any <strong>ViewState </strong>or any kind of mechanism..</p>
<p><a title="Click here to download" href="http://www.4shared.com/file/bE-w7t44/jQueryReorderNet.html" target="_blank">You can Download the complete source code from here</a></p>
<p><a href="http://deepumi.files.wordpress.com/2010/11/reorderdemo.png"><img class="alignnone size-full wp-image-568" title="reorderdemo" src="http://deepumi.files.wordpress.com/2010/11/reorderdemo.png?w=600" alt=""   /></a><br />
To begin with reorder stuff add jQuery scripts to your aspx page.</p>
<p><pre class="brush: xml;">
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;list-reorder.css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.2.6.pack.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.disable.text.select.pack.js&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;json2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.listreorder.js&quot;&gt;&lt;/script&gt;
</pre></p>
<p>The sample code uses Unordered list and list view control.. Add a List view control in to asp.net page..inside UL markup use <strong>class </strong>name as &#8220;<strong>lists</strong>&#8220;.</p>
<p>Next is adding a attribute to <strong>&lt;li&gt;</strong> tag which help to identify the exact element you are ordering,  so I am adding attribute name as <strong>id</strong> and setting value as ItemId which fetching from DB column identity value.</p>
<p>&lt;li <strong>id</strong>=&#8217;&lt;%# DataBinder.Eval(Container.DataItem, &#8220;<strong>ItemId</strong>&#8220;)%&gt;&#8217;&gt;</p>
<p><pre class="brush: xml;">
&lt;ul class=&quot;lists&quot;&gt;
&lt;asp:ListView ID=&quot;lvNews&quot; runat=&quot;server&quot;&gt;
&lt;LayoutTemplate&gt;
&lt;asp:Panel ID=&quot;itemPlaceHolder&quot; runat=&quot;server&quot; /&gt;
&lt;/LayoutTemplate&gt;
&lt;ItemTemplate&gt;
&lt;li id='&lt;%# DataBinder.Eval(Container.DataItem, &quot;ItemId&quot;)%&gt;'&gt;
&lt;%# DataBinder.Eval(Container.DataItem, &quot;Title&quot;)%&gt;&lt;/li&gt;
&lt;/ItemTemplate&gt;
&lt;ItemSeparatorTemplate&gt;
&lt;/ItemSeparatorTemplate&gt;
&lt;/asp:ListView&gt;
&lt;/ul&gt;
</pre></p>
<p>Add following code in codebehind class for binding the data to list view control</p>
<p><pre class="brush: csharp;">
using System;
using System.Collections.Generic;

public class News
{

public int ItemId { get; set; }
public string Title { get; set; }

internal static IList&lt;News&gt; GetNews()  //replace this method call with your db logic
{
return new List&lt;News&gt;
{
new News{ItemId=1,Title=&quot;News Title 1&quot;},
new News{ItemId=2,Title=&quot;News Title 2&quot;},
};
}

internal static void SaveReorderList(List&lt;string&gt; items) //replace this method call with your db logic
{
int order = 1;
string sql = string.Empty;
foreach (string item in items)
{
//replace with your sql statement.
sql = &quot;update news set display_order = &quot; + order + &quot; where news_id = '&quot; + item + &quot;'&quot;;
order += 1;
sql = string.Empty;
}
}
}

public partial class jQueryReorder_Net_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindNews();
}
}

private void BindNews()
{
var news = News.GetNews();
lvNews.DataSource = news;
lvNews.DataBind();
}

[System.Web.Services.WebMethod]
public static string SaveReOrder(List&lt;String&gt; items)
{
try
{
News.SaveReorderList(items);
return string.Empty;
}
catch (Exception exp)
{
return exp.ToString();
}
}
}
</pre></p>
<p>Finally I am adding jQuery re-order script in to the page.</p>
<p><pre class="brush: xml;">
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
var options = {
itemHoverClass: 'itemHover',
dragTargetClass: 'dragTarget',
dropTargetClass: 'dropTarget',
useDefaultDragHandle: true
};

var lists = $('.lists').ListReorder(options);
var items = [];
lists.bind('listorderchanged', function(evt, jqList, listOrder) {
for (var i = 0; i &lt; listOrder.length; i++) {
items[i] = $(&quot;ul li:eq(&quot; + i + &quot;)&quot;).attr('id');
}
});

$('#btnSave').click(function() {
if (items.length &gt; 0) {
var jsonText = JSON.stringify({ items: items });
$.ajax({
type: &quot;POST&quot;,
url: '&lt;%=ResolveUrl(&quot;~/jQueryReorder.Net/&quot;)%&gt;Default.aspx/SaveReOrder',
data: jsonText,
contentType: &quot;application/json; charset=utf-8&quot;,
dataType: &quot;json&quot;,
success: function() { $(&quot;#result&quot;).html(&quot;Reorder items saved successfully&quot;); },
failure: function(msg) { alert(msg); }
});
}
else {
alert(&quot;Sorry you have not reorder any items&quot;);
}
});
});
&lt;/script&gt;
</pre></p>
<p>When ever the list order changed the event get fired and loop through the entire list items and sets the attribute id value in to a array which will be converted later to JSON format and pass it to a web method for saving into database. Don&#8217;t forget to add method attribute as <strong>System.Web.Services.WebMethod</strong> in the reorder save method.</p>
<p><a title="Click here to download" href="http://www.4shared.com/file/bE-w7t44/jQueryReorderNet.html" target="_blank">You can Download the complete source code from here</a></p>
<p>Hope this helps and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/541/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=541&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2010/11/01/jquery-reorder-list-saving-in-to-database-from-asp-net-c/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/11/reorderdemo.png" medium="image">
			<media:title type="html">reorderdemo</media:title>
		</media:content>
	</item>
		<item>
		<title>Silverlight Integration in MOSS 2007 with out WebPart</title>
		<link>http://deepumi.wordpress.com/2010/08/29/silverlight-integration-in-moss-2007-with-out-webpart/</link>
		<comments>http://deepumi.wordpress.com/2010/08/29/silverlight-integration-in-moss-2007-with-out-webpart/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 03:33:16 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=522</guid>
		<description><![CDATA[In this article I will walk you through how you can integrate a Silverlight application in Sharepoint with out using any webpart. (Download the STP file) I will use one of  my existing silverlight slide show application for this demo.. Upload your silverlight related files in the sharepoint repository,  here I  am uploading Silvrlight.js, Silverlight [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=522&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this article I will walk you through how you can integrate a Silverlight application in Sharepoint with out using any <strong>webpart</strong><strong>. (</strong><a href="http://www.4shared.com/file/ue8N3qxi/SilverlightLibrary.html" target="_blank">Download the <strong>STP </strong>file</a>)</p>
<p><strong><a href="http://deepumi.files.wordpress.com/2010/08/silverlighttestpage.png"><img class="alignnone size-full wp-image-528" title="silverlighttestpage" src="http://deepumi.files.wordpress.com/2010/08/silverlighttestpage.png?w=600&#038;h=478" alt="" width="600" height="478" /></a><br />
</strong><br />
I will use one of  my existing silverlight <a href="http://deepumi.wordpress.com/2010/04/21/simple-image-scroller-slide-show-using-silverlight-listbox-control/" target="_blank">slide show</a> application for this demo..</p>
<p>Upload your silverlight related files in the sharepoint repository,  here I  am uploading Silvrlight.js, Silverlight XAP file  and images folder in the Shared Document library</p>
<p><strong><a href="http://deepumi.files.wordpress.com/2010/08/doclib13.png"><img title="doclib1" src="http://deepumi.files.wordpress.com/2010/08/doclib13.png?w=752&#038;h=253" alt="" width="752" height="253" /></a></strong><br />
The next step is open the website in  SPD (Sharepoint Designer) and create a aspx page under Shared Documents library and add some markup code inside the content place holder (<strong>PlaceHolderMain</strong>) and copy paste the silverlight object and javascript code.</p>
<p><a href="http://deepumi.files.wordpress.com/2010/08/spdpage.png"><img class="alignnone size-full wp-image-532" title="spdpage" src="http://deepumi.files.wordpress.com/2010/08/spdpage.png?w=600&#038;h=336" alt="" width="600" height="336" /></a></p>
<p>Save &amp; preview the page in browser you should be able to see your Silverlight application running inside  Sharepoint..</p>
<p><a href="http://www.4shared.com/file/ue8N3qxi/SilverlightLibrary.html" target="_blank">Download the <strong>STP </strong>file</a></p>
<p>Hope this help and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/522/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=522&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2010/08/29/silverlight-integration-in-moss-2007-with-out-webpart/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/08/silverlighttestpage.png" medium="image">
			<media:title type="html">silverlighttestpage</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/08/doclib13.png" medium="image">
			<media:title type="html">doclib1</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/08/spdpage.png" medium="image">
			<media:title type="html">spdpage</media:title>
		</media:content>
	</item>
		<item>
		<title>Twitter Tweets in Asp.Net C#</title>
		<link>http://deepumi.wordpress.com/2010/08/03/twitter-tweets-in-asp-net-c/</link>
		<comments>http://deepumi.wordpress.com/2010/08/03/twitter-tweets-in-asp-net-c/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 16:11:09 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Twitter feeds]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=474</guid>
		<description><![CDATA[I&#8217;ve been working on the twitter feed in one of my recent project where tweets getting updated on a regular interval time (say for every 30 minutes or 1 hr). I am creating this as a ASCX control so that I can reuse for multiple projects. You can Download the complete source code from here [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=474&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on the twitter feed in one of my recent project where tweets getting updated on a regular interval time (say for every 30 minutes or 1 hr). I am creating this as a ASCX control so that I can reuse for multiple projects.</p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/W3UmxlJW/TweetsControl.html" target="_blank">You can Download the complete source code from here</a></p>
<p><a href="http://deepumi.files.wordpress.com/2010/08/tweets1.png"><img class="alignnone size-full wp-image-503" title="tweets" src="http://deepumi.files.wordpress.com/2010/08/tweets1.png?w=600" alt=""   /></a></p>
<p>I am dropping a ListView control in the ASCX page which render the Twitter Profile name along with  Title, Description and Published date for the latest tweets.</p>
<p><a href="http://deepumi.files.wordpress.com/2010/08/twittercontrol1.png"><img class="alignnone size-full wp-image-509" title="twitterControl" src="http://deepumi.files.wordpress.com/2010/08/twittercontrol1.png?w=600" alt=""   /></a></p>
<p>Couple of properties need to configure to use this control</p>
<p>TwitterProfileName &#8211; Your twitter profile name or screen name</p>
<p>TweetsCount &#8211; No of tweets you want to return (default is 10).</p>
<p><pre class="brush: xml;">
&lt;asp:ListView ID=&quot;lvTweets&quot; runat=&quot;server&quot;&gt;
&lt;LayoutTemplate&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td height=&quot;30&quot; runat=&quot;server&quot;&gt;
&lt;a href=&quot;http://twitter.com/&lt;%=&lt;span class=&amp;quot;hiddenSpellError&amp;quot; pre=&amp;quot;&amp;quot;&gt;TwitterProfileName&lt;/span&gt;%&gt;&quot; target=&quot;_new&quot;&gt;&lt;/a&gt;
&lt;%= TwitterProfileName%&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;asp:PlaceHolder ID=&quot;itemPlaceholder&quot; runat=&quot;server&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
77B5D2;&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/LayoutTemplate&gt;
&lt;ItemTemplate&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a target=&quot;_new&quot; href='&lt;%# DataBinder.Eval(Container.DataItem, &quot;Link&quot;)%&gt;'&gt;
&lt;%# DataBinder.Eval(Container.DataItem, &quot;Title&quot;)%&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;%# DataBinder.Eval(Container.DataItem, &quot;PublishedDate&quot;, &quot;{0:h:mm  tt MMM d}&quot;)%&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/ItemTemplate&gt;
&lt;EmptyDataTemplate&gt;
&lt;div&gt;
&lt;h3&gt;
No tweets available.&lt;/h3&gt;
&lt;/div&gt;
&lt;/EmptyDataTemplate&gt;
&lt;ItemSeparatorTemplate&gt;
&lt;tr&gt;
1px solid lightgrey;&quot;&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/ItemSeparatorTemplate&gt;
&lt;/asp:ListView&gt;
</pre></p>
<p><pre class="brush: csharp;">
using System;
using System.Linq;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;

public partial class TweetsControl : System.Web.UI.UserControl
{
private static DateTime? lastUpdated = null; //holds last updated time

private static XDocument xDoc = null; //static variable to store the result xml.

//Updates latest Tweets for every 10 minutes in page refresh.
private static Double Interval = 10;

//Determine its time to get the new tweets
private static Boolean IsTimeForUpdate
{
get
{
if (lastUpdated.HasValue &amp;&amp; DateTime.Now &gt; lastUpdated.Value.AddMinutes(Interval))
{
return true;
}
return false;
}
}

//Hold no of tweets default set it as 10.
public Int32? TweetsCount { get; set; }

//Twitter profile name or screen name.
public String TwitterProfileName { get; set; }

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetTweets();
}
}

private void GetTweets()
{
var xml = LoadXML();
IEnumerable query = null;
if (xml != null)
{
query = from e in xml.Descendants(&quot;item&quot;)
select new
{
Title = e.Element(&quot;title&quot;).Value,
Link = e.Element(&quot;link&quot;).Value,
PublishedDate = Convert.ToDateTime((e.Descendants(&quot;pubDate&quot;).First().Value)),
};
}
lvTweets.DataSource = query;
lvTweets.DataBind();
}

private XDocument LoadXML()
{
if (xDoc != null &amp;&amp; !IsTimeForUpdate)
{
return xDoc;
}
else
{
try
{
TweetsCount = TweetsCount.HasValue ? TweetsCount : 10;
var url = string.Format(&quot;http://api.twitter.com/statuses/user_timeline.rss?screen_name={0}&amp;count={1}&quot;, TwitterProfileName, TweetsCount);
xDoc = XDocument.Load(url);
lastUpdated = DateTime.Now;
return xDoc;
}
catch
{
return null;
}
}
}

}
</pre></p>
<p>Refer more api information on <a href="http://dev.twitter.com/doc" target="_blank">Twitter API </a></p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/W3UmxlJW/TweetsControl.html" target="_blank">You can Download the complete source code from here</a></p>
<p>Hope this helps</p>
<p>Thanks<br />
Deepu</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:624px;width:1px;height:1px;">using System; using System.Linq; using System.Xml.Linq; using System.Collections; using System.Collections.Generic;  public partial class TweetsControl : System.Web.UI.UserControl { private static DateTime? lastUpdated = null;  private static XDocument xDoc = null;  private static Double Interval = 10;  private static Boolean IsTimeForUpdate { get { if (lastUpdated.HasValue &amp;&amp; DateTime.Now &gt;  lastUpdated.Value.AddMinutes(Interval)) { return true; } return false; } }  public Int32? TweetsCount { get; set; }  public String TwitterProfileName { get; set; }  protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetTweets(); } }  private void GetTweets() { var xml = LoadXML(); IEnumerable query = null; if (xml != null) { query = from e in xml.Descendants(&#8220;item&#8221;) select new { Title = e.Element(&#8220;title&#8221;).Value, Link = e.Element(&#8220;link&#8221;).Value, PublishedDate =  Convert.ToDateTime((e.Descendants(&#8220;pubDate&#8221;).First().Value)), }; } lvTweets.DataSource = query; lvTweets.DataBind(); }  private XDocument LoadXML() { if (xDoc != null &amp;&amp; !IsTimeForUpdate) { return xDoc; } else { try { TweetsCount = TweetsCount.HasValue ? TweetsCount : 10; var url =  string.Format(&#8220;http://api.twitter.com/1/statuses/user_timeline.rss?screen_name={0}&amp;count={1}&#8221;,  TwitterProfileName, TweetsCount); xDoc = XDocument.Load(url); lastUpdated = DateTime.Now; return xDoc; } catch { return null; } } }  }</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/474/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=474&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2010/08/03/twitter-tweets-in-asp-net-c/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/08/tweets1.png" medium="image">
			<media:title type="html">tweets</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/08/twittercontrol1.png" medium="image">
			<media:title type="html">twitterControl</media:title>
		</media:content>
	</item>
		<item>
		<title>Export Data Grid to Excel in Silverlight 4.0</title>
		<link>http://deepumi.wordpress.com/2010/06/01/export-datagrid-to-excel-in-silverlight-4-0/</link>
		<comments>http://deepumi.wordpress.com/2010/06/01/export-datagrid-to-excel-in-silverlight-4-0/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 01:25:08 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[COM interoperability]]></category>
		<category><![CDATA[OOB (Out of browser)]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=438</guid>
		<description><![CDATA[One of the great feature in Silverlight 4.0 is  COM interoperability, now your Silverlight application can talk with Office applications using Com Automation Factory. This feature requires a trusted application (elevated permissions). In this article I am going to explain how you can export your data from datagrid to excel spread sheet as  OOB (Out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=438&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the great feature in Silverlight 4.0 is <strong> COM interoperability, </strong>now your Silverlight application can talk with Office applications using <strong>Com Automation Factory</strong>. This feature requires a trusted application (elevated permissions). In this article I am going to explain how you can export your data from datagrid to excel spread sheet as  <strong>OOB </strong>(Out of browser) application using C# 4.0 magic keyword called &#8220;<strong>dynamic</strong>&#8220;.</p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/h6tmoCb_/ExportToExcel.html" target="_blank">You can Download the complete source code from here</a></p>
<p><a href="http://deepumi.files.wordpress.com/2010/05/exporttoexcel1.png"><img class="alignnone size-full wp-image-449" title="exporttoexcel" src="http://deepumi.files.wordpress.com/2010/05/exporttoexcel1.png?w=600" alt=""   /></a></p>
<p><a href="http://deepumi.files.wordpress.com/2010/05/excelpreview.png"><img class="alignnone size-full wp-image-447" title="excelpreview" src="http://deepumi.files.wordpress.com/2010/05/excelpreview.png?w=600" alt=""   /></a></p>
<p>Create a new Silverlgiht 4.0 project using VS 2010 and add <strong>Microsoft.CSharp </strong>as reference (for <strong>C# 4.0 dynamic</strong> keyword) and also the add the name space <strong>System.Runtime.InteropServices.Automation</strong> for  com interoperability<strong><br />
</strong></p>
<p>I am using a customer class with some getter and setter properties to bind the datagrid.</p>
<p><strong>Customer Class</strong></p>
<p><pre class="brush: csharp;">

using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Runtime.InteropServices.Automation;

 public class Customer
 {
 public string FirstName { get; set; }
 public string LastName { get; set; }
 public int Age { get; set; }
 public bool IsSubscribed { get; set; }
 }
</pre></p>
<p><strong>Method for Binding customer list to the Data Grid<br />
</strong></p>
<p><pre class="brush: csharp;">
 public ExportToExcel()
 {
 InitializeComponent();
 BindDataGrid();
 }

 void BindDataGrid()
 {
 int count = 10;
 List&lt;Customer&gt; customers = new List&lt;Customer&gt;();
 for (int i = 0; i &lt; count; i++)
 {
 customers.Add(new Customer()
 {
 FirstName = &quot;First Name &quot; + i,
 LastName = &quot;Last Name &quot; + i,
 Age = i + 10,
 IsSubscribed = (i % 2 == 0)
 });
 }
 dgCustomers.ItemsSource = customers;
 }
</pre></p>
<p><strong>Method for exporting data from data grid to excel spread sheet</strong></p>
<p><pre class="brush: csharp;">
 void GenerateSpreadSheet(object sender, RoutedEventArgs e)
 {
 int rowIndex = 1;
 int coulmnIndex = 1;

 try
 {
 dynamic excel = AutomationFactory.CreateObject(&quot;Excel.Application&quot;);

 excel.workbooks.Add();

 dynamic sheet = excel.ActiveSheet;

 for (int i = 0; i &lt; dgCustomers.Columns.Count; ++i)
 {
 dynamic headerCell = sheet.Cells[rowIndex, coulmnIndex + i];
 headerCell.Value = dgCustomers.Columns[i].Header;
 headerCell.Font.Bold = true;
 headerCell.Interior.Color = 0xFF00;
 }

 foreach (Customer customer in dgCustomers.ItemsSource)
 {
 rowIndex++;

 //column 1
 dynamic cellFirstName = sheet.Cells[rowIndex, 1];
 cellFirstName.Value = customer.FirstName;
 cellFirstName.Font.Color = 003399;

 //column 2
 dynamic cellLastName = sheet.Cells[rowIndex, 2];
 cellLastName.Value = customer.LastName;
 cellLastName.Font.Color = 003399;

 //column 3
 dynamic cellAge = sheet.Cells[rowIndex, 3];
 cellAge.Value = customer.Age;
 cellAge.Font.Color = 003399;

 //column 4
 dynamic cellSubscribed = sheet.Cells[rowIndex, 4];
 cellSubscribed.Value = customer.IsSubscribed ? &quot;Yes&quot; : &quot;No&quot;;
 cellSubscribed.Font.Color = 003399;
 }
 excel.Visible = true;
 }
 catch (Exception ex)
 {
 MessageBox.Show(&quot;Error generating excel: &quot; + ex.Message);
 }
 }
</pre></p>
<p><strong>The xaml code creates a data grid and a button</strong></p>
<p><pre class="brush: xml;">
&lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;White&quot;&gt;
 &lt;Grid.RowDefinitions&gt;
 &lt;RowDefinition Height=&quot;350&quot;&gt;&lt;/RowDefinition&gt;
 &lt;RowDefinition Height=&quot;5&quot;&gt;&lt;/RowDefinition&gt;
 &lt;RowDefinition Height=&quot;25&quot;&gt;&lt;/RowDefinition&gt;
 &lt;RowDefinition Height=&quot;*&quot;&gt;&lt;/RowDefinition&gt;
 &lt;/Grid.RowDefinitions&gt;
 &lt;my:DataGrid x:Name=&quot;dgCustomers&quot; Grid.Row=&quot;0&quot; AutoGenerateColumns=&quot;True&quot; HeadersVisibility=&quot;All&quot;
 RowBackground=&quot;Azure&quot; AlternatingRowBackground=&quot;LightSteelBlue&quot; ColumnWidth=&quot;85&quot; RowHeight=&quot;30&quot;&gt;
 &lt;/my:DataGrid&gt;
 &lt;Button  Grid.Row=&quot;2&quot; Content=&quot;Export To Excel&quot; Height=&quot;25&quot; Width=&quot;120&quot; Name=&quot;btnExportExcel&quot; Click=&quot;GenerateSpreadSheet&quot;  /&gt;
 &lt;/Grid&gt;
</pre></p>
<p><strong>Out of Browser set up</strong></p>
<p>It is really easy to make a Silverlight applicaton as run out of browser mode. Right click the Silverlight project, select properties and check the <strong>ENABLE RUNNING APPLICATION OUT OF THE BROWSER</strong>.</p>
<p><a href="http://deepumi.files.wordpress.com/2010/05/outofbrowser1.png"><img class="alignnone size-full wp-image-460" title="outofbrowser1" src="http://deepumi.files.wordpress.com/2010/05/outofbrowser1.png?w=600" alt=""   /></a></p>
<p><strong>Elevated permissions (Trusted Application)</strong></p>
<p>Right click Silverlight Project &#8211; &gt; Select Properties &#8211; &gt; <strong>Click Out-Of-Browser Settings</strong></p>
<p><a href="http://deepumi.files.wordpress.com/2010/05/runelevatedtrust.png"><img class="alignnone size-full wp-image-462" title="runelevatedtrust" src="http://deepumi.files.wordpress.com/2010/05/runelevatedtrust.png?w=600" alt=""   /></a></p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/h6tmoCb_/ExportToExcel.html" target="_blank">You can Download the complete source code from here</a></p>
<p>Hope this help and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/438/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/438/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/438/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/438/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/438/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/438/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/438/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/438/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/438/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/438/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/438/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/438/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/438/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/438/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=438&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2010/06/01/export-datagrid-to-excel-in-silverlight-4-0/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/05/exporttoexcel1.png" medium="image">
			<media:title type="html">exporttoexcel</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/05/excelpreview.png" medium="image">
			<media:title type="html">excelpreview</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/05/outofbrowser1.png" medium="image">
			<media:title type="html">outofbrowser1</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/05/runelevatedtrust.png" medium="image">
			<media:title type="html">runelevatedtrust</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Spell Checker Api Asp.Net C#</title>
		<link>http://deepumi.wordpress.com/2010/05/20/google-spell-checker-api-asp-net-c/</link>
		<comments>http://deepumi.wordpress.com/2010/05/20/google-spell-checker-api-asp-net-c/#comments</comments>
		<pubDate>Thu, 20 May 2010 10:45:58 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[webclient]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=416</guid>
		<description><![CDATA[In this article you will learn how to use the Google Spell Checker API in Asp.Net C# apps Download the complete source code from here The API is very simple,  spell checking is done through a XML http post to the following url https://www.google.com/tbproxy/spell?lang=en: Request XML structure &#60;?xml version=&#8221;1.0&#8221; encoding=&#8221;utf-8&#8221; ?&#62; &#60;spellrequest textalreadyclipped=&#8221;0&#8221; ignoredups=&#8221;0&#8221; ignoredigits=&#8221;1&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=416&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this article you will learn how to use the Google Spell Checker API in Asp.Net C# apps</p>
<p><a href="http://deepumi.files.wordpress.com/2010/05/googlespellchecker.png"><img class="alignnone size-full wp-image-419" title="googleSpellChecker" src="http://deepumi.files.wordpress.com/2010/05/googlespellchecker.png?w=600" alt=""   /></a></p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/-3gSaKY7/GoogleSpellChecker.html" target="_blank">Download the complete source code from here</a></p>
<p>The API is very simple,  spell checking is done through a XML http post to the following url</p>
<p><strong>https://www.google.com/tbproxy/spell?lang=en:</strong></p>
<p><strong>Request XML structure </strong></p>
<div><span style="color:#0000ff;">&lt;?</span><span style="font-family:Courier New;"><span style="color:#800000;">xml</span> <span style="color:#ff0000;">version</span>=&#8221;<span style="color:#0000ff;">1.0</span>&#8221; <span style="color:#ff0000;">encoding</span>=&#8221;<span style="color:#0000ff;">utf-8</span>&#8221; <span style="color:#0000ff;">?&gt;</span><br />
<span style="color:#0000ff;">&lt;</span><span style="color:#800000;">spellrequest</span> <span style="color:#ff0000;">textalreadyclipped</span>=&#8221;<span style="color:#0000ff;">0</span>&#8221; <span style="color:#ff0000;">ignoredups</span>=&#8221;<span style="color:#0000ff;">0</span>&#8221; <span style="color:#ff0000;">ignoredigits</span>=&#8221;<span style="color:#0000ff;">1</span>&#8221; <span style="color:#ff0000;">ignoreallcaps</span>=&#8221;<span style="color:#0000ff;">1</span>&#8220;<span style="color:#0000ff;">&gt;</span><br />
<span style="color:#0000ff;"> &lt;</span><span style="color:#800000;">text</span><span style="color:#0000ff;">&gt;Hotal</span><span style="color:#0000ff;">&lt;</span>/<span style="color:#800000;">text</span><span style="color:#0000ff;">&gt;</span><br />
<span style="color:#0000ff;">&lt;</span>/<span style="color:#800000;">spellrequest</span></span><span style="color:#0000ff;">&gt;<br />
</span></div>
<p><strong>The folloing are the Response XML from Google API</strong></p>
<div><span style="color:#0000ff;">&lt;?</span><span style="font-family:Courier New;"><span style="color:#800000;">xml</span> <span style="color:#ff0000;">version</span>=&#8221;<span style="color:#0000ff;">1.0</span>&#8221; <span style="color:#ff0000;">encoding</span>=&#8221;<span style="color:#0000ff;">UTF-8</span>&#8220;<span style="color:#0000ff;">?&gt;</span><br />
<span style="color:#0000ff;">&lt;</span><span style="color:#800000;">spellresult</span> <span style="color:#ff0000;">error</span>=&#8221;<span style="color:#0000ff;">0</span>&#8221; <span style="color:#ff0000;">clipped</span>=&#8221;<span style="color:#0000ff;">0</span>&#8221; <span style="color:#ff0000;">charschecked</span>=&#8221;<span style="color:#0000ff;">12</span>&#8220;<span style="color:#0000ff;">&gt;</span><br />
<span style="color:#0000ff;"> &lt;</span>c <span style="color:#ff0000;">o</span>=&#8221;<span style="color:#0000ff;">0</span>&#8221; <span style="color:#ff0000;">l</span>=&#8221;<span style="color:#0000ff;">5</span>&#8221; <span style="color:#ff0000;">s</span>=&#8221;0&#8243;<span style="color:#0000ff;">&gt;</span></span>Hotel Hotly Total Ital Hots<span style="font-family:Courier New;"><span style="color:#0000ff;">&lt;</span>/<span style="color:#800000;">c</span><span style="color:#0000ff;">&gt;</span><span style="color:#0000ff;"><br />
&lt;</span>/<span style="color:#800000;">spellresult</span></span><span style="color:#0000ff;">&gt;</span></div>
<div><span style="color:#0000ff;"><br />
</span></div>
<table>
<tbody>
<tr>
<td width="48" valign="top"><strong>Tag</strong></td>
<td width="342" valign="top"><strong>Description</strong></td>
</tr>
<tr>
<td width="48" valign="top">o</td>
<td width="342" valign="top">The offset from the start of the text of the word</td>
</tr>
<tr>
<td width="48" valign="top">l</td>
<td width="342" valign="top">Length of misspelled word</td>
</tr>
<tr>
<td width="48" valign="top">s</td>
<td width="342" valign="top">Confidence of the suggestion</td>
</tr>
<tr>
<td width="48" valign="top">text</td>
<td width="342" valign="top">Tab delimited list of suggestions</td>
</tr>
</tbody>
</table>
<p>See the complete code here</p>
<p><pre class="brush: csharp;">
using System;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;

public static class SpellChecker
{
 public static String DidYouMean(string word)
 {
 string retValue = string.Empty;
 try
 {
 string uri = &quot;https://www.google.com/tbproxy/spell?lang=en:&quot;;
 using (WebClient webclient = new WebClient())
 {
 string postData = string.Format(&quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot; ?&gt;&lt;spellrequest textalreadyclipped=\&quot;0\&quot; ignoredups=\&quot;0\&quot; ignoredigits=\&quot;1\&quot; &quot;
 + &quot;ignoreallcaps=\&quot;1\&quot;&gt;&lt;text&gt;{0}&lt;/text&gt;&lt;/spellrequest&gt;&quot;,word);

 webclient.Headers.Add(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded&quot;);
 byte[] bytes = Encoding.ASCII.GetBytes(postData);
 byte[] response = webclient.UploadData(uri, &quot;POST&quot;, bytes);
 string data = Encoding.ASCII.GetString(response);
 if (data != string.Empty)
 {
    retValue = Regex.Replace(data, @&quot;&lt;(.|\n)*?&gt;&quot;, string.Empty).Split('\t')[0];
 }
 }
 }
 catch (Exception exp)
 {

 }
 return retValue;
 }
 }

protected void Page_Load(object sender, EventArgs e)
{
    string word = SpellChecker.DidYouMean(&quot;Hotal&quot;);
    if(word != string.Empty)
    {
         labMessage.Text = &quot;&lt;font style='font-size:12px;color:red;'&gt;Did you mean &lt;/font&gt;&lt;b&gt;&quot; + retValue + &quot;&lt;/b&gt;&quot;;
    }
}

</pre></p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/-3gSaKY7/GoogleSpellChecker.html" target="_blank">You can Download the complete source code from here</a></p>
<p>Hope this help and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/416/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=416&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2010/05/20/google-spell-checker-api-asp-net-c/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>

		<media:content url="http://deepumi.files.wordpress.com/2010/05/googlespellchecker.png" medium="image">
			<media:title type="html">googleSpellChecker</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net 4.0 URL Routing</title>
		<link>http://deepumi.wordpress.com/2010/05/14/asp-net-4-0-url-routing/</link>
		<comments>http://deepumi.wordpress.com/2010/05/14/asp-net-4-0-url-routing/#comments</comments>
		<pubDate>Fri, 14 May 2010 06:13:06 +0000</pubDate>
		<dc:creator>deepumi</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Url Routing]]></category>
		<category><![CDATA[Asp.Net 4.0]]></category>
		<category><![CDATA[Seo Friendly URLs]]></category>
		<category><![CDATA[Url Routing in Asp.Net Web Forms]]></category>

		<guid isPermaLink="false">http://deepumi.wordpress.com/?p=401</guid>
		<description><![CDATA[It&#8217;s been  really easy  in Asp.Net 4.0 for building SEO friendly URL applications with VS 2010. In one my previous article I have explained how we can achieve the same in Asp.Net 3.5  (check it out).  In Asp.Net 3.5 we need to implement the IRouteHandler interface in custom route handler class and bla bla&#8230;.but now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=401&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been  really easy  in <strong>Asp.Net 4.0 </strong> for building SEO friendly URL applications with VS 2010. In one my previous article I have explained how we can achieve the same in Asp.Net 3.5  (<a href="http://deepumi.wordpress.com/2010/02/27/url-routing-in-asp-net-web-forms/" target="_blank">check it out</a>).  In Asp.Net 3.5 we need to implement<strong> </strong>the<strong> IRouteHandler</strong> interface in custom route handler class and bla bla&#8230;.but now in Asp.Net 4.0 we do not need all extra code.  I am following the same example in my previous article here.  In the Global.asax file I am registering the routes some thing like below</p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/4rMLEswJ/UrlRoutingDemo.html" target="_blank">You can download the entire article from here</a></p>
<p><strong>Global.asax </strong>file <strong>Configuration</strong></p>
<p>Add Import directive to Import <strong>System.Web.Routing</strong> name space</p>
<p>&lt;%@ Import Namespace=&#8221;System.Web.Routing&#8221; %&gt;</p>
<p><pre class="brush: csharp;">
void RegisterRoutes(RouteCollection routes)
 {
 routes.MapPageRoute(
 &quot;member-list&quot;,
 &quot;member/{name}&quot;,
 &quot;~/member-list.aspx&quot;
 );
 }

 void Application_Start(object sender, EventArgs e)
 {
RegisterRoutes(RouteTable.Routes);
}
</pre></p>
<p>The first parameter <strong>member/{name} </strong>which denote the url structure, here the url which starts /member/{name} (ex : /member/deepu/) will point physically to the following path <strong>~/member/</strong><strong>member-list.aspx<strong></strong></strong></p>
<p>Create a aspx page called default.aspx</p>
<p>This page will have a list of Members in Tabular format. I am going to use asp.net List view control to achieve this.</p>
<p>&lt;asp:ListView ID=&#8221;lvUserList&#8221; runat=&#8221;server&#8221;&gt;<br />
&lt;LayoutTemplate&gt;<br />
&lt;table width=&#8221;50%&#8221; style=&#8221;background-color: lightgrey;&#8221; cellpadding=&#8221;2&#8243; cellspacing=&#8221;1&#8243;<br />
border=&#8221;0&#8243;&gt;<br />
&lt;tr style=&#8221;background-color: white&#8221;&gt;<br />
&lt;td width=&#8221;100&#8243; align=&#8221;center&#8221;&gt;<br />
Member ID<br />
&lt;/td&gt;<br />
&lt;td align=&#8221;center&#8221;&gt;<br />
Name<br />
&lt;/td&gt;<br />
&lt;td width=&#8221;75&#8243; align=&#8221;center&#8221;&gt;<br />
Blog<br />
&lt;/td&gt;<br />
&lt;td width=&#8221;50&#8243;&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;asp:PlaceHolder ID=&#8221;itemPlaceholder&#8221; runat=&#8221;server&#8221; /&gt;<br />
&lt;/table&gt;<br />
&lt;/LayoutTemplate&gt;<br />
&lt;ItemTemplate&gt;<br />
&lt;tr style=&#8221;background-color: white&#8221;&gt;<br />
&lt;td align=&#8221;center&#8221;&gt;<br />
&lt;asp:Label ID=&#8221;lab&#8221; Text=&#8217;&lt;%# DataBinder.Eval(Container.DataItem, &#8220;MemberID&#8221;)%&gt;&#8217;<br />
runat=&#8221;server&#8221; /&gt;<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;asp:Label ID=&#8221;Label1&#8243; Text=&#8217;&lt;%# DataBinder.Eval(Container.DataItem, &#8220;Name&#8221;)%&gt;&#8217; runat=&#8221;server&#8221; /&gt;<br />
&lt;/td&gt;<br />
&lt;td align=&#8221;center&#8221;&gt;<br />
&lt;a target=&#8221;_blank&#8221; href=&#8217;&lt;%# DataBinder.Eval(Container.DataItem, &#8220;BlogURL&#8221;)%&gt;&#8217;&gt;Blog&lt;/a&gt;<br />
&lt;/td&gt;<br />
&lt;td align=&#8221;center&#8221;&gt;<br />
&lt;a href=&#8221;&lt;%= ResolveUrl(&#8220;~/member/&#8221;)%&gt;&lt;%# DataBinder.Eval(Container.DataItem, &#8220;Name&#8221;)%&gt;&#8221;&gt;<br />
Detail&lt;/a&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/ItemTemplate&gt;<br />
&lt;ItemSeparatorTemplate&gt;<br />
&lt;br /&gt;<br />
&lt;/ItemSeparatorTemplate&gt;<br />
&lt;/asp:ListView&gt;</p>
<p><strong>Default.aspx.cs code behind</strong></p>
<p><pre class="brush: csharp;">
public partial class Memeber
{
 public int MemberID { get; set; }
 public string Name { get; set; }
 public string BlogURL { get; set; }
}


public partial class _Default : System.Web.UI.Page
{
 protected void Page_Load(object sender, EventArgs e)
 {
 if (!IsPostBack)
 {
 BindUsers();
 }
 }

 void BindUsers()
 {
 var items = new List&lt;Memeber&gt;()
 {
 new Memeber {MemberID = 1,Name = &quot;Deepu&quot;, BlogURL = &quot;http://deepumi.wordpress.com&quot;},
 new Memeber {MemberID = 2,Name = &quot;Scott&quot;, BlogURL = &quot;http://weblogs.asp.net/scottgu/&quot;},
 new Memeber {MemberID = 3,Name = &quot;Joe&quot;, BlogURL = &quot;http://misfitgeek.com&quot;},
 };


 lvUserList.DataSource = items.ToList();
 lvUserList.DataBind();
 }
}
</pre></p>
<p>We have completed the listing page. The next page will be the detail page which will be rendering the member name for the URL routing.</p>
<p><strong>Member-List.aspx</strong> Page</p>
<p>&lt;asp:Content ID=&#8221;BodyContent&#8221; runat=&#8221;server&#8221; ContentPlaceHolderID=&#8221;MainContent&#8221;&gt;<br />
Member Name : &lt;asp:Label ID=&#8221;labMemberName&#8221; runat=&#8221;server&#8221; /&gt;<br />
&lt;/asp:Content&gt;</p>
<p>Member-List.aspx code behind Page</p>
<p><pre class="brush: csharp;">
var name = Page.RouteData.Values[&quot;name&quot;];
 if (name != null)
 {
 Page.Title = name.ToString();
 labMemberName.Text = name.ToString();
 }
</pre></p>
<p><a title="Click here to download the article" href="http://www.4shared.com/file/4rMLEswJ/UrlRoutingDemo.html" target="_blank">You can download the entire article from here</a></p>
<p>Hope this help and If you have any comments, please feel free to write your feedback.</p>
<p>Thanks<br />
Deepu</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepumi.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepumi.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepumi.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepumi.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepumi.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepumi.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepumi.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepumi.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepumi.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepumi.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepumi.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepumi.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepumi.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepumi.wordpress.com/401/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepumi.wordpress.com&amp;blog=9787175&amp;post=401&amp;subd=deepumi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepumi.wordpress.com/2010/05/14/asp-net-4-0-url-routing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8928add35482daa9a9cceca60dc1fe26?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepumi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
