<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-912297263564282165</id><updated>2024-11-01T02:29:23.703-07:00</updated><category term="How To&#39;s"/><category term="SQLServer"/><category term="C#"/><category term="Windows XP"/><category term="Google"/><category term="CSS"/><category term="Certifications"/><category term="Browsers"/><category term="VS2010"/><category term="LINQ"/><category term="MS-Word"/><category term="Web Services"/><category term="Advance.Net"/><category term="C#4.0"/><category term="Installations"/><category term="PHP"/><category term="WCF"/><category term="XSLT"/><category term="ASP"/><category term="HTML"/><category term="Tricks"/><category term="Windows Service"/><category term="AJAX"/><category term="Blogger"/><category term="Ebooks"/><category term="Hacking&#39;Virus"/><category term="IIS"/><category term="Javascript"/><category term="MTUG.ie"/><category term="Mobiles"/><category term="My Templates"/><category term="Photoshop CS3"/><category term="Profile"/><category term="Remote Desktop"/><category term="Security"/><category term="Services"/><category term="SilverLight"/><category term="Skype"/><category term="Software"/><category term="SyntaxHighlighter"/><category term="Team Foundation Server"/><category term="XML"/><title type='text'>Tech NovoGeek</title><subtitle type='html'>...Technology Simplified</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>125</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-2430302778606415654</id><published>2015-03-18T08:35:00.000-07:00</published><updated>2015-03-18T08:35:53.234-07:00</updated><title type='text'>Non-invocable member &#39;System.Configuration.ConfigurationManager.AppSettings&#39; cannot be used like a method. </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Web.config file code:&lt;/b&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: xml&quot;&gt;
&lt;appsettings&gt;
    &lt;add key=&quot;AppName&quot; value=&quot;example.com&quot;&gt;
    &lt;add key=&quot;ConnectionType&quot; value=&quot;ORACLE&quot;&gt;
