<?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-5062906655887363030</id><updated>2026-04-19T02:38:08.099+05:30</updated><category term="ASP.NET"/><category term="ASP.NET 2.0"/><category term="CsharpTwitt"/><category term="SFTPPro"/><category term="ASP.NET 4.0"/><category term="FCKEditor"/><category term="FTPPro"/><category term="Jquery"/><category term="SQL SERVER"/><category term="Csharp Twitter"/><category term="DateTime foramt of ASP.NET"/><category term="Excel"/><category term="Export To Excel from ASP.NET"/><category term="GridView"/><category term="Industrial Buying or Selling"/><category term="ListBox Control"/><category term="VS 2010"/><category term="XML"/><category term="scaffolding"/><title type='text'>Himanshu Hajariwala</title><subtitle type='html'>&lt;b&gt;CsharpTwitt, SFTPPro, FTPPro&lt;/b&gt;, asp.net, MVC, WCF, c#, sql server, javascript, jQuery, Nhibernate..., and also some beautiful Quotes</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-7461799643015088287</id><published>2024-02-13T13:14:00.007+05:30</published><updated>2024-02-13T13:27:46.604+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Industrial Buying or Selling"/><title type='text'>Buying or selling of Industrial Units, Plots, Machineries or Scrap</title><content type='html'>&lt;p&gt;Buying or selling of industrial units, plots, machinery, or scrap in Ankleshwar, Dahej, Jaghadia, Panoli, Bharuch, and Surat.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We will help you to reach potential buyers/sellers.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please share your details over email: himanshu.hajariwala@gmail.com&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/7461799643015088287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/7461799643015088287' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7461799643015088287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7461799643015088287'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2024/02/buying-or-selling-of-industrial-units.html' title='Buying or selling of Industrial Units, Plots, Machineries or Scrap'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bharuch, Gujarat, India</georss:featurename><georss:point>21.7051358 72.9958748</georss:point><georss:box>-6.6050980361788447 37.839624799999996 50.015369636178846 108.1521248</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-4742796818882990867</id><published>2014-06-30T18:02:00.003+05:30</published><updated>2014-06-30T18:02:59.948+05:30</updated><title type='text'>ASP.NET MVC Good Practice</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.codemag.com/Article/1405071&quot;&gt;http://www.codemag.com/Article/1405071&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/4742796818882990867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/4742796818882990867' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4742796818882990867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4742796818882990867'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2014/06/aspnet-mvc-good-practice.html' title='ASP.NET MVC Good Practice'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-7563309415230384917</id><published>2014-06-30T18:01:00.002+05:30</published><updated>2014-06-30T18:01:19.959+05:30</updated><title type='text'>ASP.NET Identity Articles</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Good
articles for ASP.NET Identity:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.asp.net/identity/overview/getting-started/aspnet-identity-recommended-resources&quot;&gt;http://www.asp.net/identity/overview/getting-started/aspnet-identity-recommended-resources&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity&quot;&gt;http://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/7563309415230384917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/7563309415230384917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7563309415230384917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7563309415230384917'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2014/06/aspnet-identity-articles.html' title='ASP.NET Identity Articles'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-3916153941003469558</id><published>2013-08-01T16:36:00.000+05:30</published><updated>2013-08-01T16:43:43.648+05:30</updated><title type='text'>Entity Framework: Get Started</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Following video will help you to get started with Entity Framework:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
&lt;script src=&quot;http://msdn.microsoft.com/en-us/videoembed/entity-framework-model-first&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

