<?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>.net assorted Blogs</title>
	<atom:link href="http://sunilmallya.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunilmallya.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 08 Apr 2008 18:07:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sunilmallya.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>.net assorted Blogs</title>
		<link>http://sunilmallya.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sunilmallya.wordpress.com/osd.xml" title=".net assorted Blogs" />
	<atom:link rel='hub' href='http://sunilmallya.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Silverlight 2.0 MEDIA PLAYER</title>
		<link>http://sunilmallya.wordpress.com/2008/04/08/silverlight-20-media-player/</link>
		<comments>http://sunilmallya.wordpress.com/2008/04/08/silverlight-20-media-player/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 17:58:32 +0000</pubDate>
		<dc:creator>sunilmallya</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[BLEND 2.5]]></category>
		<category><![CDATA[O]]></category>
		<category><![CDATA[Silverlight 2.0]]></category>
		<category><![CDATA[Sunil Mallya]]></category>

		<guid isPermaLink="false">http://sunilmallya.wordpress.com/?p=6</guid>
		<description><![CDATA[Silverlight 2.0 has finally arrived and provides us with a cool option of coding in any language of our choice ( MANAGED CODE )..!! thank god.. javascript is really yucky !! but i know will end up using it quite sooner than later&#8230; itz like this yucky gum stuck on to your boot! Comming to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sunilmallya.wordpress.com&amp;blog=3319382&amp;post=6&amp;subd=sunilmallya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Silverlight 2.0 has finally arrived and provides us with a cool option of coding in any language of our choice ( MANAGED CODE )..!! thank god.. javascript is really yucky !! but i know will end up using it quite sooner than later&#8230; itz like this yucky gum stuck on to your boot!</p>
<p>Comming to the real funda here abt Silverlight 2.0. After the Presentation @ Microsoft Student Partners South India BootCAMP .. Lotz of people requested me to blog about how to create a Silverlight Application .. more specifically creating a Simple video Library !. which indeed is simple <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>So tools i recommend you people to have are BLEND 2.5 March Preview , Visual Studio 2008 (Needed) and silverlight 2.0 runtime.</p>
<p>Start a new project in blend -&gt; Choose Silverlight 2.0 Website<br />
<a href="http://sunilmallya.files.wordpress.com/2008/04/11.jpg"><img class="alignnone size-medium wp-image-12" src="http://sunilmallya.files.wordpress.com/2008/04/11.jpg?w=400&#038;h=240" alt="" width="400" height="240" /></a><br />
Now Lets add a media element by double clicking on the media we just added ! ( page.Xaml File )</p>
<p><a href="http://sunilmallya.files.wordpress.com/2008/04/2.jpg"><img class="alignnone size-medium wp-image-12" src="http://sunilmallya.files.wordpress.com/2008/04/2.jpg?w=400&#038;h=240" alt="" width="400" height="240" /></a><br />
Create 3 buttons name them Play / pause /Stop : try using in intellisense in VS 2008 !! <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211;&gt; Add click events to thsese buttons</p>
<p> <a href="http://sunilmallya.files.wordpress.com/2008/04/3.jpg"><img class="alignnone size-medium wp-image-12" src="http://sunilmallya.files.wordpress.com/2008/04/3.jpg?w=400&#038;h=240" alt="" width="400" height="240" /></a></p>
<p>Create a nice media holder back ground as shown ( better than Shoddy one i have done !!!)<br />
 <a href="http://sunilmallya.files.wordpress.com/2008/04/4.jpg"><img class="alignnone size-medium wp-image-12" src="http://sunilmallya.files.wordpress.com/2008/04/4.jpg?w=400&#038;h=240" alt="" width="400" height="240" /></a></p>
<p>Goto Page.xaml.cs file and add some logic to u&#8217;r newly create events<br />
(check the code file to get more info ).<br />
 <br />
<a href="http://sunilmallya.files.wordpress.com/2008/04/5.jpg"><img class="alignnone size-medium wp-image-12" src="http://sunilmallya.files.wordpress.com/2008/04/5.jpg?w=400&#038;h=240" alt="" width="400" height="240" /></a></p>
<p>If you want to change video on some event ..add this code</p>
<p>(YourmediaelementName).Source = new Uri(&#8220;frisbee.wmv&#8221;, UriKind.Relative);<br />
Just Remember here Source doesn&#8217;t take a string but takes a  URI instead !!</p>
<p>DOWNLOAD the code for the media player here !!!!</p>
<p><a href="http://cid-7c189d3ffb9ce13c.skydrive.live.com/self.aspx/My%20Presentations/SLBootCampMediaPlayer_SunilMallya.zip">http://cid-7c189d3ffb9ce13c.skydrive.live.com/self.aspx/My%20Presentations/SLBootCampMediaPlayer_SunilMallya.zip</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sunilmallya.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sunilmallya.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sunilmallya.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sunilmallya.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sunilmallya.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sunilmallya.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sunilmallya.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sunilmallya.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sunilmallya.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sunilmallya.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sunilmallya.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sunilmallya.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sunilmallya.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sunilmallya.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sunilmallya.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sunilmallya.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sunilmallya.wordpress.com&amp;blog=3319382&amp;post=6&amp;subd=sunilmallya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sunilmallya.wordpress.com/2008/04/08/silverlight-20-media-player/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5119ad2240b092ffde91355f824729e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sunilmallya</media:title>
		</media:content>

		<media:content url="http://sunilmallya.files.wordpress.com/2008/04/11.jpg?w=400" medium="image" />

		<media:content url="http://sunilmallya.files.wordpress.com/2008/04/2.jpg?w=400" medium="image" />

		<media:content url="http://sunilmallya.files.wordpress.com/2008/04/3.jpg?w=400" medium="image" />

		<media:content url="http://sunilmallya.files.wordpress.com/2008/04/4.jpg?w=400" medium="image" />

		<media:content url="http://sunilmallya.files.wordpress.com/2008/04/5.jpg?w=400" medium="image" />
	</item>
		<item>
		<title>Writing CLR Triggers for SQL 2005</title>
		<link>http://sunilmallya.wordpress.com/2008/04/02/writing-clr-triggers-for-sql-2005/</link>
		<comments>http://sunilmallya.wordpress.com/2008/04/02/writing-clr-triggers-for-sql-2005/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 15:06:21 +0000</pubDate>
		<dc:creator>sunilmallya</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[CLR  Trigger SQL]]></category>

		<guid isPermaLink="false">http://sunilmallya.wordpress.com/?p=4</guid>
		<description><![CDATA[Here is a small Example of How to Write CLR Triggers in SQL 2005 . First Open a ClassLibrary Project in Visual Studio and go to the Program.cs File and edit as Required using System; using System.Collections.Generic; using System.Text; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using System.Data; namespace ClassLibrary1 {     public partial class Triggers [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sunilmallya.wordpress.com&amp;blog=3319382&amp;post=4&amp;subd=sunilmallya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a small Example of How to Write CLR Triggers in SQL 2005 .</p>
<p>First Open a ClassLibrary Project in Visual Studio and go to the Program.cs File and edit as Required</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Data.SqlClient;<br />
using System.Data.SqlTypes;<br />
using Microsoft.SqlServer.Server;<br />
using System.Data;</p>
<p>namespace ClassLibrary1<br />
{<br />
    public partial class Triggers<br />
 {<br />
 //In my CLR Method i have Opened the connection like below</p>
<p>        [Microsoft.SqlServer.Server.SqlTrigger(Name = @"FuncName",<br />
  Target = "[dbo].[Table_NAME]&#8220;, Event = &#8220;FOR INSERT&#8221;)]<br />
     <br />
   <br />
       <br />
public static void FuncName()<br />
{<br />
    SqlTriggerContext triggContext = SqlContext.TriggerContext;</p>
<p>    String userType = &#8220;&#8221; ;<br />
    SqlCommand command1;<br />
    SqlCommand command2;<br />
  </p>
<p>   <br />
 SqlConnection connection<br />
            = new SqlConnection(@&#8221;context connection=true&#8221;);</p>
<p>        connection.Open();</p>
<p>     command1 = new SqlCommand(@&#8221;SELECT * FROM TableName;&#8221;,connection);<br />
 // Select all from Table</p>
<p> command1.ExecuteScalar();<br />
  // Returns First Row , First Column of the</p>
<p>  command2 = new SqlCommand(@&#8221;insert into [dbo].[docs2](docname) values(1)&#8221;, connection);<br />
       <br />
 int rows = command2.ExecuteNonQuery();<br />
     </p>
<p>}<br />
}<br />
}</p>
<p>Now Build the DLL and Store it in Some Location.</p>
<p>I have stored it under this location -<br />
 C:\ClassLibrary1\bin\Debug\ClassLibrary1.dll&#8217;</p>
<p>-&gt; After this open the SQL management studio to run the Query , Make sure the Query is run on the Database you want the trigger to be on !</p>
<p>sp_configure  &#8216;clr_enabled&#8217;, 1<br />
go<br />
RECONFIGURE with override<br />
go</p>
<p>reconfigure</p>
<p>create assembly ClassLibrary1<br />
from &#8216;C:\ClassLibrary1\bin\Debug\ClassLibrary1.dll&#8217;<br />
with Permission_Set =safe<br />
go<br />
create trigger tr_TriggerName<br />
on  AllDocs<br />
for INSERT<br />
as<br />
external name ClassLibrary1.[ClassLibrary1.Triggers].FuncName<br />
go</p>
<p>Now when  you Insert the Trigger will be Exectuted .<br />
You can specify Triggers similarly for Update , Delete as well</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sunilmallya.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sunilmallya.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sunilmallya.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sunilmallya.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sunilmallya.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sunilmallya.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sunilmallya.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sunilmallya.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sunilmallya.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sunilmallya.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sunilmallya.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sunilmallya.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sunilmallya.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sunilmallya.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sunilmallya.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sunilmallya.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sunilmallya.wordpress.com&amp;blog=3319382&amp;post=4&amp;subd=sunilmallya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sunilmallya.wordpress.com/2008/04/02/writing-clr-triggers-for-sql-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5119ad2240b092ffde91355f824729e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sunilmallya</media:title>
		</media:content>
	</item>
		<item>
		<title>Measuring Execution Time in C#</title>
		<link>http://sunilmallya.wordpress.com/2008/03/30/measuring-execution-time-in-c/</link>
		<comments>http://sunilmallya.wordpress.com/2008/03/30/measuring-execution-time-in-c/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 06:38:58 +0000</pubDate>
		<dc:creator>sunilmallya</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://sunilmallya.wordpress.com/?p=3</guid>
		<description><![CDATA[DateTime startTime = DateTime.Now; Function(){} DateTime EndTime = DateTime.Now; TimeSpan TotalTime= EndTime &#8211; StartTime ;  TotalTime.ToString();  // to display in some Label/ Textbox<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sunilmallya.wordpress.com&amp;blog=3319382&amp;post=3&amp;subd=sunilmallya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DateTime startTime = DateTime.Now;</p>
<p>Function(){}</p>
<p>DateTime EndTime = DateTime.Now;</p>
<p>TimeSpan TotalTime= EndTime &#8211; StartTime ;</p>
<p> TotalTime.ToString();  // to display in some Label/ Textbox</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sunilmallya.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sunilmallya.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sunilmallya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sunilmallya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sunilmallya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sunilmallya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sunilmallya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sunilmallya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sunilmallya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sunilmallya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sunilmallya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sunilmallya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sunilmallya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sunilmallya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sunilmallya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sunilmallya.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sunilmallya.wordpress.com&amp;blog=3319382&amp;post=3&amp;subd=sunilmallya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sunilmallya.wordpress.com/2008/03/30/measuring-execution-time-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5119ad2240b092ffde91355f824729e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sunilmallya</media:title>
		</media:content>
	</item>
	</channel>
</rss>