&lt;/add&gt;&lt;/add&gt;&lt;/appsettings&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Error no 1:&lt;/b&gt;&lt;br /&gt;
Non-invocable member &#39;System.Configuration.ConfigurationManager.AppSettings&#39; cannot be used like a method.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Scenario no 1:&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings(&quot;CONNECTIONTYPE&quot;);&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution no 1:&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings[&quot;CONNECTIONTYPE&quot;];&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Error no 2:&lt;/b&gt;&lt;br /&gt;
This method is obsolete.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Scenario no 2:&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;strAuthorizeNet_x_login = System.Configuration.ConfigurationSettings.AppSettings(&quot;CONNECTIONTYPE&quot;);&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution no 2:&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings[&quot;CONNECTIONTYPE&quot;];&lt;/i&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/2430302778606415654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2015/03/non-invocable-member.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/2430302778606415654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/2430302778606415654'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2015/03/non-invocable-member.html' title='Non-invocable member &#39;System.Configuration.ConfigurationManager.AppSettings&#39; cannot be used like a method. '/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-3029927911725558647</id><published>2014-11-17T06:54:00.001-08:00</published><updated>2014-11-17T06:55:44.976-08:00</updated><title type='text'>Accessing a variable using a string containing the variable&#39;s name</title><content type='html'>&lt;pre class=&quot;brush: c-sharp;&quot;&gt;
 public class MsgCodes
    {
       public string GetString(string errorCode)
       {
           return (string)this.GetType().GetField(errCode).GetValue(this);
       }
       public const string strError= &quot;No error -just display this text&quot;;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/3029927911725558647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2014/11/accessing-variable-using-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3029927911725558647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3029927911725558647'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2014/11/accessing-variable-using-string.html' title='Accessing a variable using a string containing the variable&#39;s name'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-6696011018971518990</id><published>2014-11-04T06:39:00.005-08:00</published><updated>2014-11-04T06:41:38.143-08:00</updated><title type='text'> Error creating new MVC project</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
I have had a problem with VS2010 where when I tried to create a new MVC 4 Web Project I would get errors thrown where it could not successfully add references to the project.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Failed to initialize Powershell host, for the entity framework and Jquery. The error: The following packages failed to install from ‘C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 4\Packages’&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; EntityFramework.5.0.0: Failed to initialize the Powershell host. If your powershell execution policy setting is set to AllSigned, open the package manager console to initialize the host first.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; jQuery.1.7.1.1: Failed to initialize the Powershell host. If your powershell execution policy setting is set to AllSigned, open the package manager console to initialize the host first.&lt;/blockquote&gt;
&lt;br /&gt;
To resolve the error, &lt;br /&gt;
Make sure Powershell 2.0 is installed on your machine &lt;br /&gt;
You can get the Windows Prowshell 2.0 from here:&lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/en-in/download/details.aspx?id=9864&quot;&gt;http://www.microsoft.com/en-in/download/details.aspx?id=9864&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If thIS does not resolve the issue try t o launch the PowerShell console with local Administrator rights and run the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Set-ExecutionPolicy AllSigned&lt;/blockquote&gt;
&lt;br /&gt;
Make sure you restart Visual Studio!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/6696011018971518990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2014/11/error-creating-new-mvc-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/6696011018971518990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/6696011018971518990'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2014/11/error-creating-new-mvc-project.html' title=' Error creating new MVC project'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-4398229076186244392</id><published>2014-10-21T00:59:00.002-07:00</published><updated>2014-10-21T13:15:19.465-07:00</updated><title type='text'>Cheat sheet for Bootstrap 3.0 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Best way of learning new technology is learning the skill and keeping the key points noted and make a cheat sheet of just maximum of 4 pages would give you clear idea of new languages , syntaxes and samples.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;You could also easily remember all the key points and also gives concise set of notes used for quick reference&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Recently I started learning new framework Bootstrap 3.0, which has huge set of classes and different ways to use them. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Here is the&lt;a href=&quot;https://diigo.com/0635d7&quot; target=&quot;_blank&quot;&gt; cheat sheet for Bootstrap 3.0 for download&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/4398229076186244392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2014/10/best-way-of-learning-new-technology-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4398229076186244392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4398229076186244392'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2014/10/best-way-of-learning-new-technology-is.html' title='Cheat sheet for Bootstrap 3.0 '/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-7087532119253193594</id><published>2013-12-20T03:02:00.003-08:00</published><updated>2013-12-20T03:05:56.946-08:00</updated><title type='text'>MaintainScrollPositionOnPostback not working in Firefox and Chrome browsers</title><content type='html'>You just need to put the script below in your page where you want to maintain scroll position or in your master page. And I have tested this script in 5 major browser and luckily it works in all.

&lt;pre class=&quot;brush: c-sharp;&quot;&gt;
&lt;script type = &quot;text/javascript&quot;&gt;
    window.onload = function () {
        var scrollY = parseInt(&#39;&lt;%=Request.Form[&quot;scrollY&quot;] %&gt;&#39;);             
        if (!isNaN(scrollY)) {
            window.scrollTo(0, scrollY);
        }
    };
    window.onscroll = function () {
        var scrollY = document.body.scrollTop;
        if (scrollY == 0) {
            if (window.pageYOffset) {
                scrollY = window.pageYOffset;
            }
            else {
                scrollY = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
            }
        }
        if (scrollY &gt; 0) {
            var input = document.getElementById(&quot;scrollY&quot;);
            if (input == null) {
                input = document.createElement(&quot;input&quot;);
                input.setAttribute(&quot;type&quot;, &quot;hidden&quot;);
                input.setAttribute(&quot;id&quot;, &quot;scrollY&quot;);
                input.setAttribute(&quot;name&quot;, &quot;scrollY&quot;);
                document.forms[0].appendChild(input);
            }
            input.value = scrollY;
        }
    };
&lt;/script&gt;
&lt;/PRE&gt;</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/7087532119253193594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2013/12/maintainscrollpositiononpostback-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/7087532119253193594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/7087532119253193594'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2013/12/maintainscrollpositiononpostback-not.html' title='MaintainScrollPositionOnPostback not working in Firefox and Chrome browsers'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-1405969240144287484</id><published>2013-10-09T07:11:00.001-07:00</published><updated>2013-10-09T07:11:53.735-07:00</updated><title type='text'>Asp.net - The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% ... %&gt;)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;i&gt;Asp.net - The Controls collection cannot be modified because the control contains code blocks (i.e. &amp;lt;% ... %&amp;gt;)
&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;
I have this issue when I want to change button text in Page_init method.
 &lt;br /&gt;
This occured because I am using resource file to bind Button text.
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;u&gt;Example&lt;/u&gt;:
&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;lt;button class=&quot;simpleFormButton&quot; id=&quot;btnSaveFinishButton&quot; runat=&quot;server&quot; type=&quot;button&quot;&amp;gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;lt;%=GetLocalResourceObject(&quot;SaveandFinish&quot;)%&amp;amp;gt;&amp;lt;/button&amp;gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Replacing &lt;b&gt;&#39;&amp;lt;%=&#39;&lt;/b&gt; to &lt;b&gt;&#39;&amp;lt;%#&#39;&lt;/b&gt; solved my issue.
&lt;br /&gt;
Hope this helps you as well.
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/1405969240144287484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2013/10/aspnet-controls-collection-cannot-be.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/1405969240144287484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/1405969240144287484'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2013/10/aspnet-controls-collection-cannot-be.html' title='Asp.net - The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% ... %&gt;)'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-5255113466173939969</id><published>2013-08-27T05:59:00.002-07:00</published><updated>2013-08-27T06:02:29.658-07:00</updated><title type='text'>Find nth Min/Max values in SQL Server</title><content type='html'>&lt;b&gt;Finding Nth minimum salary:&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;

1.In SQL Server 2000/2005&lt;br/&gt;&lt;br/&gt;

SELECT salary FROM employees e1 WHERE (N = (SELECT COUNT(DISTINCT (e2.salary))&lt;br/&gt;
FROM employees e2 WHERE e2.salary &lt;= e1.salary)) &lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Finding Nth maximum salary:&lt;/b&gt;&lt;br/&gt;
&lt;br/&gt;
1.In SQL Server 2000/2005&lt;br/&gt;
&lt;br/&gt;
SELECT salary FROM employees e1 WHERE (N = (SELECT COUNT(DISTINCT (e2.salary))&lt;br/&gt;
FROM employees e2 WHERE e2.salary &gt;= e1.salary))&lt;br/&gt;
&lt;br/&gt;
Hope you find it useful.
</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/5255113466173939969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2013/08/find-nth-minmax-values-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/5255113466173939969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/5255113466173939969'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2013/08/find-nth-minmax-values-in-sql-server.html' title='Find nth Min/Max values in SQL Server'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-8843994720879059579</id><published>2013-08-07T07:39:00.002-07:00</published><updated>2013-08-07T07:39:59.813-07:00</updated><title type='text'>Where is the list of pinned start menu and taskbar items stored in Windows 7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;

You can find pinned apps in:

&lt;blockquote&gt;%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar&lt;/blockquote&gt;
and for the start menu apps go to:
&lt;blockquote&gt;
%AppData%\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/8843994720879059579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2013/08/where-is-list-of-pinned-start-menu-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/8843994720879059579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/8843994720879059579'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2013/08/where-is-list-of-pinned-start-menu-and.html' title='Where is the list of pinned start menu and taskbar items stored in Windows 7'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-8402970758519537140</id><published>2012-11-15T04:24:00.000-08:00</published><updated>2012-11-21T04:24:15.811-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Certifications"/><title type='text'>Programming in HTML5 with JavaScript and CSS3 Specialist</title><content type='html'>&lt;p&gt;Today i took my second Certification and it is on Exam 70-480: Programming in HTML5 with JavaScript and CSS3.&lt;br/&gt;I got certified with score 800/1000&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/8402970758519537140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/11/programming-in-html5-with-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/8402970758519537140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/8402970758519537140'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/11/programming-in-html5-with-javascript.html' title='Programming in HTML5 with JavaScript and CSS3 Specialist'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-466190044664612974</id><published>2012-11-15T04:22:00.000-08:00</published><updated>2012-11-21T04:23:12.700-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Certifications"/><title type='text'>Experts-Exchange update</title><content type='html'>&lt;p&gt;Overall Wizard certified with 301,676 Expert points. Individually Master certified in &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;C# Programming Language&lt;/li&gt;    &lt;li&gt;Programming for ASP.NET&lt;/li&gt;    &lt;li&gt;.NET &lt;/li&gt; &lt;/ul&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/466190044664612974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/11/experts-exchange-update.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/466190044664612974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/466190044664612974'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/11/experts-exchange-update.html' title='Experts-Exchange update'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-4008942464621640311</id><published>2012-10-16T05:01:00.001-07:00</published><updated>2012-10-16T05:01:21.326-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINQ"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Removing bom ‘ ï»¿ ‘ from file c#</title><content type='html'>&lt;pre class=&quot;brush: csharp;&quot;&gt;UTF8Encoding utf8WithoutBom =  new UTF8Encoding(false); &lt;br /&gt;using (TextWriter writer = new StreamWriter(outputpath,false,utf8WithoutBom)) &lt;br /&gt;{&lt;br /&gt;newDoc.Save(writer); &lt;br /&gt;} &lt;/pre&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/4008942464621640311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/10/removing-bom-i-from-file-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4008942464621640311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4008942464621640311'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/10/removing-bom-i-from-file-c.html' title='Removing bom ‘ ï»¿ ‘ from file c#'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-469856986305661533</id><published>2012-10-11T03:52:00.001-07:00</published><updated>2012-10-11T03:59:45.729-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XSLT"/><title type='text'>How to display current Date and Time calling Templates in XSLT using C#</title><content type='html'>The below script converts &#39;dd-mm-yyyy&#39; to &#39;yyyymmdd&#39; format. &lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;xsl:template name=&amp;quot;formatDate&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;xsl:param name=&amp;quot;dateTime&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;xsl:variable name=&amp;quot;dd&amp;quot; select=&amp;quot;substring($dateTime,1,2)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;xsl:variable name=&amp;quot;mm&amp;quot; select=&amp;quot;substring($dateTime,4,2)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;xsl:variable name=&amp;quot;yyyy&amp;quot; select=&amp;quot;substring($dateTime,7,4)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;xsl:value-of select=&amp;quot;concat($yyyy,$mm,$dd)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/xsl:template&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;xsl:call-template name=&amp;quot;formatDate&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;xsl:with-param name=&amp;quot;dateTime&amp;quot; select=&amp;quot;TestDate&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/xsl:call-template&amp;gt;&lt;/pre&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/469856986305661533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/10/how-to-display-current-date-and-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/469856986305661533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/469856986305661533'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/10/how-to-display-current-date-and-time.html' title='How to display current Date and Time calling Templates in XSLT using C#'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-4822909852324795964</id><published>2012-09-04T08:54:00.000-07:00</published><updated>2012-09-04T08:56:16.363-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQLServer"/><title type='text'>Extract characters from string in SQL Server</title><content type='html'>&lt;pre class=&quot;brush: sql;&quot;&gt;SET ANSI_NULLS ON&lt;br /&gt;GO&lt;br /&gt;SET QUOTED_IDENTIFIER ON&lt;br /&gt;GO&lt;br /&gt;ALTER FUNCTION [dbo].[udf_GetAlphabets]&lt;br /&gt;(@strAlphaNumeric VARCHAR(256))&lt;br /&gt;RETURNS VARCHAR(256)&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;DECLARE @intAlpha INT&lt;br /&gt;SET @intAlpha = PATINDEX(&#39;%[^A-Z]%&#39;, @strAlphaNumeric)&lt;br /&gt;BEGIN&lt;br /&gt;WHILE @intAlpha &amp;gt; 0&lt;br /&gt;BEGIN&lt;br /&gt;SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, &#39;&#39; )&lt;br /&gt;SET @intAlpha = PATINDEX(&#39;%[^A-Z]%&#39;, @strAlphaNumeric )&lt;br /&gt;END&lt;br /&gt;END&lt;br /&gt;RETURN ISNULL(@strAlphaNumeric,0)&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--SELECT dbo.udf_GetAlphabets(&#39;ABC1234DEFGH789&#39;)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Instead if you want to retrieve only numeric values from string replace the pattern &lt;strong&gt;&#39;%[^A-Z]%&#39;&lt;/strong&gt; with &lt;strong&gt;&#39;%[^0-9]%&#39;&lt;/strong&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/4822909852324795964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/09/extract-characters-from-string-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4822909852324795964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4822909852324795964'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/09/extract-characters-from-string-in-sql.html' title='Extract characters from string in SQL Server'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-4697740688913303579</id><published>2012-07-26T06:51:00.001-07:00</published><updated>2012-07-26T06:55:23.833-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>It is not possible to run two different versions of ASP.NET in the same IIS process</title><content type='html'>&lt;p&gt;&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;Server Application Unavailable&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The web application you are attempting to access on this web server is currently unavailable.&amp;#160; Please hit the &amp;quot;Refresh&amp;quot; button in your web browser to retry your request.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Administrator Note:&lt;/em&gt;&lt;/strong&gt; An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. &lt;/p&gt;  &lt;p&gt;You will also receive Event ID 1062 in Event Viewer that says: &lt;/p&gt;  &lt;p&gt;&amp;quot;It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process.&amp;quot; &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAQJD9tRBdwntDCEdBign7EG3C8P8zT-R6NyrzT8qxdcNy2JhFmMId9wP3i-GYfLOkzqdc8sGpY1QqxjlpoUgznaAG-evsvjg4eZz7XaLVUpy1z1tDyrD0eymAI7WrY68Gzk3eJRqEN0I/s1600-h/image%25255B15%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLMRcgZttSD_T47ms2Ig0LVkS4qP1mRM4xq6w2mjQG68-3Au1i1gBE9hyznFtJD7B7Shada2YrmdbqXUiLR02-g_5ZAwJemsBFLIroWGNi08RZiTho7rjAIYsz1OvtNtR0VxHQjqC_cmc/?imgmax=800&quot; width=&quot;262&quot; height=&quot;290&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The simple solution for this is:&lt;/p&gt;  &lt;p&gt;Create a new application pool and move the site that you will be upgrading to that pool. Once you have placed the site or virtual directory in new application pool, then upgrade to the new framework version. &lt;/p&gt;  &lt;p&gt;Follow the below steps to create resolve this issue:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnSZ6QbXQebSxLNyAwq6GCq8cc71VmMPq2mBKaCpw_aClZmSvuqXeM41x4qq26_LGc77HtbyPAgfh60VsCzpzZboVFhOabW__nSzp0zrnsusHImzMkNygUvs-TQv52bQ-RZuwIzM5YXUY/s1600-h/image%25255B16%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh34oY-UMHvTdjzsls1GxtmQm5RuRCIZqDftz2nCHJRvaqhyphenhyphenSaoPi4Xoh1RxgcbohB4cVLkWAVVlD0RN7czX1mitvbHKwD-9qGJk95xPKgYZcoqPVfhT7hHSpZr0mOOe43WJjjYDorTmLk/?imgmax=800&quot; width=&quot;333&quot; height=&quot;182&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt026P70FUpu7aLaHnS0giYz6o-e6_woZ8RrbWPSynr0uU6pn1MHTYUzCG3QKubQgNvpCE-l4F0zvNyoGeptxcYZXI51_cKNSotIfTD6IReTfZyUkTRbzn9eWCIS5Hz0AKJa_73Z95zCo/s1600-h/image%25255B17%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_MsPiVdLA8kA7eHNQDuUaRW_yo-sqmgy65mnnU0CAwSia7abQjbjHe2y7Uchkq3tfp560VCj-HGuEGerWQ2ae93BW2bzHAN7RzCLoqO5uTBFpeTXrZHu0bF6f71PfLNHJ0p5y_rJIPlg/?imgmax=800&quot; width=&quot;308&quot; height=&quot;299&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxNndUPpVtKkik6HOIbGjcLf_bpsF9mCGXhfFlrFbzVeTMGzAttYvpc5kq56SrJo1ayhoS47Uz3Cbcf9V_mqQ8qPqrjutxOMi1OgTuLne6K14box7cIDn-vGRG7KbbJjnk6SzrIHHDPyE/s1600-h/U1ntitled%25255B7%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;U1ntitled&quot; border=&quot;0&quot; alt=&quot;U1ntitled&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitumMwxv-fqLYoszwzUTLwDN7r2XsVU6ZDMvlSlIH2iKSumAMT39W_aEuqpelmOzRrV9A2aTXHMyyFe6zUiiqIuxifvZ_2WY106Llcs5Gnf6GKiqApO49TYmNf7E0BDq8Y33TUCYkjIZU/?imgmax=800&quot; width=&quot;323&quot; height=&quot;312&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/4697740688913303579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/07/it-is-not-possible-to-run-two-different.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4697740688913303579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/4697740688913303579'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/07/it-is-not-possible-to-run-two-different.html' title='It is not possible to run two different versions of ASP.NET in the same IIS process'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLMRcgZttSD_T47ms2Ig0LVkS4qP1mRM4xq6w2mjQG68-3Au1i1gBE9hyznFtJD7B7Shada2YrmdbqXUiLR02-g_5ZAwJemsBFLIroWGNi08RZiTho7rjAIYsz1OvtNtR0VxHQjqC_cmc/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-6034339528418852778</id><published>2012-07-11T01:51:00.001-07:00</published><updated>2012-07-11T02:03:19.883-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows Service"/><title type='text'>Windows Service -- creation , Installation , Uninstallation</title><content type='html'>&lt;p&gt;In this post we will have a look at how to create windows service in c# and how to install or uninstall and how to start service in detail.    &lt;br /&gt;First let us know what a window service is and uses of windows service and then we will see how to create windows service.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;What is Windows Service?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Windows Services are applications that run in the background and perform various tasks. The application that does not need any user interface. Windows Services are started automatically when computer is booted. Windows Services are controlled through the Service Control Manager where they can be stopped, paused, and started as needed.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How to Create a Windows Service &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Open visual studio (I’m using Visual studio 2010) --&amp;gt; Select File --&amp;gt; New --&amp;gt;Project--&amp;gt; select Windows Service from c#&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZD7fkfsNeBihrhyphenhyphen9C4-HcBv5wCC2JO1zBYj3sRQblAZTPsQmMsYJvV_YYtl1yIUxPGYqHXlU_P8QhmL49Dc8aP4z3KE4x7Dg0myeX-Em3e3GBrLVA3CZAPm_PHydWrGpjNv6fpAVXKNU/s1600-h/clip_image002%25255B5%25255D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrhZdxhEHBAdeAYHJj_IlGLFHyWP-ObhtrCSQXn1ckONqclrRYDvMJM9SpY1SjCBeSNdUYDD79ZguixjCH1YzhZP_fFbxz3dYH9WkxPnaVMYFD5jrj8Blq3OIh9Z7Yg6WdBFigAKKogxQ/?imgmax=800&quot; width=&quot;397&quot; height=&quot;275&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;click ok button to create our project that should like this&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjYEpZYzhKR1Cd7iJwD9M1OXgM9gKsQsdsbdiJuPch-9HbLqyydE_dLsMWMV5Sr2KuL8WmjmZlLL83MnZPq-Ng6Q8BcQiRIgplKuiJsj49WC-eTZHr6yTRWhPqTwCIq7qfoi4zVMltK9M/s1600-h/clip_image004%25255B5%25255D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image004&quot; border=&quot;0&quot; alt=&quot;clip_image004&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4jWIS6dIuCaYwYkoALdBEL2GylAkEScAIpwOQ4kEwxgeI49IBaiRaXA_BKyMlLHCwAuYcP49nbNyJYUweaCyNhNpjz07QQwzjLK43ZGGWbc0YK4yrcHhaQO6MshY2jfwv21H5zBplj9k/?imgmax=800&quot; width=&quot;399&quot; height=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In Solution explorer rename Service1.cs file to SampleService.cs.&lt;/p&gt;  &lt;p&gt;And then right click on the page to select Properties then change ServiceName to SampleService. &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB9c_ejQSrGdJBinkXiP66p78WpeiSOEcJyqbFGMvsyCJTrNfw3xvLZm058fRNs53GGD9U2KyNjyWoscyv0VwLGldG_6S4DDYPwTjaFNlU5sEEiMxwA8y8aj0g6xE3LgUOKq_lU7mpz2I/s1600-h/clip_image005%25255B7%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image005&quot; border=&quot;0&quot; alt=&quot;clip_image005&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikyUs8B-KTjmKHFrTLie8psRaR9wOK2L6UNtxt0zvgR46m6ndFiqoRvbk7nomkWClpsPtf2Spbl-5r2fJp6VZ5tQYqMKxSW89l2PDCtbexYKy8XGrKpD-ulaFSSsaySCFUNziX42A5KlQ/?imgmax=800&quot; width=&quot;209&quot; height=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/p&gt; Open SampleService.cs in design view and right click on it to Add Installer files to our application. The main purpose of using Windows Installer is an installation and configuration service provided with Windows. The installer service enables customers to provide better corporate deployment and provides a standard format for component management.&lt;br/&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyyeHDA4sgNeITTsAhnZdZs8o_DnHkqzCh1s0yge36XKu05NQPGoBlLihUD76xrrWCPo_CSngShZoA7tE_yZTBFGZEHT3cMzlqab71bx6fnlg_yrSgKqWkCiVPfsIcXDBRgLcdWjI2hlk/s1600-h/clip_image006%25255B7%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image006&quot; border=&quot;0&quot; alt=&quot;clip_image006&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0u-Qz9lz7eYoPMDrfcCZrAAViwBvQ8Ao9Y7pWTi976dv5Wd-OAgdQziYcIuf8zns_55quMUDTA_DbaSjsbNYelFfLGmK7G5AMNSkd8v43IqQA1ZVYrL-xYZoaU9jZ5K3VDZmyZMHdkcE/?imgmax=800&quot; width=&quot;350&quot; height=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can now see two controls: ServiceProcessInstaller1 and ServiceInstaller1&lt;/p&gt;  &lt;p&gt;Now right click on serviceProcessInstaller1 and select properties in that change Account toLocalSystem&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiKQg5V1howCWMVmXZPot15iJjCCs6_3u50lP7cd3pX5DBmS2zH6siQUFX3j2Y6o-lMuME85FX45JmDTX3jwe3_6VOBswnRZYriqbYcWG0yWkUeFMGMyP-avjKqkvIfxBpZvuI4GWL6F8/s1600-h/clip_image007%25255B7%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image007&quot; border=&quot;0&quot; alt=&quot;clip_image007&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDPnBDfAQ3prDwoCI7ve2Px73SVEDQlPWQirGa9k41WVsgII9MizQQAY3mS5iCR2gWrJDvKVODuJqT8eV5SiGMaCEvEsMf2mB3i2-aaA-xpSqYt7v18bBb8fU5G-gzq4GAk9I-8raGa_w/?imgmax=800&quot; width=&quot;224&quot; height=&quot;338&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now right click on ServiceInstaller1 and change properties&lt;/p&gt;  &lt;p&gt;StartType to Automatic &lt;/p&gt;  &lt;p&gt;DisplayName to ‘SampleService’&lt;/p&gt;  &lt;p&gt;After completion of setting all the properties now we need to write the code to run the windows services.&lt;br/&gt;We implement windows service to write entry every minute into a file.&lt;br/&gt;If you observe our project structure that contains Program.cs file that file contains Main() method otherwise write the Main() method like this in Program.cs file&lt;/p&gt;  &lt;pre class=&quot;brush: csharp;&quot;&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.ServiceProcess;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;br /&gt;namespace WindowsService1&lt;br /&gt;{&lt;br /&gt;    static class Program&lt;br /&gt;    {&lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// The main entry point for the application.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        static void Main()&lt;br /&gt;        {&lt;br /&gt;            ServiceBase[] ServicesToRun;&lt;br /&gt;            ServicesToRun = new ServiceBase[] &lt;br /&gt;            { &lt;br /&gt;                new SampleService() &lt;br /&gt;            };&lt;br /&gt;            ServiceBase.Run(ServicesToRun);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;Open SampleService.cs file and add namespaces for writing to file and timerin codebehind of SampleService.cs file&lt;br/&gt;&lt;br /&gt;using System.IO;&lt;br/&gt;using System.Timers;&lt;pre class=&quot;brush: csharp;&quot;&gt;  public partial class SampleService : ServiceBase&lt;br /&gt;    {&lt;br /&gt;        Timer timer = new Timer();&lt;br /&gt;&lt;br /&gt;        public SampleService()&lt;br /&gt;        {&lt;br /&gt;            InitializeComponent();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        protected override void OnStart(string[] args)&lt;br /&gt;        {&lt;br /&gt;            TraceService(&amp;quot;start service&amp;quot;);&lt;br /&gt;            timer.Elapsed += new ElapsedEventHandler(OnElapsedTime);&lt;br /&gt;            timer.Interval = 60000;&lt;br /&gt;            timer.Enabled = true;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        protected override void OnStop()&lt;br /&gt;        {&lt;br /&gt;            timer.Enabled = false;&lt;br /&gt;            TraceService(&amp;quot;stopping service&amp;quot;);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private void OnElapsedTime(object source, ElapsedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            TraceService(&amp;quot;Another entry at &amp;quot; + DateTime.Now);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private void TraceService(string content)&lt;br /&gt;        {&lt;br /&gt;            FileStream fs = new FileStream(@&amp;quot;C:\SampleService.txt&amp;quot;, FileMode.OpenOrCreate, FileAccess.Write);&lt;br /&gt;            StreamWriter sw = new StreamWriter(fs);&lt;br /&gt;            sw.BaseStream.Seek(0, SeekOrigin.End);&lt;br /&gt;            sw.WriteLine(content);&lt;br /&gt;            sw.Flush();&lt;br /&gt;            sw.Close();&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;In OnStart method the event ElapsedEventHandler is used to run the windows service for every one minute&lt;br/&gt;Then build the application and install the service.&lt;br/&gt;To install windows service in your follow these steps&lt;br/&gt;Start --&amp;gt; All Programs --&amp;gt; Microsoft Visual Studio 2010 --&amp;gt; Visual Studio Tools --&amp;gt; Open Visual Studio Command Prompt&lt;br/&gt;After open command prompt point to your windowsservice1.exe file in your project&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYPJdA4JunNEegMu4Ihezw1BUEkKDEEmzIqUDhVOOeUe7H1CVhrLTSJmQb0L25oXQKaiSpEPm3du6hL1qplV1ucyYfFcshAxsQeB-iPACvgNwk67uHbl0LS8qTbdXFqj9q8pGcCEt7cno/s1600-h/clip_image009%25255B7%25255D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image009&quot; border=&quot;0&quot; alt=&quot;clip_image009&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_W1rVn_f8MX8a86gBFUqtoKiFPRuXvwNjoaVM-DrKMupCK7DAxmI05ETLL8MAfvHJull2qxW2bBSyaXVvCHNeDqqps5fTXJqzfUcyJnmPArawIFNbBdoc5fl-R2KJZcJ_kh3GhA7kKVk/?imgmax=800&quot; width=&quot;356&quot; height=&quot;179&quot; /&gt;&lt;/a&gt;&lt;br/&gt;Installutil windowsservice1.exe (Give your windows service exe file name) and now press enter button.&lt;br/&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFAd8zbkIMBdkDpB7pNASBGOc-QVgYInDSTFkqESm92ainZvmmuRZHMh-kj0yvaxqSeaaaBBLdDj-KTjHI-457tyiRnLg-19M56sNFRjRGzQOEhAqyQxBHHgcPINFdX5DOczMlToBA0Zo/s1600-h/clip_image011%25255B7%25255D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image011&quot; border=&quot;0&quot; alt=&quot;clip_image011&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCXQebr_YO1_4v5NUoJdFco_2vYy9ckyZ6oI9PBg_EDyvzrEPmQVG7T1G6kAfIq5RCDskjdUwkviYArG5pgNQpGPCdPMLuWkrHN5A1J-AALXEn9L3Zzl3PxuhmD08u5DjmZ8bXOP0aNlk/?imgmax=800&quot; width=&quot;343&quot; height=&quot;302&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br/&gt;After successful installation of service, to view it:&lt;br/&gt;Start --&amp;gt; Control Panel --&amp;gt; Open Control Panel --&amp;gt; Select Administrative Tools --&amp;gt; Computer Management --&amp;gt; Services and Applications --&amp;gt; Services --&amp;gt; Open services&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA-GRMag_ZeL3DiyFDg3WgUiuC-0lDhHyLjDvKlvExeA5opC2O6wghnsfPFRoo3lfb8XfsQsAvshZ8gd9esv7YuZuuBNL7SYGPIfWj7gQFZZPme6XtDCV0dymJPZjG2lEsose2-Cdn9eE/s1600-h/clip_image013%25255B7%25255D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image013&quot; border=&quot;0&quot; alt=&quot;clip_image013&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJDziX21KMExLNPhwVrfwpZSVeWunnaUF15Fn4-_mjiv-sTQtW2-p-xSOCOJw_bNoTqqXXP1ova6iiEbD5XGzkONGDtlIlc45AgNRUDHuaQeWTJ-MlJ_-ych5b_Aeh2DNSulTt1ktGLGM/?imgmax=800&quot; width=&quot;402&quot; height=&quot;109&quot; /&gt;&lt;/a&gt;&lt;br/&gt;Right click on sampleservice and start the service.&lt;br/&gt;Note: If we want to uninstall the installed windows service go to VS 2010 command prompt and point to your service same as for installation and type statement installutil /u windowsservicesample.exe&lt;br/&gt;Once the service is started, and you will be able to see entries in the log file we defined in the code. &lt;br /&gt;  &lt;br /&gt;Now open the log file in your folder that Output of the file like this&lt;br/&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixqdgKDOOnEWqFJ6GYEU8AidLTPfBppdI-qQOcwSmsInOCsiduMmV1GVqTpg-7ZVJUJdEoXD7gQF9lpAcuu6GjgTXElRA0ejP6wlCr-Kh1UTjBth0jGccEaLEcaerhzZP2aFnFj92YhGc/s1600-h/image%25255B4%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRAqRcLdm3652YRHmZ-Trvr_h87bafFFcQZflMkl0rB8Ess6UPo808EduqD56slCb4dQ5GpPl3bBoVtYvRmawaexEbFpNEdlCeG29c-dDTmGBC_E3jYXeC550X5j44YCnqogtkJIOSiEM/?imgmax=800&quot; width=&quot;292&quot; height=&quot;237&quot; /&gt;&lt;/a&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/6034339528418852778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/07/windows-service-creation-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/6034339528418852778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/6034339528418852778'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/07/windows-service-creation-installation.html' title='Windows Service -- creation , Installation , Uninstallation'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrhZdxhEHBAdeAYHJj_IlGLFHyWP-ObhtrCSQXn1ckONqclrRYDvMJM9SpY1SjCBeSNdUYDD79ZguixjCH1YzhZP_fFbxz3dYH9WkxPnaVMYFD5jrj8Blq3OIh9Z7Yg6WdBFigAKKogxQ/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-5452316167227464216</id><published>2012-07-11T01:01:00.001-07:00</published><updated>2012-07-11T01:04:10.691-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows Service"/><category scheme="http://www.blogger.com/atom/ns#" term="XSLT"/><title type='text'>XSLT transformation using Windows Service</title><content type='html'>&lt;pre class=&quot;brush: csharp;&quot;&gt;&lt;br /&gt;  private string ArchivePath = @&amp;quot;c:\Archive\&amp;quot;;&lt;br /&gt;private string InputPath = @&amp;quot;c:\InputFiles\&amp;quot;;&lt;br /&gt;private string OutputPath = @&amp;quot;c:\OutputFiles\&amp;quot;;&lt;/pre&gt;To write the exception entries to Event Viewer&lt;br /&gt;&lt;pre class=&quot;brush: csharp;&quot;&gt;&lt;br /&gt;protected override void OnStart(string[] args)&lt;br /&gt;        {&lt;br /&gt;            Transformation();&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                // Uncomment this line to debug...&lt;br /&gt;                //System.Diagnostics.Debugger.Break();&lt;br /&gt;&lt;br /&gt;                _thread = new System.Threading.Thread(Transformation);&lt;br /&gt;                _thread.Start();&lt;br /&gt;                EventLog.WriteEntry(&amp;quot;Successful start.&amp;quot;, EventLogEntryType.Information);&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                // Log the exception.&lt;br /&gt;                EventLog.WriteEntry(ex.Message, EventLogEntryType.Error);&lt;br /&gt;            }&lt;br /&gt;        }&lt;/pre&gt;&lt;pre class=&quot;brush: csharp;&quot;&gt;&lt;br /&gt;&lt;br /&gt;        private void Transformation()&lt;br /&gt;        {&lt;br /&gt;            System.IO.Directory.SetCurrentDirectory(System.AppDomain.CurrentDomain.BaseDirectory);&lt;br /&gt;            // Source paths&lt;br /&gt;            string xsltFilePath = &amp;quot;D:\\Transformation.xslt&amp;quot;;&lt;br /&gt;     // refer link http://technovogeek.blogspot.ie/2012/07/how-to-display-current-date-and-time-in.html  for using sample XSLT&lt;br /&gt;            // Compile the style sheet.&lt;br /&gt;            XsltSettings xslt_settings = new XsltSettings();&lt;br /&gt;            xslt_settings.EnableScript = true;&lt;br /&gt;            XslCompiledTransform xslt = new XslCompiledTransform();&lt;br /&gt;            xslt.Load(xsltFilePath, xslt_settings, new XmlUrlResolver());&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                string[] inputfileEntries = Directory.GetFiles(InputPath);                &lt;br /&gt;                foreach (string fileName in inputfileEntries)&lt;br /&gt;                {&lt;br /&gt;                    // Load the XML source file.&lt;br /&gt;                    XPathDocument doc = new XPathDocument(fileName);&lt;br /&gt;&lt;br /&gt;                    // Create an XmlWriter.&lt;br /&gt;                    XmlWriterSettings settings = new XmlWriterSettings();&lt;br /&gt;                    settings.OmitXmlDeclaration = true;&lt;br /&gt;                    settings.Indent = true;&lt;br /&gt;&lt;br /&gt;                    if (!System.IO.Directory.Exists(OutputPath))&lt;br /&gt;                        System.IO.Directory.CreateDirectory(OutputPath);&lt;br /&gt;                    string file = System.IO.Path.Combine(OutputPath, System.IO.Path.GetFileNameWithoutExtension(fileName) + &amp;quot;_OUTPUT.xml&amp;quot;);&lt;br /&gt;                  &lt;br /&gt;                    XmlWriter writer = XmlWriter.Create(file, settings);&lt;br /&gt;&lt;br /&gt;                    if (!System.IO.Directory.Exists(ArchivePath))&lt;br /&gt;                        System.IO.Directory.CreateDirectory(ArchivePath);&lt;br /&gt;                    string destFile = System.IO.Path.Combine(ArchivePath, System.IO.Path.GetFileName(fileName));&lt;br /&gt;                    System.IO.File.Copy(fileName, destFile, true);&lt;br /&gt;                    // Execute the transformation.&lt;br /&gt;                    xslt.Transform(doc, writer);&lt;br /&gt;                    writer.Close();&lt;br /&gt;                    System.IO.File.Delete(fileName);&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                string str = &amp;quot;Unable to process the Conversion &amp;quot;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;/pre&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/5452316167227464216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/07/xslt-transformation-using-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/5452316167227464216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/5452316167227464216'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/07/xslt-transformation-using-windows.html' title='XSLT transformation using Windows Service'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-3568761453384707318</id><published>2012-07-11T00:54:00.001-07:00</published><updated>2012-07-11T00:54:20.748-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XSLT"/><title type='text'>How to display current Date and Time in XSLT using C#</title><content type='html'>&lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;iso-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;  &amp;lt;xsl:stylesheet version=&amp;quot;2.0&amp;quot;&lt;br /&gt;    xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot;&lt;br /&gt;    xmlns:msxsl=&amp;quot;urn:schemas-microsoft-com:xslt&amp;quot;&lt;br /&gt;    xmlns:my=&amp;quot;put-your-namespace-uri-here&amp;quot;&lt;br /&gt;    exclude-result-prefixes=&amp;quot;msxsl my&amp;quot;&amp;gt;&lt;br /&gt;  &amp;lt;xsl:output method=&amp;quot;xml&amp;quot; version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; indent=&amp;quot;yes&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;msxsl:script language=&amp;quot;C#&amp;quot; implements-prefix=&amp;quot;my&amp;quot;&amp;gt;&lt;br /&gt;    public string NowDate(){&lt;br /&gt;    return DateTime.Now.ToString(&amp;quot;ddMMyyyy&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;    public string NowTime(){&lt;br /&gt;    return DateTime.Now.ToString(&amp;quot;hhmmss&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;  &amp;lt;/msxsl:script&amp;gt;&lt;br /&gt;  &amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;xsl:value-of select=&amp;quot;my:NowDate()&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;xsl:value-of select=&amp;quot;my:NowTime()&amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;/pre&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/3568761453384707318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/07/how-to-display-current-date-and-time-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3568761453384707318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3568761453384707318'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/07/how-to-display-current-date-and-time-in.html' title='How to display current Date and Time in XSLT using C#'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-3806570086715657971</id><published>2012-06-20T03:47:00.000-07:00</published><updated>2012-06-25T03:49:26.166-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Certifications"/><title type='text'>Received MCTS Certification for WCF</title><content type='html'>&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqlnSph9lai0qFQtrAfdfOWwPCmivRK09dzA5HtGbEksI2PT6MwX1OPz8SKWnQK8XFP3Aldt8S8e_kopj19t4Z2znUvgshAiqrJhf6uLDaaCPkNHFxPiC64T4meNAevP_nuBeIZI5TnHU/s1600-h/MCTS%252528rgb%252529_1374%25255B4%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;MCTS(rgb)_1374&quot; border=&quot;0&quot; alt=&quot;MCTS(rgb)_1374&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuTLvNaUJFyUyDEEdTz822PzZ6jfG2EfZ5RncsFXi4t-pRt4BsPjb4m33q5-R0ZlnilgxOpNV6gJ38wDmEG3anIlicL6aQjes_ZLpM311hC8q-y3pvLRkJYv1ukr3hUoq_LAZbmIVSdjM/?imgmax=800&quot; width=&quot;565&quot; height=&quot;106&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiikTp0CXd68aeTtfx1AuZxvitzAI63p19SJGyOxuv60rJcYxDDPgtEdvoKpzESD36vgetckVae2fw1eKwKC-bd1by2Ouo8U6IbkGthyV3IHBfdiVI5JSX4wVSbMjjP2d7Zyokky4aHmlU/s1600-h/image%25255B5%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdzbUDPlTNsXk233END49ShQxnMpxQseWtpxY_nr5j8QywtZmJNSy2K4oK0ONOQLzmppDME2gqnLO2qK252_aK03GgoDEBbJTqUwHh8c3JBLmGsOABn1c7YLAuVMomKqLyLYiuTF9UrDE/?imgmax=800&quot; width=&quot;632&quot; height=&quot;477&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/3806570086715657971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/06/received-mcts-certification-for-wcf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3806570086715657971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3806570086715657971'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/06/received-mcts-certification-for-wcf.html' title='Received MCTS Certification for WCF'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuTLvNaUJFyUyDEEdTz822PzZ6jfG2EfZ5RncsFXi4t-pRt4BsPjb4m33q5-R0ZlnilgxOpNV6gJ38wDmEG3anIlicL6aQjes_ZLpM311hC8q-y3pvLRkJYv1ukr3hUoq_LAZbmIVSdjM/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-8763881390417560839</id><published>2012-06-19T09:27:00.001-07:00</published><updated>2012-06-19T09:27:04.567-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#4.0"/><title type='text'>Rijndael Algorithm for Encryption and Decryption</title><content type='html'>&lt;p&gt;I have implemented a sample code to implement encryption and decryption of string using Rijndael Algorithm   &lt;pre class=&quot;brush: csharp;&quot;&gt; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        string clearData = &amp;quot;Hello, World!&amp;quot;;&lt;br /&gt;        string key = &amp;quot;s@1tValue&amp;quot;;&lt;br /&gt;        byte[] b = Encrypt(clearData, key);&lt;br /&gt;        Response.Write(&amp;quot;Encrypted String: &amp;quot; + Convert.ToBase64String(b));        &lt;br /&gt;        Response.Write(&amp;quot;--------------------------------------------------------------&amp;quot;);&lt;br /&gt;        Response.Write(&amp;quot;Decrypted String: &amp;quot; + Encoding.UTF8.GetString(Decrypt(b, key)));&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static byte[] Encrypt(string iclearData, string key)&lt;br /&gt;    {&lt;br /&gt;        try&lt;br /&gt;        {&lt;br /&gt;            byte[] clearData = Encoding.ASCII.GetBytes(iclearData);&lt;br /&gt;            var salt = new byte[] { 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76 };&lt;br /&gt;            var pdb = new PasswordDeriveBytes(key, salt);&lt;br /&gt;            MemoryStream ms = new MemoryStream();&lt;br /&gt;            var alg = Rijndael.Create();&lt;br /&gt;            alg.Key = pdb.GetBytes(32);&lt;br /&gt;            alg.IV = pdb.GetBytes(16);&lt;br /&gt;            CryptoStream cryptoStream = new CryptoStream(ms,alg.CreateEncryptor(),CryptoStreamMode.Write);&lt;br /&gt;            cryptoStream.Write(clearData, 0, clearData.Length);&lt;br /&gt;             cryptoStream.FlushFinalBlock(); &lt;br /&gt;            byte[] cipherTextBytes = ms.ToArray();&lt;br /&gt;            ms.Close();&lt;br /&gt;            cryptoStream.Close();&lt;br /&gt;            return cipherTextBytes;&lt;br /&gt;        }&lt;br /&gt;        catch (Exception)&lt;br /&gt;        {&lt;br /&gt;            throw new Exception(&amp;quot;Encryption Failed&amp;quot;);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static byte[] Decrypt(byte[] cipherData, string key)&lt;br /&gt;    {&lt;br /&gt;        try&lt;br /&gt;        {&lt;br /&gt;            var salt = new byte[] { 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76 };&lt;br /&gt;            var pdb = new PasswordDeriveBytes(key, salt);           &lt;br /&gt;            var alg = Rijndael.Create();&lt;br /&gt;            alg.Key = pdb.GetBytes(32);&lt;br /&gt;            alg.IV = pdb.GetBytes(16);&lt;br /&gt;            MemoryStream ms = new MemoryStream(cipherData);&lt;br /&gt;            CryptoStream cryptoStream = new CryptoStream(ms,alg.CreateDecryptor(),CryptoStreamMode.Read);&lt;br /&gt;            byte[] plainTextBytes = new byte[cipherData.Length];&lt;br /&gt;            int decryptedByteCount = cryptoStream.Read(plainTextBytes,  0, plainTextBytes.Length);&lt;br /&gt;            ms.Close();&lt;br /&gt;            cryptoStream.Close();&lt;br /&gt;            return plainTextBytes;&lt;br /&gt;        }&lt;br /&gt;        catch (Exception)&lt;br /&gt;        {&lt;br /&gt;            throw new Exception(&amp;quot;Decryption Failed&amp;quot;);&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/8763881390417560839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/06/rijndael-algorithm-for-encryption-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/8763881390417560839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/8763881390417560839'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/06/rijndael-algorithm-for-encryption-and.html' title='Rijndael Algorithm for Encryption and Decryption'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-3652002368996498860</id><published>2012-06-18T03:34:00.001-07:00</published><updated>2012-06-18T03:34:20.818-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Certifications"/><title type='text'>MCTS Certification</title><content type='html'>&lt;p&gt;Today i took my first Certification and it is on Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4   &lt;br /&gt;I got certified with score 861/1000&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/3652002368996498860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/06/mcts-certification.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3652002368996498860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3652002368996498860'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/06/mcts-certification.html' title='MCTS Certification'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-724038552088793715</id><published>2012-06-08T04:02:00.001-07:00</published><updated>2012-06-08T06:02:16.697-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#4.0"/><title type='text'>How to display rss feed in asp.net</title><content type='html'>In this post I will show you how to display rss feed in asp.net using XmlDataSource and DataList control.   &lt;br /&gt;Create a web page name it as RSSFeed.aspx   &lt;br /&gt;  &lt;pre class=&quot;brush: csharp;&quot;&gt;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;div&amp;gt;&lt;br /&gt;        &amp;lt;asp:TextBox ID=&amp;quot;txtUrl&amp;quot; runat=&amp;quot;server&amp;quot; Width=&amp;quot;349px&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;        &amp;lt;asp:Button ID=&amp;quot;btnLoad&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Load&amp;quot; OnClick=&amp;quot;btnLoad_Click&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;asp:DataList ID=&amp;quot;dlRss&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;                &amp;lt;%#XPath(&amp;quot;title&amp;quot;) %&amp;gt;&lt;br /&gt;                &amp;lt;i&amp;gt;&lt;br /&gt;                    &amp;lt;%#XPath(&amp;quot;description&amp;quot;) %&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;i&amp;gt;&lt;br /&gt;                        &amp;lt;%#XPath(&amp;quot;pubdate&amp;quot;) %&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;b&amp;gt;&amp;lt;a href=&amp;quot;&lt;%#XPath(&quot;link&quot;) %&gt;&amp;quot;&amp;gt;&lt;br /&gt;                            &amp;lt;%#XPath(&amp;quot;link&amp;quot;) %&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;            &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;        &amp;lt;/asp:DataList&amp;gt;&lt;br /&gt;        &amp;lt;asp:XmlDataSource ID=&amp;quot;xml&amp;quot; runat=&amp;quot;server&amp;quot; XPath=&amp;quot;rss/channel/item&amp;quot;&amp;gt;&amp;lt;/asp:XmlDataSource&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;pre class=&quot;brush: csharp;&quot;&gt;protected void btnLoad_Click(object sender, EventArgs e)&lt;br /&gt;    {        &lt;br /&gt;        if (txtUrl.Text != &amp;quot;&amp;quot;)&lt;br /&gt;        {&lt;br /&gt;            xml.DataFile = txtUrl.Text;&lt;br /&gt;            dlRss.DataSourceID = xml.ClientID;&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/724038552088793715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/06/how-to-display-rss-feed-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/724038552088793715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/724038552088793715'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/06/how-to-display-rss-feed-in-aspnet.html' title='How to display rss feed in asp.net'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-3869364574722430593</id><published>2012-06-06T03:00:00.001-07:00</published><updated>2012-06-06T03:00:17.013-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SilverLight"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010"/><title type='text'>“click here to reload the designer” message when creating new SL application in Visual Studio 2010</title><content type='html'>&lt;p&gt;Generally Visual Studio 2010 doesn&#39;t come with Silverlight 4 . They have Silverlight 3 capability only.    &lt;br /&gt;If you want to develop Silverlight 4 app in any of the above two IDEs, you need to install additional add-on that can be installed from &lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b3deb194-ca86-4fb6-a716-b67c2604a139&quot;&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b3deb194-ca86-4fb6-a716-b67c2604a139&lt;/a&gt; (34 MB).     &lt;br /&gt;Once you have installed, you should start developing Silverlight 4 app.&lt;/p&gt;  &lt;p&gt;But when you get the error message “click here to reload the designer” message with the Details pane referring to a null reference exception &amp;quot;object reference not set to an instance of an object&amp;quot;    &lt;br /&gt;Just uninstall all the Silver Light named programs from Control Panel.     &lt;br /&gt;And follow the process mentioned above .     &lt;br /&gt;Don&#39;t try to install SilverlightDeveloper.exe before installing SilverlightTools.exe because results in the above error.&lt;/p&gt;  &lt;p&gt;Hope this helps!&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/3869364574722430593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/06/click-here-to-reload-designer-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3869364574722430593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3869364574722430593'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/06/click-here-to-reload-designer-message.html' title='“click here to reload the designer” message when creating new SL application in Visual Studio 2010'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-1866903623685801515</id><published>2012-06-01T03:41:00.001-07:00</published><updated>2012-06-01T03:42:24.216-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQLServer"/><title type='text'>Dynamic SQL Query</title><content type='html'>SQL Server different ways of running a dynamic SQL Query statement:   &lt;br /&gt;1.Query with parameters   &lt;br /&gt;2.EXEC   &lt;br /&gt;3.Sp_Executesql  &lt;br /&gt;&lt;br/&gt;1. Query with parameters  &lt;br /&gt;It is as simple as the following example shows.   &lt;pre class=&quot;brush: sql;&quot;&gt;DECLARE @emp varchar(75)&lt;br /&gt;SET @emp = &#39;Anu&#39;&lt;br /&gt;SELECT * FROM employee WHERE EmpName = @emp&lt;/pre&gt;2. EXEC &lt;br /&gt;&lt;br /&gt;SQL statement is built on the fly &lt;br /&gt;&lt;pre class=&quot;brush: sql;&quot;&gt;DECLARE @sqlCommand varchar(1000)&lt;br /&gt;DECLARE @columnList varchar(75)&lt;br /&gt;DECLARE @ emp varchar(75)&lt;br /&gt;SET @columnList = &#39;EmpId, Salary, EmpName&#39;&lt;br /&gt;SET @emp = &#39;&#39;&#39;Anu&#39;&#39;&#39;&lt;br /&gt;SET @sqlCommand = &#39;SELECT &#39; + @columnList + &#39; FROM employee WHERE EmpName = &#39; + @emp&lt;br /&gt;EXEC (@sqlCommand)&lt;/pre&gt;&lt;br /&gt;3. sp_executesql&lt;br /&gt;&lt;pre class=&quot;brush: sql;&quot;&gt;DECLARE @sqlCommand nvarchar(1000)&lt;br /&gt;DECLARE @columnList varchar(75)&lt;br /&gt;DECLARE @emp varchar(75)&lt;br /&gt;SET @columnList = &#39;EmpId, Salary, EmpName&#39;&lt;br /&gt;SET @emp = &#39;&#39;&#39;Anu&#39;&#39;&#39;&lt;br /&gt;SET @sqlCommand = &#39;SELECT &#39; + @columnList + &#39; FROM employee WHERE EmpName = &#39; + @emp&lt;br /&gt;EXECUTE sp_executesql @sqlCommand, N&#39;@emp nvarchar(75)&#39;, @emp = @emp&lt;/pre&gt;&lt;br /&gt;So here are three different ways of writing dynamic queries   </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/1866903623685801515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/06/dynamic-sql-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/1866903623685801515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/1866903623685801515'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/06/dynamic-sql-query.html' title='Dynamic SQL Query'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-3339924472934107786</id><published>2012-06-01T03:29:00.001-07:00</published><updated>2012-06-01T03:30:04.825-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQLServer"/><title type='text'>SQL Server With Syntax in Dynamic Query</title><content type='html'>&lt;pre class=&quot;brush: sql;&quot;&gt;&lt;br /&gt;Declare @sql nvarchar(max)&lt;br /&gt;DEclare @tab nvarchar(50)&lt;br /&gt;set @tab= &#39;Employeetable&#39;&lt;br /&gt;-- To get column list of table in database&lt;br /&gt;select &#39;select * from &#39;+@tab+&#39; where &#39; +  name + &#39;=True&#39; as query1 into Temptable &lt;br /&gt;from sys.columns where object_id in(select object_id  from sys.tables where name=&#39;&#39;+@tab+&#39;&#39;) &lt;br /&gt;&lt;br /&gt;declare @colcount int&lt;br /&gt;declare @counter int&lt;br /&gt;DEclare @cmd nvarchar(max)&lt;br /&gt;set @counter=0&lt;br /&gt;select @colcount =COUNT(*) from Temptable&lt;br /&gt;WHILE @counter &amp;lt; @colcount&lt;br /&gt;    BEGIN&lt;br /&gt;      SET @counter = @counter + 1&lt;br /&gt;      SET @cmd =&#39;;WITH MyCte AS ( select   query1, RowNum = row_number() OVER ( order by query1 )  &lt;br /&gt;from Temptable ) SELECT query1 FROM MyCte WHERE RowNum = &#39;+CONVERT(nvarchar,@counter)&lt;br /&gt;     EXECUTE sp_executesql @cmd&lt;br /&gt;    END&lt;br /&gt;      &lt;br /&gt;-- The above example is example for executing Dynamic Query Resultset&lt;br /&gt;-- ;WITH MyCte AS ( select   query1, RowNum = row_number() OVER ( order by query1 )  from Temptable ) &lt;br /&gt;--SELECT query1 FROM MyCte WHERE RowNum = 2&lt;br /&gt;   &lt;br /&gt;DECLARE @sqlCommand nvarchar(1000)&lt;br /&gt;DECLARE @columnList varchar(75)&lt;br /&gt;DECLARE @city varchar(75)&lt;br /&gt;SET @columnList = &#39;EmpId, Salary, EmpName&#39;&lt;br /&gt;SET @city = &#39;Anu&#39;&lt;br /&gt;SET @sqlCommand = &#39;SELECT &#39; + @columnList + &#39;,ROW_NUMBER() OVER( order by EmpId) as rownum &lt;br /&gt;FROM Employee WHERE EmpName = @city&#39;&lt;br /&gt;EXECUTE sp_executesql @sqlCommand, N&#39;@city nvarchar(75)&#39;, @city = @city&lt;br /&gt;set @sqlCommand = &#39;SELECT  *,ROW_NUMBER() OVER( order by query1) as rownum  from Temptable&#39;&lt;br /&gt;EXECUTE sp_executesql @sqlCommand&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/3339924472934107786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/06/sql-server-with-syntax-in-dynamic-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3339924472934107786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/3339924472934107786'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/06/sql-server-with-syntax-in-dynamic-query.html' title='SQL Server With Syntax in Dynamic Query'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-912297263564282165.post-5323555881040471028</id><published>2012-05-31T09:17:00.001-07:00</published><updated>2012-05-31T09:17:25.665-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>VB equivalent to C# typeof() keyword</title><content type='html'>&lt;pre class=&quot;brush: csharp;&quot;&gt;&lt;br /&gt;typeof(Foo)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;In VB...it&#39;s...&lt;br /&gt;&lt;pre class=&quot;brush: vb;&quot;&gt;&lt;br /&gt;GetType(Foo)&lt;br /&gt;&lt;/pre&gt;  </content><link rel='replies' type='application/atom+xml' href='http://technovogeek.blogspot.com/feeds/5323555881040471028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technovogeek.blogspot.com/2012/05/vb-equivalent-to-c-typeof-keyword.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/5323555881040471028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/912297263564282165/posts/default/5323555881040471028'/><link rel='alternate' type='text/html' href='http://technovogeek.blogspot.com/2012/05/vb-equivalent-to-c-typeof-keyword.html' title='VB equivalent to C# typeof() keyword'/><author><name>Anuradha</name><uri>http://www.blogger.com/profile/08109427465875961852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_HnPjSjuUow8n1XCPQbN8GZGhLwGZDF62_z2v-g9uuRRoqOXZCCW6Xlm2n-f8lIcsKLRJwJ2Pjwf3_2EVELTxknu6ntYW2aICt6x3lgFbr80c-MIPU9Jiaj-WmmX4GQ/s220/Smile.jpg'/></author><thr:total>0</thr:total></entry></feed>