<?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-2447833955317506069</id><updated>2024-08-29T16:09:59.625+05:30</updated><category term="ASP.Net 2.0"/><category term="Javascript"/><category term="SQL Server"/><category term="C Sharp"/><category term="Tutorials"/><category term="SSIS"/><category term="VB.Net"/><category term="Ajax"/><category term="Performance"/><category term="HTML"/><category term="Learn"/><category term="Security"/><category term="Code Review"/><category term="ADO.Net 2.0"/><category term="BITS"/><category term="Cross Browser"/><category term="SSRS"/><category term="VS2005"/><category term="B&#39;day"/><category term="Code Analysis"/><category term="Configuration"/><category term="Cryptography"/><category term="Debug"/><category term="HttpHandlers"/><category term="MVC"/><category term="Visual Studio"/><title type='text'>asithangae</title><subtitle type='html'>Dev in a Learning EDGE...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>60</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-309729206111299814</id><published>2013-01-20T20:22:00.001+05:30</published><updated>2013-01-20T20:27:59.329+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><title type='text'>MVC.Unity Framework - Are you missing a type mapping?</title><content type='html'>&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;When we implement the Unity Framework for the first time, we may get this error. &lt;/font&gt;&lt;/p&gt; &lt;h4&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;The current type, System.Web.Mvc.IControllerFactory, is an interface and cannot be constructed. Are you missing a type mapping?&lt;/font&gt;&lt;/h4&gt; &lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;When we implement the IDependencyResolver of Unity Framework, GetService method will resolve the requested service type and return the actual object. The moment we write our custom resolver by implementing the Unity Framework, MVC framework things that we are going to take care of resolving all the types. &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;Type resolving happens in the following order . &lt;/font&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;- IControllerFactory &lt;/font&gt; &lt;li&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;- IControllerActivator &lt;/font&gt; &lt;li&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;- HomeController&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;We resolve for the objects which we create in our application and not for the default objects of MVC. so we need to return null for the objects for which we did not register. That way we can avoid the error because the MVC by default have resolvers. When we return null in our custom resolver, it considers the default resolver and proceed with implementation. &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;public object GetService(Type serviceType)&lt;br&gt; {&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; return this._container.IsRegistered(serviceType) ? _container.Resolve(serviceType) : null;&lt;br&gt; }&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;Please refer this &lt;/font&gt;&lt;a href=&quot;http://mvchosting.asphostcentral.com/post/ASPNET-MVC-3-Hosting-Problem-in-implementing-IControllerActivator-in-ASPNET-MVC-3.aspx&quot; target=&quot;_blank&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;link&lt;/font&gt;&lt;/a&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt; to get more insight on this.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot;&gt;&lt;/font&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/309729206111299814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2013/01/mvcunity-framework-are-you-missing-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/309729206111299814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/309729206111299814'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2013/01/mvcunity-framework-are-you-missing-type.html' title='MVC.Unity Framework - Are you missing a type mapping?'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-499181079318354934</id><published>2012-08-29T19:20:00.000+05:30</published><updated>2013-01-19T20:58:59.312+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="BITS"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS"/><title type='text'>Unable to create a SQL Job in my local machine</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: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Error while creating a SQL Job in local SQL Server DB Instance.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I got below error when I try to create a SQL job in SQL Server 2005 Instance.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Unable to cast object of type &#39;Microsoft.SqlServer.Management.Smo.SimpleObjectKey&#39; to type &#39;Microsoft.SqlServer.Management.Smo.Agent.JobObjectKey&#39;.&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;When i check for a fix, i see lot of users asking to uninstall and install the SSIS, but that does not resolve this issue.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This happens on 2 reasons.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1. If we don&#39;t have latest service pack installed (SP3) in your machine.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2. If we try to run the job with SQL Agent service account and that does have privilege to execute a SSIS package.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;you can check the below &lt;a href=&quot;http://www.codeproject.com/Articles/14401/How-to-Schedule-and-Run-a-SSIS-package-DTS-Job-in&quot;&gt;code project link&lt;/a&gt;, which helps to create a proxy account for you domain account, using that you can run the job.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope this helps.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/&quot; rel=&quot;tag&quot;&gt;CodeProject&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/499181079318354934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2012/08/unable-to-create-sql-job-in-my-local.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/499181079318354934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/499181079318354934'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2012/08/unable-to-create-sql-job-in-my-local.html' title='Unable to create a SQL Job in my local machine'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-3915412883940026501</id><published>2012-08-25T00:22:00.000+05:30</published><updated>2012-08-25T00:22:02.199+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="BITS"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>VS or BITS Toolbox items missing</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: Verdana, sans-serif;&quot;&gt;When i open my Business Intelligence Studio to update my SSIS package, i noticed that all my toolbox items were missing. When i try to add that using choose components, I am able to add all the items which are missing. But the grouping of items as sources, destination and so on are not happening with that manual addition of items.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I Google and many answers mentioned to import tool box settings, but that does not work. Also some people asked to re-install or repair, that does not works.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;One of the solution was to delete the files in the cache folder, that is the only solution which really helped.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Delete the files which starts with toolbox or with extension tdb from the location:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For Windows 7 - C:\Users\bmanohar\AppData\Local\Microsoft\VisualStudio\8.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Others OS -&amp;nbsp;C:\Documents and Settings \bmanohar\Local settings Application Data\Microsoft\VisualStudio\8.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I am trying to fix the issue for VS2005, so cleaning the files from location 8.0. for 2008 check 9.0 and 2010 check 10.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;deleting the files does not harm your studio any way, because it as cache file. It will create a fresh copy when you open the studio next time in the same location.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/3915412883940026501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2012/08/vs-or-bits-toolbox-items-missing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3915412883940026501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3915412883940026501'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2012/08/vs-or-bits-toolbox-items-missing.html' title='VS or BITS Toolbox items missing'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-6707675019143551600</id><published>2012-07-19T19:16:00.001+05:30</published><updated>2012-07-19T19:45:58.822+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Code Analysis"/><title type='text'>Ignore CA1405: COM visible type base types should be COM visible</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/ms182202.aspx&quot; style=&quot;color: #960bb4; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; line-height: 18px; text-decoration: none;&quot;&gt;CA1405: COM visible type base types should be COM visible&lt;/a&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; line-height: 18px;&quot;&gt;A COM-visible type derives from a type that is not COM-visible.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; text-align: -webkit-auto;&quot;&gt;ComVisible(true) is on by default through the compiler. Ignore this warning.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; text-align: -webkit-auto;&quot;&gt;If we really need&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; text-align: -webkit-auto;&quot;&gt;ComVisible(true), then we need to set that in assembly properties. We can remove this from the Microsoft Minimum Ruleset and customize it.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/6707675019143551600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2012/07/ignore-ca1405-com-visible-type-base.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6707675019143551600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6707675019143551600'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2012/07/ignore-ca1405-com-visible-type-base.html' title='Ignore CA1405: COM visible type base types should be COM visible'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-3201611542205459254</id><published>2012-03-07T12:14:00.001+05:30</published><updated>2012-03-07T12:14:34.589+05:30</updated><title type='text'>Copy Paste Problem between local and Remote machines</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: Verdana, sans-serif;&quot;&gt;In the Remote machine. open the task manager and in processes tab, select rdpclip.exe and end process. try disconnect and connect, it will start working again. This solution works for Win 2008 R2 OS.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/3201611542205459254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2012/03/copy-paste-problem-between-local-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3201611542205459254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3201611542205459254'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2012/03/copy-paste-problem-between-local-and.html' title='Copy Paste Problem between local and Remote machines'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-5600258427843342408</id><published>2012-01-28T09:48:00.001+05:30</published><updated>2012-01-28T09:48:51.848+05:30</updated><title type='text'>Assigning values to SQL variable using Select Query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Assigning a value to SQL variable: &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;Declare&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; @date &lt;span style=&quot;color: blue;&quot;&gt;Datetime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; @date &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;getdate&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
We can achieve the same using simple select statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; @date &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;getdate&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
If we try to do the same from a result of query, then
it will be &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; @date &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
DateCreated &lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; SomeTable &lt;span style=&quot;color: blue;&quot;&gt;where&lt;/span&gt; PrimaryKey &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
SomeValue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
We are sure that this query will return only one record, so
this statement is valid and always returns expected result. In a scenario,
where the result is more than one then which value will be assigned to that
variable. Will it be first record or last record or anything in between?&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;declare&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; @empid &lt;span style=&quot;color: blue;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;8&lt;span style=&quot;color: grey;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;top&lt;/span&gt;
10 @empid &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; empid &lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt;
Empmaster &lt;span style=&quot;color: blue;&quot;&gt;where&lt;/span&gt; DeptID &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&#39;A&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;order&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;by&lt;/span&gt; empid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;top&lt;/span&gt;
10 &lt;span style=&quot;color: grey;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt;
Empmaster &lt;span style=&quot;color: blue;&quot;&gt;where&lt;/span&gt; DeptID &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&#39;A&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;order&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;by&lt;/span&gt; empid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt; @empid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-no-proof: yes;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
It will always get assigned to the last result data. So to
be on the safe side we need to put the order by clause and use the appropriate
order as ascending or desending considering the fact it always pull the last
record. Otherwise we need to use the “Top 1” so it always use the value of first
record in the result with proper sorting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/5600258427843342408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2012/01/assigning-values-to-sql-variable-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/5600258427843342408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/5600258427843342408'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2012/01/assigning-values-to-sql-variable-using.html' title='Assigning values to SQL variable using Select Query'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-7854448347536323944</id><published>2012-01-23T22:51:00.000+05:30</published><updated>2012-01-25T11:44:50.344+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Handling Ajax Asynchronous Post Back Error</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: Verdana, sans-serif;&quot;&gt;I read this solution in one of the article, just want to share the same.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1. We can handle ajax errors from client side by adding a custom handler to end_request event of PageRequestManager object.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2. We can handle this by binding a error handler method to property OnAsyncPostBackError of S&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;cript manager object.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Client side handling:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;script type&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: maroon; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; language&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: maroon; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&quot;javascript&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: #2b91af; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;Sys&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: #2b91af; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;WebForms&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: #2b91af; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;PageRequestManager&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;getInstance&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;().&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;add_endRequest&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: #2b91af; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;EndRequestHandler&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: white; line-height: 13.5pt;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background: white; line-height: 13.5pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;font-size: 10.5pt;&quot;&gt;function &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: #2b91af; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;EndRequestHandler&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;sender&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; args&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: darkblue; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;args&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;get_error&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;!=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; undefined&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;span class=&quot;pln&quot;&gt;  &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: darkblue; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; errorMessage&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;    i&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: darkblue; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;f&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;args&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;get_response&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;().&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;get_statusCode&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;==&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: maroon; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&#39;200&#39;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;span class=&quot;pln&quot;&gt;  &amp;nbsp;   errorMessage &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; args&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;get_error&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;message&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: darkblue; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: grey; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;// Error occurred somewhere other than the server page.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; errorMessage &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&gt;&lt;span class=&quot;str&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: maroon; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&#39;An unspecified error occurred. &#39;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&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;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;pln&quot;&gt;  &amp;nbsp; args&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;set_errorHandled&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; color: darkblue; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background: white; line-height: 13.5pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border-bottom-color: windowtext; border-bottom-style: none; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: none; border-left-width: 1pt; border-right-color: windowtext; border-right-style: none; border-right-width: 1pt; border-top-color: windowtext; border-top-style: none; border-top-width: 1pt; font-size: 10.5pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span class=&quot;pun&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background: white; line-height: 13.5pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Server side handling:&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background: white; line-height: 13.5pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;&amp;lt;asp:ScriptManager ID=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;&quot;ScriptManager1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt; runat=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: yellow; background-image: initial; background-origin: initial; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;OnAsyncPostBackError=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: yellow; background-image: initial; background-origin: initial; color: #a31515; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;&quot;ScriptManager1_AsyncPostBackError&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: yellow; background-image: initial; background-origin: initial; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 13.5pt;&quot;&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 18px;&quot;&gt;protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e){
  if (e.Exception.Data[&quot;ExtraInfo&quot;] != null){
    ScriptManager1.AsyncPostBackErrorMessage = e.Exception.Message + e.Exception.Data[&quot;ExtraInfo&quot;].ToString();
  }
  else{
    ScriptManager1.AsyncPostBackErrorMessage = &quot;An unspecified error occurred.&quot;
  }
}&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/7854448347536323944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2012/01/handling-ajax-asynchronous-post-back.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/7854448347536323944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/7854448347536323944'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2012/01/handling-ajax-asynchronous-post-back.html' title='Handling Ajax Asynchronous Post Back Error'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-6848088372420012328</id><published>2011-11-29T21:45:00.001+05:30</published><updated>2011-11-30T00:35:05.337+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cross Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Invoking mouse events through JavaScript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;u&gt;Handling Mouse Events through Java script&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In some scenarios, we may need to invoke a button click through script. We can write &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;element.click()&lt;/span&gt;, but that will not work in all the browsers. We may need to do this in another way, please check the below code snippet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;function invokeSaveClick(saveElementId) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; var e = document.createEvent(&#39;MouseEvents&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; e.initEvent(&#39;click&#39;, true, true);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; document.getElementById(saveElementId).dispatchEvent(e);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/6848088372420012328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/11/invoking-mouse-events-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6848088372420012328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6848088372420012328'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/11/invoking-mouse-events-through.html' title='Invoking mouse events through JavaScript'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-3964746252241585176</id><published>2011-11-29T00:44:00.001+05:30</published><updated>2011-11-29T00:54:55.206+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Request.ApplicationPath is not working in some cases</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Request.ApplicationPath&lt;/span&gt; will work only IE. When we want to support different browsers like Chrome, Safari and Firefox, we should use the below property to get the correct relative URL.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;this.Request.Url.GetLeftPart(UriPartial.Authority)&lt;/span&gt;&lt;/blockquote&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
If we use &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Request.ApplicationPath&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;window.open(&#39;&quot; + Request.ApplicationPath + &quot;/abc/testpage.aspx?x=1&quot;&#39;,&#39;test page&#39;, &#39;toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes ,modal=yes&#39;); }&quot;, true);&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
It will be rendered as &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;http://abc/testpage.aspx?x=&lt;/span&gt;1&lt;br /&gt;
&lt;br /&gt;
If we use&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Request.Url.GetLeftPart(UriPartial.Authority), &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;then it will be rendered as&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;http://ServerName/abc/testpage.aspx?x=1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/3964746252241585176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/11/requestapplicationpath-is-not-working.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3964746252241585176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3964746252241585176'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/11/requestapplicationpath-is-not-working.html' title='Request.ApplicationPath is not working in some cases'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-112311169211392380</id><published>2011-10-03T14:42:00.001+05:30</published><updated>2011-11-30T00:33:46.380+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><title type='text'>View State Issues in ASP.Net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
We are getting some of the view state related errors in our application.&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Invalid view state.&lt;/li&gt;
&lt;li&gt;Unable to read beyond the end of the stream.&lt;/li&gt;
&lt;li&gt;The serialized data is invalid.&lt;/li&gt;
&lt;li&gt;The client disconnected.&lt;/li&gt;
&lt;/ul&gt;
The reason for this errors are one of the one mentioned below:&lt;br /&gt;
&lt;br /&gt;
1. The application may be deployed across farms and the encryption/Decryption keys may vary in the servers, so it may throw errors&amp;nbsp;intermittently.&lt;br /&gt;
2. The View state may be very large or bloated, so it may reduce the application performance and may cause issue while serialization or deserialization of View state.&lt;br /&gt;
&lt;br /&gt;
Possible solution for this issue are,&lt;br /&gt;
&lt;br /&gt;
1. We can set the encryption validation key at the application level in the web.config file. It looks like the one mentioned below.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;machinekey decryption=&quot;AES&quot; decryptionkey=&quot;4C05D6B56FA0A057F519884A1C3B5B42B14491ED56CB44F942EE3A0CA2848D29&quot; validation=&quot;SHA1&quot; validationkey=&quot;ABFD56FE84823AE69E9A613CE998803F4246FE0D96DC48E7BB9E715B0A57352CEFB35264EFB8C0F710E154F42B7460B7CDE9A99F225DA796DEE5E5F94F8F7188&quot;&amp;gt;&amp;lt;/machinekey&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #990000; font-size: 12px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
We can generate keys online from this location.&amp;nbsp;&lt;a href=&quot;http://aspnetresources.com/tools/machineKey&quot;&gt;http://aspnetresources.com/tools/machineKey&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;pages enableviewstatemac=&quot;true&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
We can also set the enableViewStateMac to true, but we have some issues when we implement the both these fixes. It may throw user a run time error or&amp;nbsp;compiler warning. It will not allow you to debug sometimes.&lt;br /&gt;
&lt;br /&gt;
3. Other simple solution to overcome this issue is to break the view state in to multiple chunks so that we can avoid the serialization error. This can be&amp;nbsp;achieved&amp;nbsp;by setting a simple property in the pages element of config file.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #990000; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px;&quot;&gt;&amp;lt;pages maxpagestatefieldlength=&quot;20&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #990000; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
4. We can also compress and decompress the view state using a simple logic and have that code in the Base Page of the application. We can use compression at the page level by setting a property. Please check the code project link for a detailed explanation on this.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/KB/viewstate/ViewStateCompression.aspx&quot;&gt;http://www.codeproject.com/KB/viewstate/ViewStateCompression.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
These are some of the things I found during my search, i put all the points in one stop for your reference. It worked for me. Hope the same for you all.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/112311169211392380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/10/view-state-issues-in-aspnet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/112311169211392380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/112311169211392380'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/10/view-state-issues-in-aspnet.html' title='View State Issues in ASP.Net'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-1796826573590276568</id><published>2011-09-26T19:04:00.000+05:30</published><updated>2011-09-26T19:05:01.155+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>Blind SQL Injection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
SQL Injection can be avoided using HTML encoding.&amp;nbsp;Please find the list of characters which needs to be handled which getting user inputs especially in multi-line text boxes.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[1] | (pipe sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[2] &amp;amp; (ampersand sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[3] ; (semicolon sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[4] $ (dollar sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[5] % (percent sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[6] @ (at sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[7] &#39; (single apostrophe)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[8] &quot; (quotation mark)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[9] \&#39; (backslash-escaped apostrophe)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[10] \&quot; (backslash-escaped quotation mark)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[11] &amp;lt;&amp;gt; (triangular parenthesis)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[12] () (parenthesis)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[13] + (plus sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[14] CR (Carriage return, ASCII 0x0d)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[15] LF (Line feed, ASCII 0x0a)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[16] , (comma sign)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;[17] \ (backslash)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;MS Shell Dlg 2&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif;&quot;&gt;Their is always a chance of manupulating the SQL script as part of form inputs and also end user can prepare a request dynamically and hit the target url&#39;s. If we use the HTML encode and decode this can be avoided.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif;&quot;&gt;Example:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif;&quot;&gt;While getting the input values from the form and before processing that.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;string data = HTTPUtility.HTMLEncode(Textbox1.Text)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;MS Shell Dlg 2&#39;, sans-serif;&quot;&gt;While rendering the data to UI&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Textbox1.Text = HTTPUtility.HTMLDecode(data)&lt;/span&gt;&lt;/div&gt;
This is simple and one of the best practice to avoid SQL injection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/1796826573590276568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/09/blind-sql-injection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/1796826573590276568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/1796826573590276568'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/09/blind-sql-injection.html' title='Blind SQL Injection'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-8127943493336485675</id><published>2011-04-12T15:39:00.000+05:30</published><updated>2011-04-12T15:46:19.785+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Code Review"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>Cross Site Scripting : Validating Query string parameters string</title><content type='html'>1. We need to validate the request by setting the ValidateRequest=&quot;true&quot; on the @ Pages element.&lt;br /&gt;&lt;br /&gt;2. We need to take care while using query string parameter. We need to cast the query string value to the respective data type to avoid this. Please check the below code snippet to avoid this. This will help us to check whether user end is manipulating something in the URL, if so then we cannot create a new GUID the catch block will be executed and generic error message will display. the same logic can be applied for any data type.&lt;br /&gt;&lt;blockquote&gt;try&lt;br /&gt;{&lt;br /&gt;  string Key = Request.QueryString[&quot;e&quot;];&lt;br /&gt;  Guid ErrorGUID = new Guid(Key);&lt;br /&gt;  lblError.Text = string.Format(&quot;Please provide the following error code &lt;b&gt;{0}&lt;/b&gt;.&quot;, ErrorGUID.ToString();&lt;br /&gt;}&lt;br /&gt;catch ()&lt;br /&gt;{&lt;br /&gt;  //handle exceptions accordingy&lt;br /&gt;}&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/8127943493336485675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/04/cross-site-scripting-validating-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/8127943493336485675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/8127943493336485675'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/04/cross-site-scripting-validating-query.html' title='Cross Site Scripting : Validating Query string parameters string'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-6275077066194064524</id><published>2011-03-11T15:16:00.000+05:30</published><updated>2011-03-11T16:09:38.952+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS"/><title type='text'>SSIS Error code DTS_E_OLEDBError 0X8004005 ...</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;sometimes we get as &quot;Login failed for user&quot; or &quot;User might not have permission to do the activity&quot;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I was getting this error for quite sometime when I execute the package using &quot;Execute Package utility&quot; I tried looking this msdn site for &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms141747.aspx&quot;protection level for pacakges&gt;&lt;/a&gt;, but that does not help. Even though i changed the settings and try to execute it is prompting the same error.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Reason&lt;/span&gt;: At last i got the solution from this &lt;a href=&quot;http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/11/09/ssis-error-code-dts-e-oledberror-an-ole-db-error-has-occurred-reasons-and-troubleshooting.aspx&quot;&gt;msdn blog&lt;/a&gt; (which also contains solution for different kinds of SSIS errors). While setting the DB connection, I check the save password check box to avoid entering multiple times. That is reason for it. Normally if we have to set the password permanently for the connection then we are suppose to set the password for package also. And also the package encryption level must be set to &quot;EncryptSensitiveWithPassword&quot; or &quot;EncryptAllWithPassword&quot;. This both go in pair. If you set the encryption level and not setting the package password it will throw an error.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Solution:&lt;/span&gt; &lt;br /&gt;1. While setting the connection details, we should not check the Save Password option and package encryption can be default. As a best practice, we can set the package configurations through config file. &lt;br /&gt;&lt;br /&gt;Reference for package configurations in &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms140213.aspx&quot;&gt;msdn site&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Prerequisite: &lt;/span&gt;&lt;br /&gt;1. Make sure you have the latest version of BIDS.&lt;br /&gt;2. Update the SQL server with all available service packs.&lt;br /&gt;3. While setting the connection string using config file, please make sure you are setting the connection provider also.</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/6275077066194064524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/03/ssis-error-code-dtseoledberror.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6275077066194064524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6275077066194064524'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/03/ssis-error-code-dtseoledberror.html' title='SSIS Error code DTS_E_OLEDBError 0X8004005 ...'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-2583790813440615518</id><published>2011-03-10T16:59:00.001+05:30</published><updated>2011-03-10T17:21:53.037+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2005"/><title type='text'>Migration from VS 2005 to VS 2008</title><content type='html'>I recently got a opportunity to migrate a VS2005 project to VS2008. I was reading all the pros and cons of migration from the different sites. The simple thing to migrate the solution is open the 2005 solution from the VS 2008 IDE, it opens a wizard and take you through each step and convert the whole project. After migration it creates a Migration report which tell the status of migration. 99% of the project gets migrated in one click. Some of the solution will have a problem. If you get a chance to compare the sln file before and after migration the only change you can find is mentioned below:&lt;br /&gt;&lt;br /&gt;VS2005 sln file: Microsoft Visual Studio Solution File, Format Version 9.00&lt;br /&gt;VS2008 sln file: Microsoft Visual Studio Solution File, Format Version 10.00&lt;br /&gt;&lt;br /&gt;The project files (*.vbproj or *.csproj) will not be affected or modified during the migration.&lt;br /&gt;&lt;br /&gt;One more way to do this is create a Blank solution in VS2008 and start adding vs2005 projects to it. If we have multiple projects, then it will be little tedious to add each and every project.&lt;br /&gt;&lt;br /&gt;We have a constraint here. If you solution has SSRS or SSIS projects associated to that then it will not get migrated on its own. We need to migrate it separately. While doing this we should make sure the SQL versions is also upgrated to SQL Server 2008. It is simple in development machine, but while deploying if the environment does not support then we will be in trouble. But for Window and Web projects, we will not find any problem until we change the framework. VS2008 supports multi-targeting, I mean it supports to compile and run your project in different framework starting from Net Framework 2.0.&lt;br /&gt;&lt;br /&gt;One more funniest thing is we can have two sln files for same project to work in two different VS versions. This will not affect the project until you do not change the target framework. This is not a best practice, but helps in critical situations.&lt;br /&gt;&lt;br /&gt;I referred the below &lt;a href=&quot;http://blogs.msdn.com/b/djpark/archive/2007/11/07/how-to-use-solutions-and-projects-between-visual-studio-2005-and-2008.aspx&quot;&gt;link&lt;/a&gt; to know more information before migrating the project. This is really worth reading even for knowledge sake.</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/2583790813440615518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/03/migration-from-vs-2005-to-vs-2008.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/2583790813440615518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/2583790813440615518'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/03/migration-from-vs-2005-to-vs-2008.html' title='Migration from VS 2005 to VS 2008'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-5623130757389747225</id><published>2011-03-10T16:22:00.000+05:30</published><updated>2011-03-10T16:58:21.742+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SSIS"/><category scheme="http://www.blogger.com/atom/ns#" term="SSRS"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2005"/><title type='text'>Business Intelligence Development Studio  2005 (BIDS)</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJzAd7B0wJBjmIgyLvciHuvYVhCfM7aKUM9HdSvi1FJ5nbYRBInS06bFEj6tImI_Hfja2-ohpQgAslTUXnCzYMCCkV_83E9DUHy-MHWBK0x10tRfMbSMO6Mb8o5T4I6Pj55OxY_H997qs/s1600/VS.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 188px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJzAd7B0wJBjmIgyLvciHuvYVhCfM7aKUM9HdSvi1FJ5nbYRBInS06bFEj6tImI_Hfja2-ohpQgAslTUXnCzYMCCkV_83E9DUHy-MHWBK0x10tRfMbSMO6Mb8o5T4I6Pj55OxY_H997qs/s320/VS.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5582408608398943010&quot; /&gt;&lt;/a&gt;&lt;br /&gt;I recently want to update visual studio 2005 with service pack. The moment i installed in my machine, my studio started behaving very funny. IDE is having repeated menu items with repeated sub menu. I tried repair the studio with reinstalling the service pack and the problem is still more worse. Menus got doubled than before. I tried setting the IDE using Import and Export setting and that does not help. All I need is BIDS and not full version of VS2005 as my projects are migrated to higher versions. So I uninstall the VS2005 from my machine. I uninstall Visual Studio Premier Partner Edition also (by mistake), Please do not uninstall that as it is required for BIDS. &lt;br /&gt;&lt;br /&gt;I have SQL Server 2005 database services installed already in my machine, and I downloaded the latest version of service pack for &lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b953e84f-9307-405e-bceb-47bd345baece&quot;&gt;Microsoft SQL Server 2005 (Service Pack 4 RTM)&lt;/a&gt; and installed in my machine. During the installation wizard there is a option to select the tool which you want to upgrade, select all and proceed.&lt;br /&gt;&lt;br /&gt;Installation went well with one fix failed, and it opened the provisioning tool to set the access for my SQL server database engine. Once the installation is done, IDE started configuring on its own and it ready.  I got this information in one of the site mentioned below. But still I want to post the full history to understand the history behind this.&lt;br /&gt;&lt;br /&gt;Info I found in that &lt;a href=&quot;http://anildesai.net/index.php/2007/12/visual-studio-2008-business-intelligence-development-studio-troubleshooting/&quot;&gt;site&lt;/a&gt;:&lt;br /&gt;&lt;blockquote&gt;You should make sure that Visual Studio is still installed. If you didn’t previously have VS installed, the BI Dev Studio installation will install a VS shell called Visual Studio Premier Partner Edition. Look in Add or Remove Programs for an entry like this. If you don’t find any entry for Visual Studio go to the location for SQL Server setup and run .\Tools\Setup\vs_setup.exe. This will install the VS Shell. After this is installed repair the BI Studio installation by running the following from the command line from the .\Tools directory: start /wait setup.exe /qb REINSTALL=SQL_WarehouseDevWorkbench REINSTALLMODE=OMUS&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/5623130757389747225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/03/business-intelligence-development.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/5623130757389747225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/5623130757389747225'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/03/business-intelligence-development.html' title='Business Intelligence Development Studio  2005 (BIDS)'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJzAd7B0wJBjmIgyLvciHuvYVhCfM7aKUM9HdSvi1FJ5nbYRBInS06bFEj6tImI_Hfja2-ohpQgAslTUXnCzYMCCkV_83E9DUHy-MHWBK0x10tRfMbSMO6Mb8o5T4I6Pj55OxY_H997qs/s72-c/VS.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-6483333510811079989</id><published>2011-02-17T16:12:00.001+05:30</published><updated>2011-02-18T16:03:40.023+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SSRS"/><title type='text'>SSRS sub report not visible while rendering</title><content type='html'>&lt;span xmlns=&#39;&#39;&gt;&lt;p&gt;We need to verify the Hidden property in the visibility section and make sure it is said to false (hidden=false). Remove the expression and try hardcoded values like true or false. Make sure all the parameters defined in the sub report are properly associated in the main report. One of the reasons is if the sub report is having dataset associated to it and the dataset is not returning a single record will be a problem. Otherwise the record may contains all null values. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/6483333510811079989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2011/02/ssrs-sub-report-not-visible-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6483333510811079989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6483333510811079989'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2011/02/ssrs-sub-report-not-visible-while.html' title='SSRS sub report not visible while rendering'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-8452081399413004315</id><published>2010-06-05T22:33:00.000+05:30</published><updated>2010-06-05T22:39:38.138+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>SQL SERVER 2005 Uninstalation issue ( Error code : 2147024893)</title><content type='html'>Error : The setup failed to read IIsMimeMap table. The error code is -2147024893.&lt;br /&gt;&lt;br /&gt;Description :  we get this error when we try to uninstall the reporting services individually or SQL server 2005 as a whole package. the reason for this selecting the mixed mode for authentication while installation. even the microsoft does not have the solution for this.&lt;br /&gt;&lt;br /&gt;Workaround for this is ...&lt;br /&gt;1. Uninstall the IIS &lt;br /&gt;2. Uninstall the SQL server 2005 or reporting services. &lt;br /&gt;&lt;br /&gt;Happy Coding :)</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/8452081399413004315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2010/06/sql-server-2005-uninstalation-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/8452081399413004315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/8452081399413004315'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2010/06/sql-server-2005-uninstalation-issue.html' title='SQL SERVER 2005 Uninstalation issue ( Error code : 2147024893)'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-7815993893554180081</id><published>2009-06-19T12:07:00.000+05:30</published><updated>2009-10-21T12:10:30.317+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>ADGroup Verification in ASP.NET Web Applications</title><content type='html'>Normally in Enterprise level , users will be provided access at the ADGroup level for the application that are hosted at the intranet and internet. The web application will contains the access related code. There are two to check this access at ADGroup.&lt;br /&gt;1. LDAP QUERY&lt;br /&gt;2. Net inbuilt method&lt;br /&gt;&lt;br /&gt;The  first one LDAP approach is more time consumable. Also to add more value, we will be using a service account to pull the Active Directory information. This is risk, we are pulling firm sensitive data from the Active Directory. Moreover to check a single ADGroup, we are pulling all the existing and verifying it via loop. This is a bad practice. And causes Performance issues.&lt;br /&gt;&lt;br /&gt;The Dotnet inbuilt function IsInRole is simplest way to achieve this. we need to know the domain name where the ADGroup is in place. The syntax for this goes like this.&lt;br /&gt; &lt;br /&gt; &lt;blockquote&gt;bool IsHavingAccess = HttpContext.Current.User.Identity.IsInRole(domain\Adgroup);&lt;/blockquote&gt;&lt;br /&gt; &lt;br /&gt;This will help us to just verify the access security and provide the result. So by using this method, we are nowhere pulling sensitive information and logic will be very fast. Hope this helps.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://anyurl.com&quot; rel=&quot;tag&quot;&gt;CodeProject&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/7815993893554180081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2009/06/adgroup-verification-in-aspnet-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/7815993893554180081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/7815993893554180081'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2009/06/adgroup-verification-in-aspnet-web.html' title='ADGroup Verification in ASP.NET Web Applications'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-3954598931950078303</id><published>2009-06-07T17:44:00.000+05:30</published><updated>2011-11-30T00:33:30.486+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cross Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Dynamically assign a function to event in javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In javascript, using code we can assign function to the events of the elements.&lt;br /&gt;
&lt;br /&gt;
In general, we can assign the function name to the event name directly, Please see the below example.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;var element = document.getElementById(&quot;testElement&quot;);
element.onclick = DynamicFunction;

function DynamicFunction()
{
 alert(&quot;sample function&quot;);
}&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Consider a scenario where you have to assign a function with parameters. we cannot do in the below mentioned way. this will throw a script error. &lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;var element = document.getElementById(&quot;testElement&quot;);
element.onclick = DynamicFunctionWithParameters(x,y);

function DynamicFunctionWithParameters(param1, param2)
{
 alert(&quot;sample function&quot;);
}&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
we have to go with a round about way to achieve the same, see the  below example.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;var element = document.getElementById(&quot;testElement&quot;);
element.onclick = function(x,y){DynamicFunctionWithParameters(x,y);};

function DynamicFunctionWithParameters(param1, param2)
{
 alert(&quot;sample function&quot;);
}&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
I think you know, we can even directly write the function instead writing it separately and assigning it to the event later. the below example explains this. while mentioning this way we cannot have the function name, and also the same function cannot not be reused.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;var element = document.getElementById(&quot;testElement&quot;);
element.onclick = function(param1, param2)
{
 alert(&quot;sample function&quot;);
};&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/3954598931950078303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2009/06/dynamically-assign-function-to-event-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3954598931950078303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/3954598931950078303'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2009/06/dynamically-assign-function-to-event-in.html' title='Dynamically assign a function to event in javascript'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-9157542415049424166</id><published>2009-04-13T18:03:00.001+05:30</published><updated>2011-11-30T00:34:15.699+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><title type='text'>HttpContext is Null</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span xmlns=&quot;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;In ASP.Net application, HttpContext type will be instantiated for current thread and it loads all the context values related to the Request sent to the server. While we use the Asynchronous concept in the ASP.Net application, the HTTPContext will not have a reference or values in the asynchronous thread. Apart from the normal Page execution thread, new threads will be created for every Async task we are using, So while referring those Context objects Care should be taken. Otherwise the application will throw error. &lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;HttpContext.Current object will be null, when we are using Asynchronous task [PageAsyncTask].&lt;/span&gt;&lt;br /&gt;
&lt;span xmlns=&quot;&quot;&gt;To avoid this or overcome this, capture the needed values from the base thread and share it with a static class to the other threads. This capturing of values should happen before the invoking of Async Calls.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/9157542415049424166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2009/04/httpcontext-is-null.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/9157542415049424166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/9157542415049424166'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2009/04/httpcontext-is-null.html' title='HttpContext is Null'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-6336233934099564151</id><published>2008-05-08T17:30:00.000+05:30</published><updated>2008-05-08T17:42:48.668+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>Mime Content Types for office 2007 documents</title><content type='html'>The Content Type of the office 2007 files are different from the normal office documents. the files are strored and maintained internally as xml formats. While uploading these documents they are uploaded in octet stream[binary stream]. &lt;br /&gt;For more details check this link. &lt;a href=&quot;http://www.openxmldeveloper.org/&quot;&gt;openxmldeveloper.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Content Types of the office 2007 files is listed below.&lt;br /&gt;&lt;br /&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot;&gt;&lt;tr style=&quot;font-weight:bold;&quot;&gt;&lt;td align=&quot;center&quot; width=&quot;30%&quot;&gt;File Extension&lt;/td&gt;&lt;td style=&quot;padding:5px;&quot; width=&quot;70%&quot;&gt;Content Type&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;docm&lt;/td&gt;&lt;td&gt;application/vnd.ms-word.document.macroEnabled.12 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;docx&lt;/td&gt;&lt;td&gt;application/vnd.openxmlformats-officedocument.wordprocessingml.document &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;dotm&lt;/td&gt;&lt;td&gt;application/vnd.ms-word.template.macroEnabled.12 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;dotx&lt;/td&gt;&lt;td&gt;application/vnd.openxmlformats-officedocument.wordprocessingml.template &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;ppsm&lt;/td&gt;&lt;td&gt;application/vnd.ms-powerpoint.slideshow.macroEnabled.12 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;ppsx&lt;/td&gt;&lt;td&gt;application/vnd.openxmlformats-officedocument.presentationml.slideshow &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;pptm&lt;/td&gt;&lt;td&gt;application/vnd.ms-powerpoint.presentation.macroEnabled.12 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;pptx&lt;/td&gt;&lt;td&gt;application/vnd.openxmlformats-officedocument.presentationml.presentation &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xlsb&lt;/td&gt;&lt;td&gt;application/vnd.ms-excel.sheet.binary.macroEnabled.12 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xlsm&lt;/td&gt;&lt;td&gt;application/vnd.ms-excel.sheet.macroEnabled.12 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xlsx&lt;/td&gt;&lt;td&gt;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xps&lt;/td&gt;&lt;td&gt;application/vnd.ms-xpsdocument &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/6336233934099564151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2008/05/mime-content-types-for-office-2007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6336233934099564151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6336233934099564151'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2008/05/mime-content-types-for-office-2007.html' title='Mime Content Types for office 2007 documents'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-7303774463726465182</id><published>2008-05-07T13:37:00.001+05:30</published><updated>2008-05-07T13:48:19.899+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Manual verification of Validation Controls before getting submitted using Javascript</title><content type='html'>The Validation controls plays a major role in validation client data before it is getting posted in to the server. This is done by placing the appropriate validation controls required. This takes care of data validation before posting on its own. Suppose this same task has to handle even when validation controls are present. Let us see this. &lt;br /&gt;A JavaScript function displayed below will takes care of a similar task. &lt;br /&gt;&lt;pre&gt;function VerifyValidators()&lt;br /&gt;{&lt;br /&gt;    //To verify the validators are passed in data validation.&lt;br /&gt;    //This Page_ClientValidate() function will return true if all the validation are passed else it returns false.&lt;br /&gt;    if (Page_ClientValidate() == true)&lt;br /&gt;    { &lt;br /&gt;        form1.submit();&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;The Page_ClientValidate() function will not be included in the page by default. To implement this function we need a minimum a single validation control. Then, this function is rendered as a part of any validation control by default. By using this function, we can check the Data Validation even before it gets posted to the server. Some times when using this functionality the page may not be posted to the server, then page has to be submitted to the server manually as given in the function or in any other way.</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/7303774463726465182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2008/05/manual-verification-of-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/7303774463726465182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/7303774463726465182'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2008/05/manual-verification-of-validation.html' title='Manual verification of Validation Controls before getting submitted using Javascript'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-6295389465026066392</id><published>2008-04-23T16:51:00.000+05:30</published><updated>2008-04-23T16:57:04.408+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><title type='text'>ViewState Vs ControlState</title><content type='html'>we all know, in asp.net 1.x the web controls use the Viewstate to maintain state between postbacks. this involves more data to be transfered from and to the server. the best practice is to disbale ViewState when it is not required, but still this is problem in many other cases, suppose we use the DataGrid controls, which consumes most of the ViewState normally, the ViewState cannot be disabled because it has to support other events related to that control. the DataGrid page number, event command are stored in the Viewstate, so this is more inconvinient.&lt;br /&gt;In Asp.Net 2.0, the Viewstate concept is changed and they have introduced the controlstate, which is a part of Viewstate, only for the purpose to maintain control state, not the content of it. Control state is another type of hidden state reserved exclusively for controls to maintain their core behavioral functionality, whereas view state only contains state to maintain the control&#39;s contents (UI). Technically, control state is stored in the same hidden field as view state (being just another leaf node at the end of the view state hierarchy), but if you disable view state on a particular control, or on an entire page, the control state is still propagated. this enables us to use more Web Controls, as the viewstate is maintained internally. this will not support DataGrid, because it is part of Asp.Net 1.x, the new controls of Asp.Net 2.0 will support this feature. even the viewstate is disabled the event triggered, other control properties are maintained in the controls state. &lt;br /&gt;&lt;br /&gt;The supported controls are listed below.&lt;br /&gt;&lt;strong&gt;Control -&gt; Properties Stored in Control State &lt;/strong&gt;&lt;br /&gt;CheckBoxList  -&gt; PreviousItemCount, PreviousOffset &lt;br /&gt;ContentPager  -&gt; CurrentPage, PageCount &lt;br /&gt;DetailsView  -&gt; PageIndex, Mode, DefaultMode &lt;br /&gt;FormView  -&gt; PageIndex, Mode, DefaultMode &lt;br /&gt;GridView  -&gt; EditIndex, SelectedIndex, PageIndex, SortDirection, SortExpression &lt;br /&gt;ListControl  -&gt; SelectedIndices&lt;br /&gt;(base class for BulletedList, CheckBoxList, DropDownList, ListBox, and RadioButtonList)&lt;br /&gt;LoginView  -&gt; TemplateIndex &lt;br /&gt;MultiView  -&gt; ActiveViewIndex &lt;br /&gt;Table   -&gt; CurrentRow, ViewMode</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/6295389465026066392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2008/04/viewstate-vs-controlstate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6295389465026066392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/6295389465026066392'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2008/04/viewstate-vs-controlstate.html' title='ViewState Vs ControlState'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-5391886061887805962</id><published>2008-03-22T12:36:00.000+05:30</published><updated>2008-03-22T12:38:10.694+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Sharp"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Partial Classes</title><content type='html'>Partial Classes allow user to split the class file accross multiple source files. The benifit behind this approach is to hide the funtionality of the class. the same class can be created in may places and appropriate methods can be placed in the code file so that it derived classes can focus on significant part alone.</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/5391886061887805962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2008/03/partial-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/5391886061887805962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/5391886061887805962'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2008/03/partial-classes.html' title='Partial Classes'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2447833955317506069.post-4722077611570932829</id><published>2008-03-22T12:34:00.001+05:30</published><updated>2011-02-17T16:15:11.795+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Sharp"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Interfaces</title><content type='html'>&lt;span xmlns=&#39;&#39;&gt;&lt;p&gt;Interface are a type similar to class, where it cannot have the Method Content, rather it has the definition of Method. It will not have properties and members variables. The class which inherits the interface should implement all the methods of the interface. The interface forces the derived class to implement; otherwise it will not get compiled. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The below lists some of common interfaces of .Net &lt;br/&gt;1. IComparable - Implemented by types whose value can be ordered, it is used for sorting. &lt;br/&gt;2. Idisposable - Defines this method to dispose of an object manually, this is important most commonly used Interface when dealing with more big objects, and also to release the object which holds the resource like database. &lt;br/&gt;3. IConvertible - Enables the class to base type such as string, int or bool. &lt;br/&gt;4. IClonable - Supports object copying &lt;br/&gt;5. IEquatable - Allows comparing to object instances. &lt;br/&gt;6. IFormatable - Provides way to convert the value of object into a formatted string. This is similar to ToString() method, but provides greater flexibility than it.&lt;/p&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://asithangae.blogspot.com/feeds/4722077611570932829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asithangae.blogspot.com/2008/03/interfaces_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/4722077611570932829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2447833955317506069/posts/default/4722077611570932829'/><link rel='alternate' type='text/html' href='http://asithangae.blogspot.com/2008/03/interfaces_22.html' title='Interfaces'/><author><name>asithangae</name><uri>http://www.blogger.com/profile/17545384033751292086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9zUr3x_y523TUHtmI_5ip5nodaUAxQy02D0AXp4SX0ThuYb2Y09IIFP9n6pmafyjtoXQZh7-swlD1GO_bF8jSwbyp1MNL_4JtPrpCA5AJiiRqbE7ua14xDeMQWLz0F2U/s220/buddha06.jpg'/></author><thr:total>0</thr:total></entry></feed>