<?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>Hiren&#039;s Solutions</title>
	<atom:link href="http://hirensuthar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hirensuthar.wordpress.com</link>
	<description>M.C.A, MCTS [.Net Fremwork 2.0 Web Application]</description>
	<lastBuildDate>Tue, 17 Aug 2010 11:30:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hirensuthar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/548bc0e55bf2281e036ad1d91b740cc0?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Hiren&#039;s Solutions</title>
		<link>http://hirensuthar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hirensuthar.wordpress.com/osd.xml" title="Hiren&#039;s Solutions" />
	<atom:link rel='hub' href='http://hirensuthar.wordpress.com/?pushpress=hub'/>
		<item>
		<title>UpdateProgress Central in Page</title>
		<link>http://hirensuthar.wordpress.com/2009/08/28/updateprogress-central-in-page/</link>
		<comments>http://hirensuthar.wordpress.com/2009/08/28/updateprogress-central-in-page/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 12:45:27 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/?p=27</guid>
		<description><![CDATA[&#60;asp:UpdateProgress ID=&#8221;PrcBar&#8221; runat=&#8221;server&#8221;&#62; &#60;ProgressTemplate&#62;  &#60;div id=&#8221;Prc&#8221; style=&#8221;position: absolute; z-index: 10; border: solid 1px Red;padding: 7px 10px 7px 10px; background-color: #FFD4D4&#8243;&#62;   &#60;img src=&#8221;../App_Themes/Hiren/Images/ajax-loader.gif&#8221; /&#62;   &#60;span id=&#8221;pleasewait&#8221;&#62;Please Wait . . . .&#60;/span&#62;   &#60;/div&#62;    &#60;/ProgressTemplate&#62;  &#60;asp:UpdateProgress&#62;  function onUpdating(Msg)                 {                     Message=&#8217;Please Wait&#8230;.&#8217;;                     //get the update progress div                     var pnl = $get(&#8216;&#60;%= this.PrcBar.ClientID %&#62;&#8217;);                     //make it invisible [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=27&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;</span></span></span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">asp</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">:</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">UpdateProgress</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">ID</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;PrcBar&#8221;</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">runat</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;server&#8221;&gt;</span></span> <span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">ProgressTemplate</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&gt;</span></span>  <span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">div</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">id</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;Prc&#8221;</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">style</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;</span></span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">position</span></span><span style="font-size:x-small;">: </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">absolute</span></span><span style="font-size:x-small;">; </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">z-index</span></span><span style="font-size:x-small;">: </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">10</span></span><span style="font-size:x-small;">; </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">border</span></span><span style="font-size:x-small;">: </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">solid</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">1px</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">Red</span></span><span style="font-size:x-small;">;</span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">padding</span></span><span style="font-size:x-small;">: </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">7px</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">10px</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">7px</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">10px</span></span><span style="font-size:x-small;">; </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">background-color</span></span><span style="font-size:x-small;">: </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">#FFD4D4&#8243;&gt;</span></span> </p>
<p> <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">img</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">src</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;../App_Themes/Hiren/Images/ajax-loader.gif&#8221;</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">/&gt;</span></span> </span></span></p>
<p> <span style="font-size:x-small;"><span style="font-size:x-small;"> </span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">span</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">id</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;pleasewait&#8221;&gt;</span></span><span style="font-size:x-small;">Please Wait . . . .</span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;/</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">span</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&gt;</span></span></p>
<p>  <span style="color:#0000ff;font-size:x-small;">&lt;/<span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">div</span></span>&gt;</span></p>
<p> <span style="color:#0000ff;font-size:x-small;"> </span><span style="font-size:x-small;"> <span style="color:#0000ff;"><span style="color:#0000ff;">&lt;/</span></span><span style="color:#a31515;"><span style="color:#a31515;">ProgressTemplate</span></span><span style="color:#0000ff;"><span style="color:#0000ff;">&gt;</span></span></span></p>
<p> <span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&lt;</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">asp</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">:</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">UpdateProgress</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">&gt;</span></span></p>
<p> function onUpdating(Msg)<br />
                {<br />
                    Message=&#8217;Please Wait&#8230;.&#8217;;<br />
                    //get the update progress div<br />
                    var pnl = $get(&#8216;&lt;%= this.PrcBar.ClientID %&gt;&#8217;);<br />
                    //make it invisible<br />
                    pnl.style.display = &#8221;;<br />
                    //Set loader message<br />
                    document.getElementById(&#8216;pleasewait&#8217;).innerHTML=Msg;<br />
                   <br />
                    var dvProcess=document.getElementById(&#8216;Prc&#8217;);<br />
                    var sleft=(dvProcess.offsetParent.clientWidth/2)-(dvProcess.clientWidth/2)+dvProcess.offsetParent.scrollLeft;<br />
                    var dvtop=(dvProcess.offsetParent.clientHeight/2)-(dvProcess.clientHeight/2)+dvProcess.offsetParent.scrollTop;<br />
                    dvProcess.style.left=sleft + &#8216;px&#8217;;<br />
                    dvProcess.style.top=dvtop + &#8216;px&#8217;;<br />
                }</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=27&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2009/08/28/updateprogress-central-in-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>XML Http Request in ASP.Net</title>
		<link>http://hirensuthar.wordpress.com/2009/03/20/xml-http-request-in-aspnet/</link>
		<comments>http://hirensuthar.wordpress.com/2009/03/20/xml-http-request-in-aspnet/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 05:33:10 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/?p=22</guid>
		<description><![CDATA[function CallXMLHttpRequest(Para1,Para2,Para3) { var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject(&#8220;Msxml2.XMLHTTP&#8221;); } catch (e) { try { xmlHttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;); } catch (e) { alert(&#8220;Your browser does not support AJAX!&#8221;); return false; } } } var url = &#8220;../XMLHttpRequestPage.aspx&#8221;; var params = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=22&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>function CallXMLHttpRequest(Para1,Para2,Para3)<br />
{<br />
    var xmlHttp;<br />
    try<br />
    {<br />
        // Firefox, Opera 8.0+, Safari<br />
        xmlHttp=new XMLHttpRequest();<br />
    }<br />
    catch (e)<br />
    {<br />
        // Internet Explorer<br />
        try<br />
        {<br />
            xmlHttp=new ActiveXObject(&#8220;Msxml2.XMLHTTP&#8221;);<br />
        }<br />
        catch (e)<br />
        {<br />
            try<br />
            {<br />
                xmlHttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);<br />
            }<br />
            catch (e)<br />
            {<br />
                alert(&#8220;Your browser does not support AJAX!&#8221;);<br />
                return false;<br />
            }<br />
        }<br />
    }</p>
<p>    var url = &#8220;../XMLHttpRequestPage.aspx&#8221;;<br />
    var params = &#8220;Para1=&#8221;+ Para1.toString() + &#8220;&amp;Para2=&#8221; + Para2.toString()+ &#8220;&amp;Para3=&#8221; + Para3.toString();</p>
<p>    xmlHttp.onreadystatechange=function()<br />
    {<br />
        if(xmlHttp.readyState==4)<br />
        {<br />
            if(xmlHttp.responseText == &#8220;0&#8243;)<br />
            {<br />
                alert(&#8220;Request Successfully call.&#8221;);<br />
            }<br />
            else if(xmlHttp.responseText == &#8220;-2&#8243;)<br />
            {<br />
                alert(Request ******.&#8221;);<br />
            }<br />
        }<br />
    }</p>
<p>    xmlHttp.open(&#8220;POST&#8221;,url ,true);</p>
<p>    xmlHttp.setRequestHeader(&#8220;Content-type&#8221;, &#8220;application/x-www-form-urlencoded&#8221;);<br />
    xmlHttp.setRequestHeader(&#8220;Content-length&#8221;, params.length);<br />
    xmlHttp.setRequestHeader(&#8220;Connection&#8221;, &#8220;close&#8221;);</p>
<p>    xmlHttp.send(params);<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=22&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2009/03/20/xml-http-request-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing FLV file in ASP.NET</title>
		<link>http://hirensuthar.wordpress.com/2008/07/14/playing-flv-file-in-aspnet/</link>
		<comments>http://hirensuthar.wordpress.com/2008/07/14/playing-flv-file-in-aspnet/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 12:12:05 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/?p=18</guid>
		<description><![CDATA[public static string LoadFlashVideoFile(string strFileName)     {         StringBuilder sb = new StringBuilder();         int intWidth = 100;         int intHeight = 100;         string strReturnValue = string.Empty;         if (Path.GetExtension(strFileName) == &#8220;.swf&#8221;)         {             sb.Append(&#8220;&#60;object width=&#8217;&#8221; + intWidth + &#8220;px&#8217; height=&#8217;&#8221; + intHeight + &#8220;px&#8217;&#62;&#8221;);             sb.Append(&#8220;&#60;param name=&#8217;movie&#8217; value=&#8217;&#8221; + strFileName + &#8220;&#8216;&#62;&#60;/param&#62;&#8221;); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=18&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:'Courier New';">public</span><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">string</span> LoadFlashVideoFile(<span style="color:#0000ff;">string</span> strFileName)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:#2b91af;">StringBuilder</span> sb = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">StringBuilder</span>();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:#0000ff;">int</span> intWidth = 100;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:#0000ff;">int</span> intHeight = 100;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:#0000ff;">string</span> strReturnValue = <span style="color:#0000ff;">string</span>.Empty;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:#0000ff;">if</span> (<span style="color:#2b91af;">Path</span>.GetExtension(strFileName) == <span style="color:#a31515;">&#8220;.swf&#8221;</span>)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span>{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.Append(<span style="color:#a31515;">&#8220;&lt;object width=&#8217;&#8221;</span> + intWidth + <span style="color:#a31515;">&#8220;px&#8217; height=&#8217;&#8221;</span> + intHeight + <span style="color:#a31515;">&#8220;px&#8217;&gt;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.Append(<span style="color:#a31515;">&#8220;&lt;param name=&#8217;movie&#8217; value=&#8217;&#8221;</span> + strFileName + <span style="color:#a31515;">&#8220;&#8216;&gt;&lt;/param&gt;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.Append(<span style="color:#a31515;">&#8220;&lt;param name=&#8217;wmode&#8217; value=&#8217;transparent&#8217;&gt;&lt;/param&gt;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.Append(<span style="color:#a31515;">&#8220;&lt;embed src=&#8217;&#8221;</span> + strFileName + <span style="color:#a31515;">&#8220;&#8216; type=&#8217;application/x-shockwave-flash&#8217;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.Append(<span style="color:#a31515;">&#8220;wmode=&#8217;transparent&#8217; width=&#8217;&#8221;</span> + intWidth + <span style="color:#a31515;">&#8220;px&#8217; height=&#8217;&#8221;</span> + intHeight + <span style="color:#a31515;">&#8220;px&#8217;&gt;&lt;/embed&gt;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span>    </span>sb.Append(<span style="color:#a31515;">&#8220;&lt;/object&gt;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>strReturnValue = sb.ToString();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span>}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:#0000ff;">else</span> <span style="color:#0000ff;">if</span> (<span style="color:#2b91af;">Path</span>.GetExtension(strFileName) == <span style="color:#a31515;">&#8220;.flv&#8221;</span>)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span>{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span><span style="color:#0000ff;">string</span> strPlayerPath = <span style="color:#a31515;">&#8220;flvplayer.swf&#8221;</span>;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.AppendLine(<span style="color:#a31515;">&#8220;&lt;embed pluginspage=&#8217;http://www.macromedia.com/go/getflashplayer&#8217; &#8220;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.AppendLine(<span style="color:#a31515;">&#8220;src=&#8217;&#8221;</span> + strPlayerPath + <span style="color:#a31515;">&#8220;&#8216; align=&#8217;Middle&#8217; width=&#8217;640px&#8217; height=&#8217;480px&#8217; &#8220;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.AppendLine(<span style="color:#a31515;">&#8220;type=&#8217;application/x-shockwave-flash&#8217; bgcolor=&#8221; salign=&#8217;LT&#8217; quality=&#8217;high&#8217; menu=&#8217;false&#8217; loop=&#8217;false&#8217; &#8220;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>sb.AppendLine(<span style="color:#a31515;">&#8220;flashvars=&#8217;file=&#8221;</span> + strFileName + <span style="color:#a31515;">&#8220;&amp;showdigits=true&amp;autostart=false&amp;showfsbutton=true&#8217;&gt;&lt;/embed&gt;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>            </span>strReturnValue = sb.ToString();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span>}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:#0000ff;">return</span> strReturnValue;</span></p>
<p><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>}</span></p>
<p><span style="font-size:x-small;font-family:Courier New;"><a href="http://www.bentangle.tv/DesktopModules/media/flvplayer.swf" target="_blank">Get FLV Player Click Here</a></span></p>
<p>public static string LoadFlashVideoFile(string strFileName)<br />
    {<br />
        StringBuilder sb = new StringBuilder();<br />
        int intWidth = 100;<br />
        int intHeight = 100;<br />
        string strReturnValue = string.Empty;<br />
        if (Path.GetExtension(strFileName) == &#8220;.swf&#8221;)<br />
        {<br />
            sb.Append(&#8220;&lt;object width=&#8217;&#8221; + intWidth + &#8220;px&#8217; height=&#8217;&#8221; + intHeight + &#8220;px&#8217;&gt;&#8221;);<br />
            sb.Append(&#8220;&lt;param name=&#8217;movie&#8217; value=&#8217;&#8221; + strFileName + &#8220;&#8216;&gt;&lt;/param&gt;&#8221;);<br />
            sb.Append(&#8220;&lt;param name=&#8217;wmode&#8217; value=&#8217;transparent&#8217;&gt;&lt;/param&gt;&#8221;);<br />
            sb.Append(&#8220;&lt;embed src=&#8217;&#8221; + strFileName + &#8220;&#8216; type=&#8217;application/x-shockwave-flash&#8217;&#8221;);<br />
            sb.Append(&#8220;wmode=&#8217;transparent&#8217; width=&#8217;&#8221; + intWidth + &#8220;px&#8217; height=&#8217;&#8221; + intHeight + &#8220;px&#8217;&gt;&lt;/embed&gt;&#8221;);<br />
            sb.Append(&#8220;&lt;/object&gt;&#8221;);<br />
            strReturnValue = sb.ToString();<br />
        }<br />
        else if (Path.GetExtension(strFileName) == &#8220;.flv&#8221;)<br />
        {<br />
            string strPlayerPath = &#8220;<a href="http://www.cisco.com/cdc_content_elements/flash/video-player/mediaplayer.swf">http://www.cisco.com/cdc_content_elements/flash/video-player/mediaplayer.swf</a>&#8220;;<br />
            sb.AppendLine(&#8220;&lt;embed pluginspage=&#8217;http://www.macromedia.com/go/getflashplayer&#8217; &#8220;);<br />
            sb.AppendLine(&#8220;src=&#8217;&#8221; + strPlayerPath + &#8220;&#8216; align=&#8217;Middle&#8217; width=&#8217;640px&#8217; height=&#8217;480px&#8217; &#8220;);<br />
            sb.AppendLine(&#8220;type=&#8217;application/x-shockwave-flash&#8217; bgcolor=&#8221; width=&#8217;100&#8242; height=&#8217;100&#8242;  salign=&#8217;LT&#8217; quality=&#8217;high&#8217; menu=&#8217;false&#8217; loop=&#8217;false&#8217; allowfullscreen=&#8217;true&#8217; enablejs=&#8217;true&#8217; &#8220;);<br />
            sb.AppendLine(&#8220;flashvars=&#8217;file=&#8221; + strFileName + &#8220;&amp;showdigits=true&amp;autostart=false&amp;showfsbutton=true&amp;image=http://www.cisco.com/images/humannetwork/feature_terra.jpg&#8217;&gt;&lt;/embed&gt;&#8221;);<br />
            strReturnValue = sb.ToString();<br />
        }<br />
        return strReturnValue;<br />
    }</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=18&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2008/07/14/playing-flv-file-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Integrate CLR in SQL Server 2005</title>
		<link>http://hirensuthar.wordpress.com/2008/07/12/integrate-clr-in-sql-server-2005/</link>
		<comments>http://hirensuthar.wordpress.com/2008/07/12/integrate-clr-in-sql-server-2005/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 05:36:09 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/?p=15</guid>
		<description><![CDATA[using System; using System.Text; using System.IO; using System.Security.Cryptography; namespace Hiren{ public static class CLRFunctions { public static string hrnEncrypt(string arg){ return Encrypt(arg.ToString());} public static string hrnDecrypt(string arg){ return Decrypt(arg.ToString());}#region Cryptograpy Functionspublic static string Encrypt(string strTxt){ string encryptKey = &#8220;cygnet&#8221;; byte[] byKey = { };byte[] IV ={ 55, 103, 246, 79, 36, 99, 167, 3, 42, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=15&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:x-small;color:#0000ff;">using<span style="font-size:x-small;"> System;</span></span></p>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using</span><span style="font-size:x-small;"> System.Text;</span></span></div>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using<span style="font-size:x-small;"> System.IO;</span></span></p>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using<span style="font-size:x-small;"> System.Security.Cryptography;</span></span></span></div>
<p></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">namespace</span><span style="font-size:x-small;"> Hiren</span><span style="font-size:x-small;">{</span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">public</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">static</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">class</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">CLRFunctions</span></span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;">{</span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">public</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">static</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> hrnEncrypt(</span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> arg)</span><span style="font-size:x-small;">{</span></span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">return</span><span style="font-size:x-small;"> Encrypt(arg.ToString());</span><span style="font-size:x-small;">}</span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">public</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">static</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> hrnDecrypt(</span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> arg)</span><span style="font-size:x-small;">{</span></span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">return</span><span style="font-size:x-small;"> Decrypt(arg.ToString());</span><span style="font-size:x-small;">}</span><span style="font-size:x-small;color:#0000ff;">#region</span><span style="font-size:x-small;"> Cryptograpy Functions</span><span style="font-size:x-small;color:#0000ff;">public</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">static</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> Encrypt(</span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> strTxt)</span><span style="font-size:x-small;">{</span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> encryptKey = </span><span style="font-size:x-small;color:#a31515;">&#8220;cygnet&#8221;</span><span style="font-size:x-small;">;</span></span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">byte</span><span style="font-size:x-small;">[] byKey = { };</span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">byte</span><span style="font-size:x-small;">[] IV ={ 55, 103, 246, 79, 36, 99, 167, 3, 42, 5, 62, 83, 184, 7, 209, 13, 145, 23, 200, 58, 173, 10, 121, 222, 88, 09, 45, 67, 94, 12, 34, 5 };<span style="font-size:x-small;color:#0000ff;">try</span></span></span></p>
<p><span style="font-size:x-small;">{</span><span style="font-size:x-small;">byKey = </span><span style="font-size:x-small;color:#2b91af;">Encoding</span><span style="font-size:x-small;">.UTF8.GetBytes(encryptKey);</span><span style="font-size:x-small;color:#2b91af;">RijndaelManaged</span><span style="font-size:x-small;"> rm = </span><span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">RijndaelManaged</span><span style="font-size:x-small;">();</span><span style="font-size:x-small;">rm.BlockSize = 256;</span></p>
<div><span style="font-size:x-small;">rm.IV = IV;</span></div>
<p></span><span style="font-size:x-small;">rm.KeySize = 256;</p>
<p>rm.Key = <span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">SHA256Managed</span><span style="font-size:x-small;">().ComputeHash(byKey);</span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">byte</span><span style="font-size:x-small;">[] inputByteArray = </span><span style="font-size:x-small;color:#2b91af;">Encoding</span><span style="font-size:x-small;">.UTF8.GetBytes(strTxt);</span></span><span style="font-size:x-small;color:#2b91af;">MemoryStream</span><span style="font-size:x-small;"> ms = </span><span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">MemoryStream</span><span style="font-size:x-small;">();</span><span style="font-size:x-small;color:#2b91af;">CryptoStream</span><span style="font-size:x-small;"> cs = </span><span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">CryptoStream</span><span style="font-size:x-small;">(ms, rm.CreateEncryptor(), </span><span style="font-size:x-small;color:#2b91af;">CryptoStreamMode</span><span style="font-size:x-small;">.Write);</span><span style="font-size:x-small;">cs.Write(inputByteArray, 0, inputByteArray.Length);</span></p>
<div><span style="font-size:x-small;">cs.FlushFinalBlock();</span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">return</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">Convert</span><span style="font-size:x-small;">.ToBase64String(ms.ToArray());</span><span style="font-size:x-small;">}</span></p>
<p><span style="font-size:x-small;color:#0000ff;">catch</span><span style="font-size:x-small;"> (</span><span style="font-size:x-small;color:#2b91af;">Exception</span><span style="font-size:x-small;"> ex)</span><span style="font-size:x-small;">{</span><span style="font-size:x-small;color:#0000ff;">return</span><span style="font-size:x-small;"> ex.Message;</span><span style="font-size:x-small;">}</span></p>
<div><span style="font-size:x-small;">}</span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">public</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">static</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> Decrypt(</span><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> strTxt)</span><span style="font-size:x-small;">{</span></p>
<p><span style="font-size:x-small;color:#0000ff;">string</span><span style="font-size:x-small;"> decryptKey = </span><span style="font-size:x-small;color:#a31515;">&#8220;cygnet&#8221;</span><span style="font-size:x-small;">;</span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">byte</span><span style="font-size:x-small;">[] byKey = { };</span></span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">byte</span><span style="font-size:x-small;">[] IV ={ 55, 103, 246, 79, 36, 99, 167, 3, 42, 5, 62, 83, 184, 7, 209, 13, 145, 23, 200, 58, 173, 10, 121, 222, 88, 09, 45, 67, 94, 12, 34, 5 };</span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">try</span></span></span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;">{</span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#008000;">//strTxt = System.Web.HttpUtility.HtmlDecode(strTxt.Replace(&#8220;$$$&#8221;, &#8220;+&#8221;));</span></span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;">byKey = </span><span style="font-size:x-small;color:#2b91af;">Encoding</span><span style="font-size:x-small;">.UTF8.GetBytes(decryptKey);</span><span style="font-size:x-small;color:#2b91af;">RijndaelManaged</span><span style="font-size:x-small;"> rm = </span><span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">RijndaelManaged</span><span style="font-size:x-small;">();</span><span style="font-size:x-small;">rm.BlockSize = 256;</span></p>
<div><span style="font-size:x-small;">rm.IV = IV;</span></div>
<p></span><span style="font-size:x-small;">rm.KeySize = 256;</p>
<p>rm.Key = <span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">SHA256Managed</span><span style="font-size:x-small;">().ComputeHash(byKey);</span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">byte</span><span style="font-size:x-small;">[] inputByteArray = </span><span style="font-size:x-small;color:#2b91af;">Convert</span><span style="font-size:x-small;">.FromBase64String(strTxt);</span></span><span style="font-size:x-small;color:#2b91af;">MemoryStream</span><span style="font-size:x-small;"> ms = </span><span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">MemoryStream</span><span style="font-size:x-small;">();</span><span style="font-size:x-small;color:#2b91af;">CryptoStream</span><span style="font-size:x-small;"> cs = </span><span style="font-size:x-small;color:#0000ff;">new</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;">CryptoStream</span><span style="font-size:x-small;">(ms, rm.CreateDecryptor(), </span><span style="font-size:x-small;color:#2b91af;">CryptoStreamMode</span><span style="font-size:x-small;">.Write);</span><span style="font-size:x-small;">cs.Write(inputByteArray, 0, inputByteArray.Length);</span></p>
<div><span style="font-size:x-small;">cs.FlushFinalBlock();</span></div>
<p></span><span style="font-size:x-small;">System.Text.<span style="font-size:x-small;color:#2b91af;">Encoding</span><span style="font-size:x-small;"> encoding = System.Text.</span><span style="font-size:x-small;color:#2b91af;">Encoding</span><span style="font-size:x-small;">.UTF8;</span><span style="font-size:x-small;color:#0000ff;">return</span><span style="font-size:x-small;"> encoding.GetString(ms.ToArray());</span><span style="font-size:x-small;">}</span></p>
<p><span style="font-size:x-small;color:#0000ff;">catch</span><span style="font-size:x-small;"> (</span><span style="font-size:x-small;color:#2b91af;">Exception</span><span style="font-size:x-small;"> ex)</span><span style="font-size:x-small;">{</span><span style="font-size:x-small;color:#0000ff;">return</span><span style="font-size:x-small;"> ex.Message;</span><span style="font-size:x-small;">}</span></p>
<div><span style="font-size:x-small;">}</span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">#endregion</span></p>
<p><span style="font-size:x-small;">}</span></p>
<div><span style="font-size:x-small;">}</span></div>
<p></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">create<span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">assembly</span><span style="font-size:x-small;"> asmHiren </span><span style="font-size:x-small;color:#0000ff;">from</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#ff0000;">&#8216;C:\Documents and Settings\hasuthar\Desktop\Hiren\Hiren\bin\Debug\Hiren.dll&#8217;</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">WITH</span><span style="font-size:x-small;"> PERMISSION_SET </span><span style="font-size:x-small;color:#808080;">=</span><span style="font-size:x-small;"> SAFE</span></span></p>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">CREATE<span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">FUNCTION</span><span style="font-size:x-small;"> clrHrnEncrypt </span></span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;"> </span></span></span></div>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;">@name <span style="font-size:x-small;color:#0000ff;">as</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">nvarchar</span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;">200</span><span style="font-size:x-small;color:#808080;">)</span><span style="font-size:x-small;"> </span></span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#808080;">)<span style="font-size:x-small;"> </span></span></span></div>
<p></span></span><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;">RETURNS</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">nvarchar</span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;">200</span><span style="font-size:x-small;color:#808080;">)</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">AS</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">EXTERNAL</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">NAME</span><span style="font-size:x-small;"> asmHiren</span><span style="font-size:x-small;color:#808080;">.</span><span style="font-size:x-small;">[Hiren.CLRFunctions]</span><span style="font-size:x-small;color:#808080;">.</span><span style="font-size:x-small;">hrnEncrypt</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">CREATE<span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">FUNCTION</span><span style="font-size:x-small;"> clrHrnDecrypt </span></span></p>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;">@name <span style="font-size:x-small;color:#0000ff;">as</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">nvarchar</span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;">200</span><span style="font-size:x-small;color:#808080;">)</span><span style="font-size:x-small;"> </span></span></span></div>
<p></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#808080;">)<span style="font-size:x-small;"> </span></span></p>
<div><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#0000ff;">RETURNS</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">nvarchar</span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;">200</span><span style="font-size:x-small;color:#808080;">)</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">AS</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">EXTERNAL</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">NAME</span><span style="font-size:x-small;"> asmHiren</span><span style="font-size:x-small;color:#808080;">.</span><span style="font-size:x-small;">[Hiren.CLRFunctions]</span><span style="font-size:x-small;color:#808080;">.</span><span style="font-size:x-small;">hrnDecrypt</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">select<span style="font-size:x-small;"> dbo</span><span style="font-size:x-small;color:#808080;">.</span><span style="font-size:x-small;">clrHrnEncrypt</span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;color:#ff0000;">&#8216;Hiren&#8217;</span><span style="font-size:x-small;color:#808080;">)</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">as</span><span style="font-size:x-small;"> Encrypt</span><span style="font-size:x-small;color:#808080;">,</span><span style="font-size:x-small;"> dbo</span><span style="font-size:x-small;color:#808080;">.</span><span style="font-size:x-small;">clrHrnDecrypt</span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;">dbo</span><span style="font-size:x-small;color:#808080;">.</span><span style="font-size:x-small;">clrHrnEncrypt</span><span style="font-size:x-small;color:#808080;">(</span><span style="font-size:x-small;color:#ff0000;">&#8216;Hiren&#8217;</span><span style="font-size:x-small;color:#808080;">))</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">as</span><span style="font-size:x-small;"> Decrypt</span></span></span></div>
<p></span><span style="font-size:x-small;color:#808080;"> </p>
<p></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=15&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2008/07/12/integrate-clr-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Run only Single Instance of application</title>
		<link>http://hirensuthar.wordpress.com/2007/08/24/run-only-single-instance-of-application/</link>
		<comments>http://hirensuthar.wordpress.com/2007/08/24/run-only-single-instance-of-application/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 12:28:15 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/2007/08/24/run-only-single-instance-of-application/</guid>
		<description><![CDATA[Imports System Imports System.Collections.Generic Imports System.Windows.Forms Imports System.Threading Namespace Tray_minimizer Shared Property Program() As Class End Property &#8216;/ &#60;summary&#62; &#8216;/ The main entry point for the application. &#8216;/ &#60;/summary&#62; &#60;STAThread()&#62; _ Shared Sub Main() Application.EnableVisualStyles() Application.SetCompatibleTextRenderingDefault(False) Dim mt As Mutex = Nothing Try mt = Mutex.OpenExisting(&#8220;Tray minimizer&#8221;) Catch End Try If mt Is Nothing Then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=17&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Imports System<br />
Imports System.Collections.Generic<br />
Imports System.Windows.Forms<br />
Imports System.Threading</p>
<p>Namespace Tray_minimizer<br />
Shared Property Program() As Class<br />
End Property<br />
&#8216;/ &lt;summary&gt;<br />
&#8216;/ The main entry point for the application.<br />
&#8216;/ &lt;/summary&gt;<br />
&lt;STAThread()&gt; _<br />
Shared Sub Main()<br />
Application.EnableVisualStyles()<br />
Application.SetCompatibleTextRenderingDefault(False)<br />
Dim mt As Mutex = Nothing<br />
Try<br />
mt = Mutex.OpenExisting(&#8220;Tray minimizer&#8221;)<br />
Catch</p>
<p>End Try<br />
If mt Is Nothing Then<br />
mt = New Mutex(True, &#8220;Tray minimizer&#8221;)<br />
Application.Run(New Form1())<br />
GC.KeepAlive(mt)<br />
mt.ReleaseMutex()<br />
Else<br />
mt.Close()<br />
MessageBox.Show(&#8220;Application already running&#8221;)<br />
Application.Exit()<br />
End If<br />
End Sub<br />
End Class<br />
End Namespace</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=17&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2007/08/24/run-only-single-instance-of-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Create Autonumber in ORACLE Table</title>
		<link>http://hirensuthar.wordpress.com/2007/06/25/create-autonumber-in-oracle-table/</link>
		<comments>http://hirensuthar.wordpress.com/2007/06/25/create-autonumber-in-oracle-table/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 09:52:16 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/2007/06/25/create-autonumber-in-oracle-table/</guid>
		<description><![CDATA[CREATE TABLE USER (   U_ID number(10) not null;   FNAME varchar2(100) not null;   LNAME varchar2(100) not null ) ;   ALTER TABLE USER ADD   CONSTRAINT PK_USER PRIMARY KEY     (       U_ID     ) ; CREATE SEQUENCE SEQ_USER_ID   MINVALUE 1   MAXVALUE 999999999999999999   START WITH 1   INCREMENT BY 1   NOCACHE ; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=14&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CREATE TABLE USER (<br />
  U_ID number(10) not null;<br />
  FNAME varchar2(100) not null;<br />
  LNAME varchar2(100) not null<br />
)<br />
;<br />
 <br />
ALTER TABLE USER ADD<br />
  CONSTRAINT PK_USER PRIMARY KEY<br />
    (<br />
      U_ID<br />
    )<br />
;</p>
<p>CREATE SEQUENCE SEQ_USER_ID<br />
  MINVALUE 1<br />
  MAXVALUE 999999999999999999<br />
  START WITH 1<br />
  INCREMENT BY 1<br />
  NOCACHE<br />
;</p>
<p>CREATE OR REPLACE TRIGGER TRG_USER_INSERT<br />
  BEFORE INSERT ON USER<br />
  FOR EACH ROW<br />
BEGIN<br />
  IF :new.U_ID IS NULL THEN<br />
    SELECT SEQ_USER_ID.nextval INTO :new.U_ID FROM DUAL;<br />
  END IF;<br />
END;<br />
/<br />
COMMIT;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=14&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2007/06/25/create-autonumber-in-oracle-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Data List Paging (using PagedDataSource)</title>
		<link>http://hirensuthar.wordpress.com/2007/06/18/data-list-paging-using-pageddatasource/</link>
		<comments>http://hirensuthar.wordpress.com/2007/06/18/data-list-paging-using-pageddatasource/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 10:33:54 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/2007/06/18/data-list-paging-using-pageddatasource/</guid>
		<description><![CDATA[PagedDataSource pgds = new PagedDataSource(); pgds.DataSource = PackageManagement.LoadPackagesAvailable(0); pgds.AllowPaging = true; pgds.PageSize = 12; pgds.CurrentPageIndex = SessionInfo.CurrentPage; this.intPageCount = pgds.PageCount; dlPackage.DataSource = pgds;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=13&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PagedDataSource pgds = new PagedDataSource();</p>
<p>pgds.DataSource = PackageManagement.LoadPackagesAvailable(0);<br />
pgds.AllowPaging = true;<br />
pgds.PageSize = 12;<br />
pgds.CurrentPageIndex = SessionInfo.CurrentPage;<br />
this.intPageCount = pgds.PageCount;<br />
dlPackage.DataSource = pgds;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=13&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2007/06/18/data-list-paging-using-pageddatasource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Move ListBox Item</title>
		<link>http://hirensuthar.wordpress.com/2007/06/18/move-listbox-item/</link>
		<comments>http://hirensuthar.wordpress.com/2007/06/18/move-listbox-item/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 10:31:24 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/2007/06/18/move-listbox-item/</guid>
		<description><![CDATA[function MoveItem(ctrlSource, ctrlTarget,ctrlHF,ctrlList) { var Source = document.getElementById(ctrlSource); var Target = document.getElementById(ctrlTarget); var List = document.getElementById(ctrlList); var HF = document.getElementById(ctrlHF); HF.value=&#8221;"; //&#8217;lbCurriculumFiles&#8217;,'lbSampleFiles&#8217; if ((Source != null) &#38;&#38; (Target != null)) { while (Source.options.selectedIndex &#62;= 0 ) //while(Source.options[Source.options.selectedIndex].value &#62;= 0) { var newOption = new Option(); // Create a new instance of ListItem newOption.text = Source.options[Source.options.selectedIndex].text; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=12&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>function MoveItem(ctrlSource, ctrlTarget,ctrlHF,ctrlList)<br />
{<br />
var Source = document.getElementById(ctrlSource);<br />
var Target = document.getElementById(ctrlTarget);<br />
var List = document.getElementById(ctrlList);<br />
var HF = document.getElementById(ctrlHF);<br />
HF.value=&#8221;";<br />
//&#8217;lbCurriculumFiles&#8217;,'lbSampleFiles&#8217;<br />
if ((Source != null) &amp;&amp; (Target != null))<br />
{<br />
while (Source.options.selectedIndex &gt;= 0 )<br />
//while(Source.options[Source.options.selectedIndex].value &gt;= 0)<br />
{<br />
var newOption = new Option(); // Create a new instance of ListItem<br />
newOption.text = Source.options[Source.options.selectedIndex].text;<br />
newOption.value = Source.options[Source.options.selectedIndex].value;</p>
<p>Target.options[Target.length] = newOption; //Append the item in Target</p>
<p>Source.remove(Source.options.selectedIndex); //Remove the item from Source<br />
}<br />
for( len = 0; len &lt; List.options.length; len++ )<br />
{<br />
HF.value=HF.value+ &#8220;,&#8221; + List.options[len].value;<br />
}</p>
<p>}<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=12&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2007/06/18/move-listbox-item/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Date Format in SQL</title>
		<link>http://hirensuthar.wordpress.com/2007/06/18/date-format-in-sql/</link>
		<comments>http://hirensuthar.wordpress.com/2007/06/18/date-format-in-sql/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 10:30:32 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/2007/06/18/date-format-in-sql/</guid>
		<description><![CDATA[PRINT &#8217;1) HERE IS MON DD YYYY HH:MIAM (OR PM) FORMAT ==&#62;&#8217; + CONVERT(CHAR(19),GETDATE()) PRINT &#8217;2) HERE IS MM-DD-YY FORMAT ==&#62;&#8217; + CONVERT(CHAR(8),GETDATE(),10) PRINT &#8217;3) HERE IS MM-DD-YYYY FORMAT ==&#62;&#8217; + CONVERT(CHAR(10),GETDATE(),110) PRINT &#8217;4) HERE IS DD MON YYYY FORMAT ==&#62;&#8217; + CONVERT(CHAR(11),GETDATE(),106) PRINT &#8217;5) HERE IS DD MON YY FORMAT ==&#62;&#8217; + CONVERT(CHAR(9),GETDATE(),6) PRINT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=11&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PRINT &#8217;1) HERE IS MON DD YYYY HH:MIAM (OR PM) FORMAT ==&gt;&#8217; +<br />
CONVERT(CHAR(19),GETDATE())<br />
PRINT &#8217;2) HERE IS MM-DD-YY FORMAT ==&gt;&#8217; +<br />
CONVERT(CHAR(8),GETDATE(),10)<br />
PRINT &#8217;3) HERE IS MM-DD-YYYY FORMAT ==&gt;&#8217; +<br />
CONVERT(CHAR(10),GETDATE(),110)<br />
PRINT &#8217;4) HERE IS DD MON YYYY FORMAT ==&gt;&#8217; +<br />
CONVERT(CHAR(11),GETDATE(),106)<br />
PRINT &#8217;5) HERE IS DD MON YY FORMAT ==&gt;&#8217; +<br />
CONVERT(CHAR(9),GETDATE(),6)<br />
PRINT &#8217;6) HERE IS DD MON YYYY HH:MM:SS:MMM(24H) FORMAT ==&gt;&#8217; +<br />
CONVERT(CHAR(24),GETDATE(),113)</p>
<p>Here is the output from the above script:</p>
<p>1) HERE IS MON DD YYYY HH:MIAM (OR PM) FORMAT ==&gt;Feb  5 2003  5:54AM<br />
2) HERE IS MM-DD-YY FORMAT ==&gt;02-05-03<br />
3) HERE IS MM-DD-YYYY FORMAT ==&gt;02-05-2003<br />
4) HERE IS DD MON YYYY FORMAT ==&gt;05 Feb 2003<br />
5) HERE IS DD MON YY FORMAT ==&gt;05 Feb 03<br />
6) HERE IS DD MON YYYY HH:MM:SS:MMM(24H) FORMAT ==&gt;05 Feb 2003 05:54:39:567</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=11&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2007/06/18/date-format-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
		<item>
		<title>Find SQL object Query</title>
		<link>http://hirensuthar.wordpress.com/2007/06/18/find-sql-object-query/</link>
		<comments>http://hirensuthar.wordpress.com/2007/06/18/find-sql-object-query/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 10:29:44 +0000</pubDate>
		<dc:creator>hirensuthar</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://hirensuthar.wordpress.com/2007/06/18/find-sql-object-query/</guid>
		<description><![CDATA[SELECT Object_Name(id) as &#8220;Table Name&#8221;,rtrim(name) as &#8220;Field Name&#8221; FROM syscolumns<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=10&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SELECT Object_Name(id) as &#8220;Table Name&#8221;,rtrim(name) as &#8220;Field Name&#8221; FROM syscolumns</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hirensuthar.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hirensuthar.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hirensuthar.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hirensuthar.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hirensuthar.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hirensuthar.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hirensuthar.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hirensuthar.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hirensuthar.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hirensuthar.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hirensuthar.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hirensuthar.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hirensuthar.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hirensuthar.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hirensuthar.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hirensuthar.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hirensuthar.wordpress.com&amp;blog=1010593&amp;post=10&amp;subd=hirensuthar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hirensuthar.wordpress.com/2007/06/18/find-sql-object-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bbbdae2d33d46b6ddc52eb815233a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hirensuthar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