or visit http://msdn.microsoft.com/en-us/data/entity-framework-model-first
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/3916153941003469558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/3916153941003469558' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3916153941003469558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3916153941003469558'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2013/08/entity-framework-get-started.html' title='Entity Framework: Get Started'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-4491250122558154005</id><published>2013-01-21T16:18:00.001+05:30</published><updated>2013-01-21T16:19:49.236+05:30</updated><title type='text'>Asynchronously Streaming Video with Web API</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Nice articles to learn how to use Web API beyond the classic and traditional user as API&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://weblogs.asp.net/andresv/archive/2012/12/12/asynchronous-streaming-in-asp-net-webapi.aspx&quot; target=&quot;_blank&quot;&gt;Asynchronous Streaming with Web API&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.strathweb.com/2013/01/asynchronously-streaming-video-with-asp-net-web-api/&quot; target=&quot;_blank&quot;&gt;Asynchronously Streaming Video with Web API&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/4491250122558154005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/4491250122558154005' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4491250122558154005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4491250122558154005'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2013/01/asynchronously-streaming-video-with-web.html' title='Asynchronously Streaming Video with Web API'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-3371313149911104327</id><published>2013-01-21T16:11:00.001+05:30</published><updated>2013-01-21T16:12:57.408+05:30</updated><title type='text'>MVC 4 Web API</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The great video to start with MVC 4 WEB API&lt;br /&gt;
&lt;br /&gt;
download the following video and learn from PM of ASP.NET team&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://media.ch9.ms/ch9/a9c8/95120d80-784c-453c-a3c7-36bd8897a9c8/DanRothDemonstratesWebAPIUsingVisualStudio2012RC_mid.mp4&quot;&gt;http://media.ch9.ms/ch9/a9c8/95120d80-784c-453c-a3c7-36bd8897a9c8/DanRothDemonstratesWebAPIUsingVisualStudio2012RC_mid.mp4&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/3371313149911104327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/3371313149911104327' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3371313149911104327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3371313149911104327'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2013/01/mvc-4-web-api.html' title='MVC 4 Web API'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-4186910185048095104</id><published>2012-08-29T16:27:00.000+05:30</published><updated>2012-08-29T17:18:25.914+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Phone Number Auto Increment Decrement Focus</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: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: large;&quot;&gt;Following Jquery functions are used to set focus on text box on max length and set focus to prev text box on click of backspace when length gets zero.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Consolas; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$(function () { &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$(&#39;.phoneText,.AlternatePhoneText,.FaxText&#39;).keyup(function (e) { &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;if (e.which == 8) {&lt;br /&gt;if ($(this).val().length == 0)&lt;br /&gt;&amp;nbsp;$(this).prev(&#39;:input&#39;).focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;br /&gt;else {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;if ($(this).val().length == $(this).attr(&#39;maxlength&#39;))&lt;br /&gt;&amp;nbsp;$(this).next(&#39;:input&#39;).focus(); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;} &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;})&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;})&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/4186910185048095104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/4186910185048095104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4186910185048095104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4186910185048095104'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2012/08/phone-number-auto-incement-decrement.html' title='Phone Number Auto Increment Decrement Focus'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-7450032923257958374</id><published>2012-05-30T17:59:00.000+05:30</published><updated>2012-05-30T17:59:00.758+05:30</updated><title type='text'>SetProperty and GetProperty with C# Reflection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
SetProperty and GetProperty with C# Reflection&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #0600ff;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;span style=&quot;color: #0600ff;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;object&lt;/span&gt; getProperty&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;object&lt;/span&gt; containingObject, &lt;span style=&quot;color: red;&quot;&gt;string&lt;/span&gt; propertyName&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
    &lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;span style=&quot;color: #0600ff;&quot;&gt;return&lt;/span&gt; containingObject.&lt;span style=&quot;color: blue;&quot;&gt;GetType&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: blue;&quot;&gt;InvokeMember&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;propertyName, BindingFlags.&lt;span style=&quot;color: blue;&quot;&gt;GetProperty&lt;/span&gt;, &lt;span style=&quot;color: #0600ff;&quot;&gt;null&lt;/span&gt;, containingObject, &lt;span style=&quot;color: #0600ff;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 
&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;span style=&quot;color: #0600ff;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0600ff;&quot;&gt;void&lt;/span&gt; setProperty&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;object&lt;/span&gt; containingObject, &lt;span style=&quot;color: red;&quot;&gt;string&lt;/span&gt; propertyName, &lt;span style=&quot;color: red;&quot;&gt;object&lt;/span&gt; newValue&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
    &lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
containingObject.&lt;span style=&quot;color: blue;&quot;&gt;GetType&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: blue;&quot;&gt;InvokeMember&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;propertyName, BindingFlags.&lt;span style=&quot;color: blue;&quot;&gt;SetProperty&lt;/span&gt;, &lt;span style=&quot;color: #0600ff;&quot;&gt;null&lt;/span&gt;, containingObject, &lt;span style=&quot;color: green;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; newValue &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;csharp&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/7450032923257958374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/7450032923257958374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7450032923257958374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7450032923257958374'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2012/05/setproperty-and-getproperty-with-c.html' title='SetProperty and GetProperty with C# Reflection'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-9193029313859980438</id><published>2012-02-09T14:44:00.001+05:30</published><updated>2012-02-09T14:44:50.782+05:30</updated><title type='text'>Receive Json Web response in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Following code use to get Json Response in My object&lt;br /&gt;
&lt;br /&gt;
using (var twitpicResponse = (HttpWebResponse)request.GetResponse()) { &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (var reader = new StreamReader(twitpicResponse.GetResponseStream())) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JavaScriptSerializer js = new JavaScriptSerializer(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var objText = reader.ReadToEnd(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyObject myojb = (MyObject)js.Deserialize(objText,typeof(MyObject)); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/9193029313859980438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/9193029313859980438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/9193029313859980438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/9193029313859980438'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2012/02/receive-json-web-response-in-c.html' title='Receive Json Web response in C#'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-5871804406044325525</id><published>2011-11-02T18:29:00.000+05:30</published><updated>2011-11-02T18:29:39.364+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET 4.0"/><title type='text'>IIS 7 : To Execute function/code for very first request only</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: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;//In Following method call to FirstRequestInitialization is done every time beginRequest called for a Application.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; Application_BeginRequest(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; source, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;EventArgs&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; e)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HttpApplication&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; app = (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;HttpApplication&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;)source;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpContext&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; context = app.Context;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Attempt to peform first request initialization&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstRequestInitialization&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;.Initialize(context);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;//Following Class will check the Flag(s_InitializedAlready) and according that it will execute Initializer function and check that request comes for first time or not.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;FirstRequestInitialization&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;bool&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; s_InitializedAlready = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; s_lock = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Initialize only on the first request&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; Initialize(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas;&quot;&gt;HttpContext&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; context)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;           &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; (s_InitializedAlready)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;               &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;               &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lock&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; (s_lock)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; (s_InitializedAlready)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;                   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; //&amp;nbsp;write your code here for first-request initialization ...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/5871804406044325525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/5871804406044325525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/5871804406044325525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/5871804406044325525'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2011/11/iis-7-to-execute-functioncode-for-very.html' title='IIS 7 : To Execute function/code for very first request only'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-3322618272851461884</id><published>2011-10-25T15:42:00.001+05:30</published><updated>2011-10-25T15:43:03.581+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Jquery Ajax call, dont want to load from Cache.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;To avoid loading data or content from cache when making Ajax call using Jquery, the following statement need to add in the document.ready block.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt; &lt;span style=&quot;color: blue; font-size: small;&quot;&gt;&lt;strong&gt;$(document).ready(&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; () {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;ajaxSetup &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// Disable caching of AJAX responses&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span class=&quot;pun&quot; style=&quot;color: blue;&quot;&gt;&lt;strong&gt;});&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span class=&quot;pun&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;});&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt; &lt;br /&gt;
&lt;span class=&quot;pun&quot;&gt;the above code will disable caching for Ajax response on the page.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/3322618272851461884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/3322618272851461884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3322618272851461884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3322618272851461884'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2011/10/jquery-ajax-call-dont-want-to-load-from.html' title='Jquery Ajax call, dont want to load from Cache.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-8963535611861581836</id><published>2011-08-31T13:42:00.002+05:30</published><updated>2011-08-31T13:42:19.538+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET 2.0"/><title type='text'>Gridview to show header when Empty</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.showheaderwhenempty.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.showheaderwhenempty.aspx&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/8963535611861581836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/8963535611861581836' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/8963535611861581836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/8963535611861581836'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2011/08/gridview-to-show-header-when-empty.html' title='Gridview to show header when Empty'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-7054208937290313594</id><published>2011-08-30T18:22:00.001+05:30</published><updated>2011-08-30T18:22:12.898+05:30</updated><title type='text'>Print Area of the Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Following Jqury Plugin is used to print selected div or html to print&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://plugins.jquery.com/project/PrintArea&quot;&gt;http://plugins.jquery.com/project/PrintArea&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/7054208937290313594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/7054208937290313594' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7054208937290313594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7054208937290313594'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2011/08/print-area-of-page.html' title='Print Area of the Page'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-2412307585899601160</id><published>2011-08-30T18:03:00.002+05:30</published><updated>2011-08-30T18:03:45.898+05:30</updated><title type='text'>Disable COPY PASTE and CUT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;following link will help to disable copy paste and cut with jquery&lt;br /&gt;
&lt;a href=&quot;http://jquerybyexample.blogspot.com/2010/12/disable-cut-copy-and-paste-function-for.html&quot;&gt;http://jquerybyexample.blogspot.com/2010/12/disable-cut-copy-and-paste-function-for.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/2412307585899601160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/2412307585899601160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/2412307585899601160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/2412307585899601160'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2011/08/disable-copy-paste-and-cut.html' title='Disable COPY PASTE and CUT'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-6544686939130285644</id><published>2010-06-08T16:42:00.000+05:30</published><updated>2010-06-08T16:42:12.686+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="FCKEditor"/><title type='text'>Required Field validation using Custom Validation for FCKEditor</title><content type='html'>&lt;span style=&quot;color: #3d85c6;&quot;&gt;//Following are the Html Part of aspx page.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: white;&quot;&gt;&amp;lt;FCKeditorV2:FCKeditor ID=&quot;fckeditor_test&quot; runat=&quot;server&quot; Height=&quot;500px&quot; Width=&quot;520px&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: white;&quot;&gt;UseBROnCarriageReturn=&quot;true&quot; Visible=&quot;true&quot; &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: white;&quot;&gt;&amp;lt;/FCKeditorV2:FCKeditor&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: white;&quot;&gt;&amp;lt;asp:CustomValidator ID=&quot;CustomValidator1&quot; runat=&quot;server&quot; ValidationGroup=&quot;validate&quot; ClientValidationFunction=&quot;ValidateFCK&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: white;&quot;&gt;ErrorMessage=&quot;Pls Enter Some Comments&quot;&amp;gt;&amp;lt;/asp:CustomValidator&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: white;&quot;&gt;&amp;lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; Text=&quot;Button&quot; CausesValidation=&quot;true&quot; ValidationGroup=&quot;validate&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;//Following is the Javascript part&lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
function ValidateFCK(source, args) { &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
var FEditorID = &#39;ctl00_ContentPlaceHolder1_fckeditor_test&#39;;&lt;br /&gt;
&lt;br /&gt;
var text = GetPlainText(FEditorID); &lt;br /&gt;
&lt;br /&gt;
if (text.length == 0) {&lt;br /&gt;
&lt;br /&gt;
args.IsValid = false;&lt;br /&gt;
&lt;br /&gt;
FCKeditorAPI.GetInstance(FEditorID).Focus();&lt;br /&gt;
&lt;br /&gt;
return;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
args.IsValid = true;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
function GetPlainText(FCKEditorID) {&lt;br /&gt;
&lt;br /&gt;
var FEditor = FCKeditorAPI.GetInstance(FCKEditorID);&lt;br /&gt;
&lt;br /&gt;
var Result = &quot;&quot;;&lt;br /&gt;
&lt;br /&gt;
if (FEditor.EditorDocument.body.textContent &lt;br /&gt;
&lt;br /&gt;
FEditor.EditorDocument.body.textContent==&quot;&quot; ) {&lt;br /&gt;
&lt;br /&gt;
//Firefox compitable browser&lt;br /&gt;
&lt;br /&gt;
Result = FEditor.EditorDocument.body.textContent.trim(); &lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
else { &lt;br /&gt;
&lt;br /&gt;
//IE compitable browser &lt;br /&gt;
&lt;br /&gt;
Result = FEditor.EditorDocument.body.innerText.trim(); &lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return Result; &lt;br /&gt;
&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/6544686939130285644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/6544686939130285644' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/6544686939130285644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/6544686939130285644'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/06/required-field-validation-using-custom.html' title='Required Field validation using Custom Validation for FCKEditor'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-5851582478096704707</id><published>2010-06-08T16:24:00.000+05:30</published><updated>2010-06-08T16:24:10.363+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FCKEditor"/><title type='text'>Get Plain Text from FCKEditor in any Browser.</title><content type='html'>The Following Function will help to get plain text from the FCKEditor in almost any browser.&lt;br /&gt;
&lt;br /&gt;
// below is the protyping for trim string.&lt;br /&gt;
function trimString (str) {&lt;br /&gt;
str = this != window? this : str;&lt;br /&gt;
return str.replace(/^\s+/g, &#39;&#39;).replace(/\s+$/g, &#39;&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
String.prototype.trim = trimString;&lt;br /&gt;
&lt;br /&gt;
//following function will return plain text&lt;br /&gt;
function GetPlainText(FCKEditorID) {&lt;br /&gt;
        var FEditor = FCKeditorAPI.GetInstance(FCKEditorID);&lt;br /&gt;
        var Result = &quot;&quot;;&lt;br /&gt;
        if (FEditor.EditorDocument.body.textContent || FEditor.EditorDocument.body.textContent==&quot;&quot; ) {&lt;br /&gt;
            //Firefox compitable browser&lt;br /&gt;
            Result = FEditor.EditorDocument.body.textContent.trim();        &lt;br /&gt;
        }&lt;br /&gt;
        else {           &lt;br /&gt;
            //IE compitable browser          &lt;br /&gt;
            Result = FEditor.EditorDocument.body.innerText.trim(); &lt;br /&gt;
            }&lt;br /&gt;
            return Result; &lt;br /&gt;
    }</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/5851582478096704707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/5851582478096704707' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/5851582478096704707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/5851582478096704707'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/06/get-plain-text-from-fckeditor-in-any.html' title='Get Plain Text from FCKEditor in any Browser.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-7715917747089557260</id><published>2010-04-27T13:22:00.001+05:30</published><updated>2010-04-27T13:24:38.084+05:30</updated><title type='text'>Ten Simple Tricks To Remembering Names</title><content type='html'>From The Following link you can find out Ten Simple Tricks To Remembering Names.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.forbes.com/2010/04/20/how-to-remember-names-entrepreneurs-human-resources-remember-names.html&quot; target=&#39;_blank&#39;&gt;&lt;span style=&quot;font-family:arial;font-size:180%;&quot;&gt;Ten Simple Tricks To Remembering Names.&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/7715917747089557260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/7715917747089557260' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7715917747089557260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/7715917747089557260'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/04/ten-simple-tricks-to-remembering-names.html' title='Ten Simple Tricks To Remembering Names'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-2755165730395773875</id><published>2010-04-12T13:36:00.003+05:30</published><updated>2010-04-12T13:42:40.760+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="VS 2010"/><title type='text'>Nice &amp; Cool things coming with the VS 2010 and .NET 4 release</title><content type='html'>From The Following link you can find out Nice new things coming with the VS 2010 and .NET 4 release.&lt;br /&gt;&lt;br /&gt;Scott Guthrie had explain it so nice.&lt;br /&gt;&lt;a href=&quot;http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx&quot; target=&#39;_blank&#39;&gt;&lt;span style=&quot;font-family:arial;font-size:180%;&quot;&gt;New Things Coming With The VS 2010 and .NET 4 release.&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/2755165730395773875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/2755165730395773875' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/2755165730395773875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/2755165730395773875'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/04/nice-cool-things-coming-with-vs-2010.html' title='Nice &amp; Cool things coming with the VS 2010 and .NET 4 release'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-4242402428979315595</id><published>2010-03-18T15:43:00.005+05:30</published><updated>2010-04-23T15:26:45.082+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SFTPPro"/><title type='text'>SFTPPro Example</title><content type='html'>first include the class in ur page&lt;br /&gt;&lt;span style=&quot;color:#6633ff;&quot;&gt;using SFTPPro.SFTPServer;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Example of SFTP Connection and methods&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#6633ff;&quot;&gt;Sftp sftpServer = new Sftp(strSFTPHost,strSFTPUserName,strSFTPPassword);&lt;br /&gt;sftpServer.Connect();&lt;br /&gt;&lt;br /&gt;if (sftpServer.Connected)&lt;br /&gt;{&lt;br /&gt;ArrayList alFilelist=sftpServer.GetFileList(&quot;&quot;);&lt;br /&gt;sftpServer.Get(&quot;strfromFilePath&quot;, &quot;strToFilePath&quot;);&lt;br /&gt;sftpServer.Put(&quot;strfromFilePath&quot;, &quot;strToFilePath&quot;);&lt;br /&gt;sftpServer.RemoveFile(&quot;&amp;lt;filename&amp;gt;&quot;);&lt;br /&gt;}&lt;br /&gt;sftpServer.Close(); &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/4242402428979315595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/4242402428979315595' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4242402428979315595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/4242402428979315595'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/03/sftppro-example_18.html' title='SFTPPro Example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-3252762100661675659</id><published>2010-03-18T15:38:00.003+05:30</published><updated>2010-04-23T15:29:47.289+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FTPPro"/><category scheme="http://www.blogger.com/atom/ns#" term="SFTPPro"/><title type='text'>SFTPPro Example</title><content type='html'>first include the class in ur page&lt;br /&gt;&lt;span style=&quot;color:#3366ff;&quot;&gt;using SFTPPro.SFTPServer;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Example of FTP Connection and methods &lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;color:#3366ff;&quot;&gt;FTP FTPServer=new FTP(&quot;FtpHost&quot;, &quot;username&quot;,&quot;password&quot;);&lt;br /&gt;string []strResult=FTPServer.FileList(&quot;&quot;);&lt;br /&gt;&lt;br /&gt;FTPServer.UploadFile(&quot;&amp;lt;DestinationFileName&amp;gt;&quot;, &quot;&amp;lt;SourceFileName&amp;gt;&quot;);&lt;br /&gt;FTPServer.DownloadFile(&quot;&amp;lt;SourceFileName&amp;gt;&quot;, &quot;&amp;lt;DestinationFileName&amp;gt;&quot;);&lt;br /&gt;FTPServer.RemoveFile(&quot;&amp;lt;FileName&amp;gt;&quot;);&lt;br /&gt;FTPServer.MakeDirectory(&quot;&amp;lt;DirectoryName&amp;gt;&quot;);&lt;br /&gt;FTPServer.RemoveDirectory(&quot;&amp;lt;DirectoryName&amp;gt;&quot;);&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/3252762100661675659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/3252762100661675659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3252762100661675659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/3252762100661675659'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/03/sftppro-example.html' title='SFTPPro Example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-2492705421244743802</id><published>2010-03-18T14:57:00.002+05:30</published><updated>2010-03-18T14:59:23.038+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FTPPro"/><category scheme="http://www.blogger.com/atom/ns#" term="SFTPPro"/><title type='text'>SFTPPro, FTPPro</title><content type='html'>The following url is for the dll package of SFTPPro and FTPPro&lt;br /&gt;&lt;a href=&#39;http://code.google.com/p/sftppro/&#39; target=&#39;_blank&#39;&gt;http://code.google.com/p/sftppro/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/2492705421244743802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/2492705421244743802' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/2492705421244743802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/2492705421244743802'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/03/sftppro-ftppro.html' title='SFTPPro, FTPPro'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-8640525054921879509</id><published>2010-03-04T17:46:00.003+05:30</published><updated>2010-03-04T17:56:31.084+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Decompress .gz file in C# ASP.NET</title><content type='html'>//Following Code will help u to decompress&lt;br /&gt;&lt;br /&gt;using ICSharpCode.SharpZipLib.GZip;&lt;br /&gt;&lt;br /&gt;Stream s = new GZipInputStream(File.OpenRead(@&quot;C:\Sample.txt.gz&quot;));&lt;br /&gt;FileStream fs = File.Create(@&quot;C:\Sample.txt&quot;);&lt;br /&gt;int size = 2048;&lt;br /&gt;byte[] writeData = new byte[2048];&lt;br /&gt;while (true)&lt;br /&gt;{&lt;br /&gt;   size = s.Read(writeData, 0, size);&lt;br /&gt;   if (size &gt; 0)&lt;br /&gt;   {&lt;br /&gt;     fs.Write(writeData, 0, size);&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;     break;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;s.Close();&lt;br /&gt;fs.Close();&lt;br /&gt;&lt;br /&gt;///Following code will use to compress the file to.gz&lt;br /&gt;                  Stream s = new GZipOutputStream(File.Create(@&quot;C:\Sample.txt.gz&quot;));&lt;br /&gt;                  FileStream fs = File.OpenRead(@&quot;C:\Sample.txt&quot;);&lt;br /&gt;                  byte[] writeData = new byte[fs.Length];&lt;br /&gt;                  fs.Read(writeData, 0, (int)fs.Length);&lt;br /&gt;                  s.Write(writeData, 0, writeData.Length);&lt;br /&gt;                  s.Close();&lt;br /&gt;                  fs.Close();&lt;br /&gt;&lt;br /&gt;//Download the dll from here&lt;br /&gt;&lt;a target=&#39;_blank&#39;  href=&#39;http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx&#39;&gt;http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/8640525054921879509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/8640525054921879509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/8640525054921879509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/8640525054921879509'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/03/decompress-gz-file-in-c-aspnet.html' title='Decompress .gz file in C# ASP.NET'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-6190148812274413461</id><published>2010-02-26T13:45:00.007+05:30</published><updated>2010-07-21T20:27:16.319+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp Twitter"/><title type='text'>CsharpTwitt - REST API Methods (Status Methods)</title><content type='html'>&lt;strong&gt;&lt;u&gt;Show Statuses method support XML and JSON format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
Returns a single status, specified by the id parameter below. The status&#39;s author will be returned inline.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Requires Authentication : false, unless the author of the status is protected&lt;/strong&gt;&lt;br /&gt;
&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Twitter.PublicTwitt pubTwitt = new Twitter.PublicTwitt();&lt;br /&gt;
Twitter.UserTwitt userTwitt = new Twitter.UserTwitt();&lt;br /&gt;
string strResult = &quot;&quot;;&lt;br /&gt;
XmlDocument xmlResult = null;&lt;br /&gt;
string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;
string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;
string strStatusIDtoRetrieve = &quot;&amp;lt;Numeric Status Id&amp;gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
strResult = pubTwitt.Show_Status(strStatusIDtoRetrieve, Twitter.OutputFormatType.xml); &lt;br /&gt;
xmlResult = pubTwitt.Show_StatusAsXML(strStatusIDtoRetrieve); &lt;br /&gt;
strResult = pubTwitt.Show_StatusAsJSON(strStatusIDtoRetrieve); &lt;br /&gt;
&lt;br /&gt;
//With Authentication&lt;br /&gt;
strResult = userTwitt.Show_Status(strUsername, strPassword, strStatusIDtoRetrieve, Twitter.OutputFormatType.xml); &lt;br /&gt;
xmlResult = userTwitt.Show_StatusAsXML(strUsername, strPassword, strStatusIDtoRetrieve); &lt;br /&gt;
strResult = userTwitt.Show_StatusAsJSON(strUsername, strPassword, strStatusIDtoRetrieve);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Update Statuses method support XML and JSON format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
Updates the authenticating user&#39;s status. Requires the status parameter specified below. Request must be a POST. A status update with text identical to the authenticating user&#39;s current status will be ignored to prevent duplicates.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;
&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Twitter.UserTwitt userTwitt = new Twitter.UserTwitt();&lt;br /&gt;
string strResult = &quot;&quot;;&lt;br /&gt;
XmlDocument xmlResult = null;&lt;br /&gt;
string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;
string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;
string strStatusTexttoUpdate = &quot;Status Updtated from API&quot;;&lt;br /&gt;
&lt;br /&gt;
strResult = userTwitt.UpdateStatus(strUsername, strPassword, strStatusTexttoUpdate, Twitter.OutputFormatType.xml); &lt;br /&gt;
strResult = userTwitt.UpdateStatusAsJSON(strUsername, strPassword, strStatusTexttoUpdate); &lt;br /&gt;
xmlResult = userTwitt.UpdateStatusAsXML(strUsername, strPassword, strStatusTexttoUpdate); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Destroy Statuses method support XML and JSON format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
Destroys the status specified by the required ID parameter. The authenticating user must be the author of the specified status.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;
&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Twitter.UserTwitt userTwitt = new Twitter.UserTwitt();&lt;br /&gt;
string strResult = &quot;&quot;;&lt;br /&gt;
XmlDocument xmlResult = null;&lt;br /&gt;
string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;
string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;
string strStatusIDtoDestroy = &quot;&amp;lt;Numeric Status Id of ur own status&amp;gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
strResult = userTwitt.DestroyStatus(strUsername, strPassword, strStatusIDtoDestroy, Twitter.OutputFormatType.xml); &lt;br /&gt;
strResult = userTwitt.DestroyStatusAsJSON(strUsername, strPassword, strStatusIDtoDestroy); &lt;br /&gt;
xmlResult = userTwitt.DestroyStatusAsXML(strUsername, strPassword, strStatusIDtoDestroy);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Retweet Statuses method support XML and JSON format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
Retweets a tweet. Requires the id parameter of the tweet you are retweeting. Request must be a POST or PUT. Returns the original tweet with retweet details embedded.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;
&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Twitter.UserTwitt userTwitt = new Twitter.UserTwitt();&lt;br /&gt;
string strResult = &quot;&quot;;&lt;br /&gt;
XmlDocument xmlResult = null;&lt;br /&gt;
string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;
string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;
string strStatusIDtoRetweet = &quot;&amp;lt;Numeric Status Id&amp;gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
strResult = userTwitt.Retweet(strUsername, strPassword, strStatusIDtoRetweet , Twitter.OutputFormatType.xml); &lt;br /&gt;
strResult = userTwitt.RetweetAsJSON(strUsername, strPassword, strStatusIDtoRetweet);&lt;br /&gt;
xmlResult = userTwitt.RetweetAsXML(strUsername, strPassword, strStatusIDtoRetweet);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Retweets Statuses method support XML and JSON format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
Returns up to 100 of the first retweets of a given tweet.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;
&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Twitter.UserTwitt userTwitt = new Twitter.UserTwitt();&lt;br /&gt;
string strResult = &quot;&quot;;&lt;br /&gt;
XmlDocument xmlResult = null;&lt;br /&gt;
string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;
string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;
string strStatusIDtoRetweets = &quot;&amp;lt;Numeric Status Id&amp;gt;&quot;;&lt;br /&gt;
strResult = userTwitt.Retweets(strUsername, strPassword, strStatusIDtoRetweets , Twitter.OutputFormatType.xml); &lt;br /&gt;
strResult = userTwitt.RetweetsAsJSON(strUsername, strPassword, strStatusIDtoRetweets );&lt;br /&gt;
xmlResult = userTwitt.RetweetsAsXML(strUsername, strPassword, strStatusIDtoRetweets );</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/6190148812274413461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/6190148812274413461' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/6190148812274413461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/6190148812274413461'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/02/csharptwitt-rest-api-methods-status.html' title='CsharpTwitt - REST API Methods (Status Methods)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-6660251973045015228</id><published>2010-02-25T15:18:00.005+05:30</published><updated>2010-02-25T16:22:00.137+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CsharpTwitt"/><title type='text'>CsharpTwitt - REST API Methods (Timeline Methods)</title><content type='html'>&lt;strong&gt;&lt;u&gt;Public Timeline method support XML, RSS, JSON and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent statuses from non-protected users who have set a custom user icon. The public timeline is cached for 60 seconds so requesting it more often than that is a waste of resources.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : false&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.PublicTwitt pubTwitt = new Twitter.PublicTwitt();&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = pubTwitt.GetPublicTimeline(Twitter.OutputFormatType.xml);&lt;br /&gt;strResult = pubTwitt.GetPublicTimelineAsJSON();&lt;br /&gt;xmlResult = pubTwitt.GetPublicTimelineAsXML(); &lt;br /&gt;xmlResult = pubTwitt.GetPublicTimelineAsAtom();&lt;br /&gt;xmlResult = pubTwitt.GetPublicTimelineAsRSS();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Home Timeline method support XML, JSON and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user&#39;s friends. This is the equivalent of /timeline/home on the Web.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); &lt;br /&gt;string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = userTwitt.GetHomeTimeline(strUsername, strPassword, Twitter.OutputFormatType.xml);&lt;br /&gt;xmlResult = userTwitt.GetHomeTimelineAsAtom(strUsername, strPassword);&lt;br /&gt;xmlResult = userTwitt.GetHomeTimelineAsXML(strUsername, strPassword);&lt;br /&gt;strResult = userTwitt.GetHomeTimelineAsJSON(strUsername, strPassword);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Friends Timeline method support XML, JSON, RSS and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent statuses posted by the authenticating user and that user&#39;s friends. This is the equivalent of /timeline/home on the Web.&lt;br /&gt;Note: Retweets will not appear in the friends_timeline for backwards compatibility.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); &lt;br /&gt;string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = userTwitt.GetFriendsTimeline(strUsername, strPassword, Twitter.OutputFormatType.xml);    &lt;br /&gt;strResult = userTwitt.GetFriendsTimelineAsJSON(strUsername, strPassword);      &lt;br /&gt;xmlResult = userTwitt.GetFriendsTimelineAsAtom(strUsername, strPassword);&lt;br /&gt;xmlResult = userTwitt.GetFriendsTimelineAsXML(strUsername, strPassword);   &lt;br /&gt;xmlResult = userTwitt.GetFriendsTimelineAsRSS(strUsername, strPassword);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;User Timeline method support XML, JSON, RSS and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent statuses posted from the authenticating user. It&#39;s also possible to request another user&#39;s timeline via the id parameter. This is the equivalent of the Web /&amp;lt;user&amp;gt; page for your own user, or the profile page for a third party.&lt;br /&gt;Note: For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with &#39;RT&#39; in RSS and Atom). &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); &lt;br /&gt;string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = userTwitt.GetUserTimeline(strUsername, strPassword, Twitter.OutputFormatType.xml);    &lt;br /&gt;strResult = userTwitt.GetUserTimelineAsJSON(strUsername, strPassword);      &lt;br /&gt;xmlResult = userTwitt.GetUserTimelineAsAtom(strUsername, strPassword);&lt;br /&gt;xmlResult = userTwitt.GetUserTimelineAsXML(strUsername, strPassword);   &lt;br /&gt;xmlResult = userTwitt.GetUserTimelineAsRSS(strUsername, strPassword);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Mentions method support XML, JSON, RSS and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent mentions (status containing @username) for the authenticating user.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); &lt;br /&gt;string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = userTwitt.GetMentions(strUsername, strPassword, Twitter.OutputFormatType.xml);    &lt;br /&gt;strResult = userTwitt.GetMentionsAsJSON(strUsername, strPassword);      &lt;br /&gt;xmlResult = userTwitt.GetMentionsAsAtom(strUsername, strPassword);&lt;br /&gt;xmlResult = userTwitt.GetMentionsAsXML(strUsername, strPassword);   &lt;br /&gt;xmlResult = userTwitt.GetMentionsAsRSS(strUsername, strPassword);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Retweeted_By_Me method support XML, JSON and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent retweets posted by the authenticating user.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); &lt;br /&gt;string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = userTwitt.GetRetweeted_By_Me(strUsername, strPassword, Twitter.OutputFormatType.xml);    &lt;br /&gt;strResult = userTwitt.GetRetweeted_By_MeAsJSON(strUsername, strPassword);      &lt;br /&gt;xmlResult = userTwitt.GetRetweeted_By_MeAsAtom(strUsername, strPassword);&lt;br /&gt;xmlResult = userTwitt.GetRetweeted_By_MeAsXML(strUsername, strPassword);   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Retweeted_To_Me method support XML, JSON and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent retweets posted by the authenticating user&#39;s friends.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); &lt;br /&gt;string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = userTwitt.GetRetweeted_To_Me(strUsername, strPassword, Twitter.OutputFormatType.xml);    &lt;br /&gt;strResult = userTwitt.GetRetweeted_To_MeAsJSON(strUsername, strPassword);      &lt;br /&gt;xmlResult = userTwitt.GetRetweeted_To_MeAsAtom(strUsername, strPassword);&lt;br /&gt;xmlResult = userTwitt.GetRetweeted_To_MeAsXML(strUsername, strPassword);  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Retweets_Of_Me method support XML, JSON and ATOM format.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requires Authentication : true&lt;/strong&gt;&lt;br /&gt;&lt;u&gt;Example&lt;/u&gt;&lt;br /&gt;Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); &lt;br /&gt;string strUsername = &quot;TwitterUsername&quot;;&lt;br /&gt;string strPassword = &quot;TwitterPassword&quot;;&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult = userTwitt.GetRetweets_Of_Me(strUsername, strPassword, Twitter.OutputFormatType.xml);    &lt;br /&gt;strResult = userTwitt.GetRetweets_Of_MeAsJSON(strUsername, strPassword);      &lt;br /&gt;xmlResult = userTwitt.GetRetweets_Of_MeAsAtom(strUsername, strPassword);&lt;br /&gt;xmlResult = userTwitt.GetRetweets_Of_MeAsXML(strUsername, strPassword);</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/6660251973045015228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/6660251973045015228' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/6660251973045015228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/6660251973045015228'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/02/csharptwitt-rest-api-methods-timeline.html' title='CsharpTwitt - REST API Methods (Timeline Methods)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5062906655887363030.post-8751377584505975765</id><published>2010-02-25T14:42:00.007+05:30</published><updated>2010-02-25T15:13:07.569+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CsharpTwitt"/><title type='text'>CsharpTwitt - Search API Methods</title><content type='html'>&lt;strong&gt;&lt;u&gt;Example&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Search methods support only JSON and ATOM format.&lt;/strong&gt;&lt;br /&gt;Requires Authentication : false&lt;br /&gt;&lt;br /&gt;Twitter.PublicTwitt pubTwitt = new Twitter.PublicTwitt();&lt;br /&gt;string strResult = &quot;&quot;;&lt;br /&gt;XmlDocument xmlResult = null;&lt;br /&gt;&lt;br /&gt;strResult= pubTwitt.GetSearchResult(&quot;SearchTextAsString&quot;, true, Twitter.OutputFormatType.json);     &lt;br /&gt;&lt;br /&gt;xmlResult = pubTwitt.GetSearchResultAsAtom(&quot;SearchTextAsString&quot;, true); &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Trends methods support only JSON format.  &lt;/strong&gt;&lt;br /&gt;Requires Authentication : false&lt;br /&gt;&lt;br /&gt;strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.top);&lt;br /&gt;strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.current);&lt;br /&gt;strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.weekly);&lt;br /&gt;strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.daily);</content><link rel='replies' type='application/atom+xml' href='http://himanshu-hajariwala.blogspot.com/feeds/8751377584505975765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5062906655887363030/8751377584505975765' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/8751377584505975765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5062906655887363030/posts/default/8751377584505975765'/><link rel='alternate' type='text/html' href='http://himanshu-hajariwala.blogspot.com/2010/02/csharptwitt-search-api-methods.html' title='CsharpTwitt - Search API Methods'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>