<?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-4773920178185485440</id><updated>2024-11-05T19:02:08.642-08:00</updated><category term="ASP.NET"/><category term="C#"/><category term=".net"/><category term="ASP.NET Web Page Resources"/><category term="Globalization"/><category term="javascript"/><category term="&#39;$telerik&#39; is undefined"/><category term="ASP.NET C# GridView"/><category term="ASP.NET Open PopUp Window Update Refresh Values"/><category term="ASP.NET State Management Recommendations"/><category term="Add favicon in address bar"/><category term="Best Programming Practices"/><category term="Bind only 25 characters label or text in Gridview control"/><category term="C# Coding Standards"/><category term="C# Coding Standards and Best Programming Practices"/><category term="C# Jagged Array Examples"/><category term="C#.Net Interview Question and Answers"/><category term="Call Page Method from JavaScript"/><category term="Combine Multiple Rows into One Row using SQL Server"/><category term="Concatenate Rows IN SQL"/><category term="Concatenate Rows using FOR XML PATH() IN SQL"/><category term="Copy of Session Object"/><category term="DateTimeFormatInfo"/><category term="Debugging Stored Procedures in Visual Studio 2005"/><category term="Define Maximum Value of a multiline TextBox in Asp.net Application"/><category term="Differences between Cache"/><category term="Disable browser back button after authentication"/><category term="Eval() vs Bind()"/><category term="Find Control Inside GridView in Javascript"/><category term="GetInstance"/><category term="GetMonthName"/><category term="Getting Keycode Values in IE and other browsers"/><category term="Global resource vs. Local resource in ASP.NET"/><category term="Globalization and Localization in .NET"/><category term="Globalization in .Net"/><category term="Globalization in asp.net"/><category term="HTTP Request Lifecycle Events in IIS Pipeline"/><category term="How to call root parent&#39;s function from n-th child window using javascript"/><category term="How to copy DLL or take backup of GAC"/><category term="How to create Image Gallery in asp.net 3.5"/><category term="How to create a database backup using visual studio"/><category term="How to populate month name in DropDownList in ASP.NET"/><category term="IE keycode is undefined"/><category term="Is-A Versus Has-A"/><category term="Lambda Expressions"/><category term="Literal vs Label in asp.net"/><category term="Microsoft .NET Frameworks features details"/><category term="Microsoft JScript runtime error: &#39;$telerik&#39; is undefined"/><category term="Motivation"/><category term="New in ASP.NET 4.5 and Visual Studio 2012"/><category term="Parsename to Extract Precision and Scale values‏ From Decimal Numbers"/><category term="Prevent visitors from opening a page outside iframe"/><category term="Printing GridView from ASp.net"/><category term="Resources and Localization in ASP.NET"/><category term="Session and ViewState in Asp.Net"/><category term="Session in Javascript"/><category term="SqlServer Query Optimization Tips"/><category term="TO disable right click on any web page or image"/><category term="TOP 5 costly Stored Procedures in a SQL Server Database"/><category term="Unable to get value of the property &#39;toLowerCase&#39;"/><category term="Update TFS Workspace name"/><category term="Using SQL Server database on other computer connected with LAN"/><category term="Using embedded resources with .NET assemblies"/><category term="V4.5"/><category term="Visual Studio Versions: VS 2011"/><category term="Visual Studio.NET ShortCut Keys"/><category term="What is difference between Web site and Web application"/><category term="__doPostBack&#39; is undefined"/><category term="__doPostBack&#39; is undefined in IE10"/><category term="anonymous functions"/><category term="asp.net 4.5"/><category term="bundling and minfication"/><category term="cache vs session"/><category term="cache vs session vs viewstate"/><category term="call topmost parent window function from child widnow"/><category term="coding standards"/><category term="connect sql server in LAN"/><category term="create image gallery using list view with pager"/><category term="disabel back button using javascript asp.net"/><category term="dot net"/><category term="dotnet"/><category term="get Session in Javascript"/><category term="get keycode in IE"/><category term="gridview print"/><category term="iterating xml data"/><category term="iterating xml data using cursor in sql server"/><category term="jagged arrays"/><category term="limit characters in controls inside gridview control"/><category term="linq"/><category term="login page loads into iframe after session"/><category term="ms visual studio"/><category term="naming conventions"/><category term="object is null or undefined"/><category term="popup window in asp.net"/><category term="prevent form view outside iframe"/><category term="redirects login page after session expiry"/><category term="session"/><category term="session vs viewstate"/><category term="set Session in Javascript"/><category term="signalR"/><category term="sql"/><category term="sql server"/><category term="tfs workspaces"/><category term="using looping in xml data in sql server asp.net"/><category term="visual studio"/><category term="web api"/><category term="web appication.net2"/><category term="website"/><category term="xml iteration"/><category term="xml looping using cursor in sql server"/><title type='text'>Dot net and Sql Server Tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-8879877765401224553</id><published>2015-11-02T00:15:00.001-08:00</published><updated>2015-11-02T00:15:27.960-08:00</updated><title type='text'>Immortal Coder: Steve Jobs explains what Object Oriented Programmi...</title><content type='html'>&lt;a href=&quot;http://immortalcoder.blogspot.com/2015/10/steve-jobs-explains-what-object.html?spref=bl&quot;&gt;Immortal Coder: Steve Jobs explains what Object Oriented Programmi...&lt;/a&gt;: Interviewer:  Would you explain, in simple terms, exactly what object-oriented software is?      Steve Jobs: &amp;nbsp;Objects are like people. They&amp;amp;...</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/8879877765401224553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2015/11/immortal-coder-steve-jobs-explains-what.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8879877765401224553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8879877765401224553'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2015/11/immortal-coder-steve-jobs-explains-what.html' title='Immortal Coder: Steve Jobs explains what Object Oriented Programmi...'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-7348645756899602636</id><published>2014-10-23T07:07:00.000-07:00</published><updated>2014-10-23T10:57:50.920-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to copy DLL or take backup of GAC"/><title type='text'>How to copy DLL or take backup of GAC </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Go to Start &amp;gt;&amp;gt; Run&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;enter command C:\WINDOWS\ASSEMBLY\gac_msil&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;this will give you the explorer windows with all the folder containing each available .dll in GAC&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If you like to take backup of all dll then copy all of them or find folder name as per the dll name to copy just specific dll&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To Install the dll in GAC without utility&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Open the folder &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C:\WINDOWS\ASSEMBLY&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Drag and drop the dll in to this folder.It will get installed.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Hope this will be useful.&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/7348645756899602636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/10/how-to-copy-dll-or-take-backup-of-gac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7348645756899602636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7348645756899602636'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/10/how-to-copy-dll-or-take-backup-of-gac.html' title='How to copy DLL or take backup of GAC '/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-1877192597567164658</id><published>2014-06-24T06:54:00.003-07:00</published><updated>2014-06-24T07:02:32.515-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net 4.5"/><category scheme="http://www.blogger.com/atom/ns#" term="bundling and minfication"/><category scheme="http://www.blogger.com/atom/ns#" term="ms visual studio"/><category scheme="http://www.blogger.com/atom/ns#" term="New in ASP.NET 4.5 and Visual Studio 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="signalR"/><category scheme="http://www.blogger.com/atom/ns#" term="web api"/><title type='text'>What&#39;s New in ASP.NET 4.5 and Visual Studio 2012 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This document describes new features and enhancements 
that are being introduced in ASP.NET 4.5. It also describes improvements
 being made for web development in Visual Studio (Visual Web 
Developer).&amp;nbsp;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCUGP-X87Ab4N5aD391CqspgUoClsAWM-oWs-a07w-UDjfI1YIa8__FpQNMalmtJD2iN4zumJ4Cadbz1WAglHFAlt46aUd0fc8Hj48aO8H0Qk7QhBAeXboWuZ6VArD25MNbE_RCS310TH/s1600/Slide1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCUGP-X87Ab4N5aD391CqspgUoClsAWM-oWs-a07w-UDjfI1YIa8__FpQNMalmtJD2iN4zumJ4Cadbz1WAglHFAlt46aUd0fc8Hj48aO8H0Qk7QhBAeXboWuZ6VArD25MNbE_RCS310TH/s1600/Slide1.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRwsZDPhV0kt_u_VFQ-WF0UFZpMFzmRwmlN9D5lwugQ8kKK1pvzPsHkA2pzPTL0wKsjntjECnOWdOa0Frb4T1qQYzVSZp461qZIKw5jZe4wfZIcS9WTASP0pnaH9HWRKMvRQFh2sdmPRc/s1600/Slide2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRwsZDPhV0kt_u_VFQ-WF0UFZpMFzmRwmlN9D5lwugQ8kKK1pvzPsHkA2pzPTL0wKsjntjECnOWdOa0Frb4T1qQYzVSZp461qZIKw5jZe4wfZIcS9WTASP0pnaH9HWRKMvRQFh2sdmPRc/s1600/Slide2.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RP0bbB8Qj-deZyQRpeZkOKs1MD0kP810DH3kPX5ajiYDvCVV0XtDYiMglb2NrGd4g5BdIUpMJ-apf9agA_QToucSikoTbgNQqnNLgIBMKBN1HP3KKwHmlz4a9mc8d8QeIm3WaI7Heb68/s1600/Slide3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RP0bbB8Qj-deZyQRpeZkOKs1MD0kP810DH3kPX5ajiYDvCVV0XtDYiMglb2NrGd4g5BdIUpMJ-apf9agA_QToucSikoTbgNQqnNLgIBMKBN1HP3KKwHmlz4a9mc8d8QeIm3WaI7Heb68/s1600/Slide3.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-Ra8GKrDB5arXqrpAqR1fxfwgOgQ23o7kGT4h0v6njj0OxPY6GjEuV56nCrvg2UcclyKaG7gjCtaKqfWOkxe-AwyYeaYMTgEDzlDAZ01xson7DqKmzZBjAdpxwiFB4aSjXd6lxfF9czzH/s1600/Slide4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-Ra8GKrDB5arXqrpAqR1fxfwgOgQ23o7kGT4h0v6njj0OxPY6GjEuV56nCrvg2UcclyKaG7gjCtaKqfWOkxe-AwyYeaYMTgEDzlDAZ01xson7DqKmzZBjAdpxwiFB4aSjXd6lxfF9czzH/s1600/Slide4.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpe69dDX6iPE3jl1_C0Ljn8JfbozTFUYvD6K11CPmwo8UxYA3148hiOVkqM3wicBhEjpkNxSsnwDYkZ0oYMjfanUxR63x1U-r1oNExr0SulZNuhfwRwKsOXXxCxdKqqX1H-959ZPcp4mTu/s1600/Slide5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpe69dDX6iPE3jl1_C0Ljn8JfbozTFUYvD6K11CPmwo8UxYA3148hiOVkqM3wicBhEjpkNxSsnwDYkZ0oYMjfanUxR63x1U-r1oNExr0SulZNuhfwRwKsOXXxCxdKqqX1H-959ZPcp4mTu/s1600/Slide5.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj502P64QFpszKebA6YwcsMmLPGDaadsBaRAjDDtY7OA2PKhKbvdxnCQHCNzh3_jcGYFOn3DhuttpcRYc5t0ZGDTmhQhFXlHLNuOKJ85Ii28tp_SxMowFZJ0GRAYIUaa70_HH_kTf0gzPO6/s1600/Slide6.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj502P64QFpszKebA6YwcsMmLPGDaadsBaRAjDDtY7OA2PKhKbvdxnCQHCNzh3_jcGYFOn3DhuttpcRYc5t0ZGDTmhQhFXlHLNuOKJ85Ii28tp_SxMowFZJ0GRAYIUaa70_HH_kTf0gzPO6/s1600/Slide6.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi10yoM0d3Go_7r7BvgKL8VMWxQoiOSAa5yBiVutKe-OdHimavU792XRNWRqBH3OQyHmWIwwbuD425ojdsnlJaqcjZ2hFfXM7XJ4FLWUo24krDljfjZF265zfkf733ZMWH6PVqNoe_pAooX/s1600/Slide7.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi10yoM0d3Go_7r7BvgKL8VMWxQoiOSAa5yBiVutKe-OdHimavU792XRNWRqBH3OQyHmWIwwbuD425ojdsnlJaqcjZ2hFfXM7XJ4FLWUo24krDljfjZF265zfkf733ZMWH6PVqNoe_pAooX/s1600/Slide7.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2bWXFKiQpRYrxVG5fE7BQb25YFBuvMYNdjjfK1dKweaVJJPiCmJktsDNLiswZxCHB-g5CHAm9wtH3VSCBU2A1t0mvqc_iain6Av_aBDaJSroZKxueKtf5tmWK2c8mYx6kOQGvKsOXVaot/s1600/Slide8.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2bWXFKiQpRYrxVG5fE7BQb25YFBuvMYNdjjfK1dKweaVJJPiCmJktsDNLiswZxCHB-g5CHAm9wtH3VSCBU2A1t0mvqc_iain6Av_aBDaJSroZKxueKtf5tmWK2c8mYx6kOQGvKsOXVaot/s1600/Slide8.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwQjv5-7_ZYslMoSktuKpX7Hr7EgvlruFI7talrGFQfkk76jBL8TY_lEunxuC7H6b2S7litLRogWtTR0rCcRE9KKYDjtSKRTLZ8nJ6HQJylOafA0fjgXouKJ2kP6tSMmYDgzNNV9RsHvtk/s1600/Slide9.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwQjv5-7_ZYslMoSktuKpX7Hr7EgvlruFI7talrGFQfkk76jBL8TY_lEunxuC7H6b2S7litLRogWtTR0rCcRE9KKYDjtSKRTLZ8nJ6HQJylOafA0fjgXouKJ2kP6tSMmYDgzNNV9RsHvtk/s1600/Slide9.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtsmERC8g1N77RKSUeb9OnnVYjBSrsKQPnzAF_4N37g1M3UZX-cG5q5NdVI18-jhO51XhWIeLuU7u6R7bFL1qVZkRIB7QO1_NJFWnKsl7HCewuwJAoQNe4O2R0V09ZwZ_3_a799hxbY7of/s1600/Slide10.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtsmERC8g1N77RKSUeb9OnnVYjBSrsKQPnzAF_4N37g1M3UZX-cG5q5NdVI18-jhO51XhWIeLuU7u6R7bFL1qVZkRIB7QO1_NJFWnKsl7HCewuwJAoQNe4O2R0V09ZwZ_3_a799hxbY7of/s1600/Slide10.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi62Hu-inI_Wh96NUEOCYT9KzM7iBFo5B5SZMBMgx7EMk5jCaOv9XB4EFeDaUN8v1F623NTpj7EJAv8SmCK99UMNL62Fh5Ys5TiFbHB44QwzwlQGYruQ2mDTmgwHuU0vnDZ0vhLo9RbqTU5/s1600/Slide11.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi62Hu-inI_Wh96NUEOCYT9KzM7iBFo5B5SZMBMgx7EMk5jCaOv9XB4EFeDaUN8v1F623NTpj7EJAv8SmCK99UMNL62Fh5Ys5TiFbHB44QwzwlQGYruQ2mDTmgwHuU0vnDZ0vhLo9RbqTU5/s1600/Slide11.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn9V_F5fJNkrXAc8m94bUtkEOtOv09wZbg_4ykm9Hk3Isnt6HqNBbUYIpFvlVr7Vja02iY21Rtif9IKCIYH23cQE0zTCJjgkyII2w_kqeAwl0J9PB-MexYqgLDpRlyZscF-sMZpiX0vFqT/s1600/Slide12.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn9V_F5fJNkrXAc8m94bUtkEOtOv09wZbg_4ykm9Hk3Isnt6HqNBbUYIpFvlVr7Vja02iY21Rtif9IKCIYH23cQE0zTCJjgkyII2w_kqeAwl0J9PB-MexYqgLDpRlyZscF-sMZpiX0vFqT/s1600/Slide12.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6K6beFomFhheZiVCjcDqwspuxS3Yo-MqmbZDiBwNoCUP3ggxJqKrAgLUD27YTkGeLE7ICGxFKaswAiHejg-xmpIjYbPoKg4zmR98UD86CYGBgyuqM3QYuoKKcBC9ki2QNyBaH2b02FrYN/s1600/Slide13.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6K6beFomFhheZiVCjcDqwspuxS3Yo-MqmbZDiBwNoCUP3ggxJqKrAgLUD27YTkGeLE7ICGxFKaswAiHejg-xmpIjYbPoKg4zmR98UD86CYGBgyuqM3QYuoKKcBC9ki2QNyBaH2b02FrYN/s1600/Slide13.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi36FkFKvH1yzudnTQGXV7FD-Ss2RQU04l0lPAHGZFVaKYpi4FiWaapPuJPqLeZJUJiBUYx0QExCe5ko0Nj-Va4tia0tvy46_BJJv7-OISBLjieiLfBxR2QAk-RdL61tVzrnxAhyphenhyphenlEmZtP_/s1600/Slide14.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi36FkFKvH1yzudnTQGXV7FD-Ss2RQU04l0lPAHGZFVaKYpi4FiWaapPuJPqLeZJUJiBUYx0QExCe5ko0Nj-Va4tia0tvy46_BJJv7-OISBLjieiLfBxR2QAk-RdL61tVzrnxAhyphenhyphenlEmZtP_/s1600/Slide14.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjI1trf3m6_Ajc4WDCRVS-gyYdioxOCyh_ILoFeMuIgovI5iiIPqlvbrbEeNE6Ta-jpXXrROFBj2BJt79qe8PMunAIMPOVIoKHGKAmC1LAtyx23QQNHleHib6Kol_5kq_P-TOqhkhQl9BB/s1600/Slide15.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjI1trf3m6_Ajc4WDCRVS-gyYdioxOCyh_ILoFeMuIgovI5iiIPqlvbrbEeNE6Ta-jpXXrROFBj2BJt79qe8PMunAIMPOVIoKHGKAmC1LAtyx23QQNHleHib6Kol_5kq_P-TOqhkhQl9BB/s1600/Slide15.JPG&quot; height=&quot;300&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;
&lt;u&gt;References: &lt;br /&gt;&lt;br /&gt;http://www.asp.net/aspnet/overview/aspnet-and-visual-studio-2012/whats-new&lt;br /&gt;&lt;br /&gt;http://pluralsight.com/training/Courses/TableOfContents/aspnet-webforms45-new-features&lt;/u&gt;&lt;/div&gt;














&lt;!-- Blogger automated replacement: &quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCUGP-X87Ab4N5aD391CqspgUoClsAWM-oWs-a07w-UDjfI1YIa8__FpQNMalmtJD2iN4zumJ4Cadbz1WAglHFAlt46aUd0fc8Hj48aO8H0Qk7QhBAeXboWuZ6VArD25MNbE_RCS310TH/s1600/Slide1.JPG&quot; with &quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCUGP-X87Ab4N5aD391CqspgUoClsAWM-oWs-a07w-UDjfI1YIa8__FpQNMalmtJD2iN4zumJ4Cadbz1WAglHFAlt46aUd0fc8Hj48aO8H0Qk7QhBAeXboWuZ6VArD25MNbE_RCS310TH/s1600/Slide1.JPG&quot; --&gt;&lt;!-- Blogger automated replacement: &quot;https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http%3A%2F%2F1.bp.blogspot.com%2F-5VkVPro7dm4%2FU6l7EUPQ16I%2FAAAAAAAAAlw%2FLLaJ4mN_M9I%2Fs1600%2FSlide1.JPG&amp;amp;container=blogger&amp;amp;gadget=a&amp;amp;rewriteMime=image%2F*&quot; with &quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCUGP-X87Ab4N5aD391CqspgUoClsAWM-oWs-a07w-UDjfI1YIa8__FpQNMalmtJD2iN4zumJ4Cadbz1WAglHFAlt46aUd0fc8Hj48aO8H0Qk7QhBAeXboWuZ6VArD25MNbE_RCS310TH/s1600/Slide1.JPG&quot; --&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/1877192597567164658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/06/whats-new-in-aspnet-45-and-visual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1877192597567164658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1877192597567164658'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/06/whats-new-in-aspnet-45-and-visual.html' title='What&#39;s New in ASP.NET 4.5 and Visual Studio 2012 '/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCUGP-X87Ab4N5aD391CqspgUoClsAWM-oWs-a07w-UDjfI1YIa8__FpQNMalmtJD2iN4zumJ4Cadbz1WAglHFAlt46aUd0fc8Hj48aO8H0Qk7QhBAeXboWuZ6VArD25MNbE_RCS310TH/s72-c/Slide1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-1955833023242457478</id><published>2014-03-29T21:45:00.000-07:00</published><updated>2014-03-29T21:45:15.866-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="connect sql server in LAN"/><category scheme="http://www.blogger.com/atom/ns#" term="Using SQL Server database on other computer connected with LAN"/><title type='text'>Using SQL Server database on other computer connected with LAN</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-size: large;&quot;&gt;By default Remote connections in SQL Server Express is turned off. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Just turn on the remote connections for SQL Express, 
enable TCPIP protocal and restart the service, check errorlog whether it&#39;s listening on all network adapters
Now try to connect using the machine name (since it&#39;s dynamic) from the client pc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;strong&gt;here is a step&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Open SQL Server Configuration Manager&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Select SQL Server Network Configuration&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Chose your instance of SQL Server&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Make sure that TCP/IP protocol is enabled&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Right click TCP/IP protocol&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Select properties&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Click IP addresses tab&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Scroll down to IP4. The IP address of the server should be here. Set
 active to yes and enabled to yes. Set TCP port to 1433 &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Scroll down to IPAll. Set TCP port to 1433&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Make an inbound firewall rule for port 1433&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;open sql server management studio, right click server instance, 
properties-&amp;gt;connections-&amp;gt; allow remote connections. Security-&amp;gt; 
SQL Server and Windows Authentication mode&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;restart sql server service&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;restart sql server browser&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;now use sql connection string &lt;code&gt;COMPUTERNAME&lt;/code&gt; 
for E.g &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;data source&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;COMPUTERNAME&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;database&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;databasename&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;user id&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;sa&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;password&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;pass&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot; providerName=&quot;&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Data&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;SqlClient&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span class=&quot;str&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span class=&quot;str&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span class=&quot;str&quot;&gt;Reference Link:&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span class=&quot;str&quot;&gt;http://blogs.msdn.com/b/sqlexpress/archive/2005/05/05/415084.aspx &lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/1955833023242457478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/03/using-sql-server-database-on-other.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1955833023242457478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1955833023242457478'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/03/using-sql-server-database-on-other.html' title='Using SQL Server database on other computer connected with LAN'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-8325439026345271608</id><published>2014-03-20T05:46:00.000-07:00</published><updated>2014-03-20T05:47:27.550-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tfs workspaces"/><category scheme="http://www.blogger.com/atom/ns#" term="Update TFS Workspace name"/><title type='text'>Update TFS workspaces </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-size: large;&quot;&gt;To update tfs workspace name with your computer name execute this line of code in visual studio command prompt.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE&amp;gt;tf workspaces /updateComputerName:SUYPC07&lt;/span&gt;3 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;/collection:http://asi-tfs-app01:8080/tfs/asi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For other tfs workspaces commands go to this link&lt;/span&gt;&lt;br /&gt;
http://msdn.microsoft.com/en-us/library/54dkh0y3.aspx&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/8325439026345271608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/03/update-tfs-workspaces.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8325439026345271608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8325439026345271608'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/03/update-tfs-workspaces.html' title='Update TFS workspaces '/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-6057981550288145250</id><published>2014-01-23T02:35:00.000-08:00</published><updated>2014-01-23T02:35:00.319-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Literal vs Label in asp.net"/><title type='text'>Literal vs Label in asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The main difference is that Literal controls just render out text, but Label controls surround it with &amp;lt;span&amp;gt; tags (Unless you use the AssociatedControlID property, in which case a Label control will render a &amp;lt;label&amp;gt; tag).&lt;br /&gt;
&lt;br /&gt;
So, labels can be styled easier, but if you&#39;re just inserting text, literals are the way to go. Literal controls also have a handy property Mode which governs how the text is rendered. You can have it HTML-encoded, or rendered without any changes, or have any &quot;unsupported markup-language elements&quot; removed.&lt;br /&gt;
&lt;br /&gt;
If you&#39;re not applying any styles (e.g. by using Label&#39;s CssClass property), it will be fine to replace Label controls with Literal controls.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;asp&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Label&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;EnableViewState&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; ID&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Label8&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; runat&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
        &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;AssociatedControlID&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;txtEmail&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Email&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Address&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;asp&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Label&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;asp&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;TextBox&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; ID&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;txtEmail&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; runat&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;asp&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;TextBox&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
It is optimal to use a label element because it will correctly turn it into a html &lt;code&gt;label&lt;/code&gt; element with the correct &lt;code&gt;for&lt;/code&gt;
 attribute targeting your text box, so that if a user clicks on the 
label it automatically sets their cursor inside the text field.&lt;br /&gt;




&lt;br /&gt;
Otherwise use the literal unless having the text wrapped in a &lt;code&gt;span&lt;/code&gt; would be beneficial for css styling.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/6057981550288145250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/01/literal-vs-label-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/6057981550288145250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/6057981550288145250'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/01/literal-vs-label-in-aspnet.html' title='Literal vs Label in asp.net'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-5396419167076438289</id><published>2014-01-10T03:44:00.001-08:00</published><updated>2014-01-10T03:45:08.703-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="HTTP Request Lifecycle Events in IIS Pipeline"/><title type='text'>HTTP Request Lifecycle Events in IIS Pipeline</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;The life cycle of an 
ASP.NET application starts with a request sent by a browser to the Web 
server like IIS. If you are an ASP.NET developer who creates modules and
 handlers, it’s important to understand the the HTTP Request Lifecycle 
in IIS. This article will give you an overview of the order of events 
fired only&amp;nbsp;in the &#39;Request Life Cycle&#39; in IIS pipeline.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt;
 In IIS 6.0, there are two request processing pipelines – one for 
native-code ISAPI filters and the other for managed applications like 
ASP.NET. However in IIS 7.0, there is one unified request processing 
pipeline for all requests. The ASP.NET runtime is integrated with the 
Web server. Also note that if IIS 7 is configured to work in Classic 
mode instead of Integrated mode, then it behaves like IIS 6.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;When a request is made to IIS, it is queued in the application pool of the application. An &lt;i&gt;application pool&lt;/i&gt; is a group of one or more URLs that are served by a worker process. The worker process(&lt;i&gt;w3wp.exe)&lt;/i&gt; is responsible to forward the request to the application.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;The request is processed by the HttpApplication pipeline and events are fired in the following order:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;BeginRequest&lt;/b&gt;
 - The BeginRequest event signals the creation of any given new request.
 This event is always raised and is always the first event to occur 
during the processing of a request.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;AuthenticateRequest&lt;/b&gt;
 - The AuthenticateRequest event signals that the configured 
authentication mechanism has authenticated the current request. 
Subscribing to the AuthenticateRequest event ensures that the request 
will be authenticated before processing the attached module or event 
handle.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostAuthenticateRequest&lt;/b&gt;
 - The PostAuthenticateRequest event is raised after the 
AuthenticateRequest event has occurred. All the information available is
 accessible in the HttpContext’s User property.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;AuthorizeRequest&lt;/b&gt;
 - The AuthorizeRequest event signals that ASP.NET has authorized the 
current request. You can subscribe to the AuthorizeRequest event to 
perform custom authorization.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostAuthorizeRequest&lt;/b&gt; - Occurs when the user for the current request has been authorized.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;ResolveRequestCache&lt;/b&gt;
 - Occurs when ASP.NET finishes an authorization event to let the 
caching modules serve requests from the cache, bypassing execution of 
the event handler and calling any EndRequest handlers.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostResolveRequestCache&lt;/b&gt;
 – Reaching this event means the request can’t be served from the cache,
 and thus a HTTP handler is created here. A Page class gets created if 
an aspx page is requested.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;MapRequestHandler&lt;/b&gt;
 - The MapRequestHandler event is used by the ASP.NET infrastructure to 
determine the request handler for the current request based on the 
file-name extension of the requested resource.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostMapRequestHandler&lt;/b&gt; - Occurs when ASP.NET has mapped the current request to the appropriate HTTP handler&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;AcquireRequestState&lt;/b&gt;
 - Occurs when ASP.NET acquires the current state (for example, session 
state) that is associated with the current request. A valid session ID 
must exist.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostAcquireRequestState&lt;/b&gt;
 - Occurs when the state information (for example, session state or 
application state) that is associated with the current request has been 
obtained.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PreRequestHandlerExecute&lt;/b&gt; - Occurs just before ASP.NET starts executing an event handler&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;ExecuteRequestHandler&lt;/b&gt; – Occurs when handler generates output. This is the only event not exposed by the HTTPApplication class.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostRequestHandlerExecute&lt;/b&gt; - Occurs when the ASP.NET event handler has finished generating the output&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;ReleaseRequestState&lt;/b&gt;
 - Occurs after ASP.NET finishes executing all request event handlers. 
This event signal ASP.NET state modules to save the current request 
state.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostReleaseRequestState&lt;/b&gt; - Occurs when ASP.NET has completed executing all request event handlers and the request state data has been persisted.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;UpdateRequestCache&lt;/b&gt;
 - Occurs when ASP.NET finishes executing an event handler in order to 
let caching modules store responses that will be reused to serve 
identical requests from the cache.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostUpdateRequestCache&lt;/b&gt; - When thePostUpdateRequestCache is raised, ASP.NET has completed processing code and the content of the cache is finalized.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;LogRequest &lt;/b&gt;-
 Occurs just before ASP.NET performs any logging for the current 
request. The LogRequest event is raised even if an error occurs. You can
 provide an event handler for the LogRequest event to provide custom 
logging for the request.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PostLogRequest&lt;/b&gt; - Occurs when request has been logged&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;EndRequest&lt;/b&gt;
 - Occurs as the last event in the HTTP pipeline chain of execution when
 ASP.NET responds to a request. In this event, you can compress or 
encrypt the response.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PreSendRequestHeaders&lt;/b&gt; – Fired after EndRequest if buffering is turned on (by default). Occurs just before ASP.NET sends HTTP headers to the client.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: small;&quot;&gt;&lt;b&gt;PreSendRequestContent&lt;/b&gt; - Occurs just before ASP.NET sends content to the client.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/5396419167076438289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/01/http-request-lifecycle-events-in-iis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/5396419167076438289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/5396419167076438289'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2014/01/http-request-lifecycle-events-in-iis.html' title='HTTP Request Lifecycle Events in IIS Pipeline'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-6214567707705576696</id><published>2013-12-17T21:38:00.002-08:00</published><updated>2013-12-17T21:38:35.453-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Is-A Versus Has-A"/><title type='text'>Is-A Versus Has-A</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;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span title=&quot;Believe it or not, the concept of whether a class &amp;quot;Is a [something]&amp;quot; or &amp;quot;Has a [something]&amp;quot; comes up quite a bit in object oriented design. For instance, consider the questions &amp;quot;Is a transmission a car?&amp;quot; and &amp;quot;Does a car have a transmission?&amp;quot;

Clearly, the second question is the only of the two that one would answer in the affirmative. A transmission is not a car, but a car does have a transmission. This is a classic &amp;quot;Is-A/Has-A&amp;quot; example. And sometimes the answer to the questions are not so clear cut, particularly if the relationship is more obscure, like the relationship between a wall and sheetrock. For example, sheetrock, if hanged, could perform the duties of a wall, and a wall can contain sheetrock. The implementation of the solution to that question could probably be solved with either implementing a &amp;quot;Is-A&amp;quot; paradigm, or a &amp;quot;Has-A&amp;quot; paradigm.

So, I haven&#39;t described how &amp;quot;Is-A&amp;quot; and &amp;quot;Has-A&amp;quot; are implemented in object oriented design. Well the answer to that is really quite simple:

&amp;quot;Is-A&amp;quot; is implemented via INHERITANCE
&amp;quot;Has-A&amp;quot; is implemented via COMPOSITION

INHERITANCE

Inheritance is a good solution when some component would be logically defined, more abstractly, as another object.

For instance, think of fruit. Fruit is really more of an abstract concept than it is an implementation. Fruit can either have seeds (raspberries), or not have seeds (bananas). It can also have rind (bananas), or not have rind (raspberries). These attributes (seeds, rinds) are values that the more abstract &amp;quot;fruit&amp;quot; has.

The implementation of this code could be as follows:

///Below is the &amp;quot;Fruit&amp;quot; class

public class Fruit
{
   private bool _hasSeeds;
   private bool _hasRind;

   ///Public attribute for whether or not the fruit has seeds
   public bool HasSeeds
   {
      get { return _hasSeeds; }
      set { _hasSeeds = value; }
   }

   ///Public attribute for whether the fruit has a rind
   public bool HasRind
   {
      get { return _hasRind; }
      set { _hasRind = value; }
   }   
}

///Public implementation of Banana
///Inherits from Fruit
public class Banana : Fruit
{
   ///Because the nature of a banana lends itself
   ///to knowing whether or not it has seeds and rind
   ///I will set those attributes in the constructor
   ///There is no reason that the class who calls 
   ///Banana should have to know that a banana does not
   ///have seeds and does have a rind.
   public Banana()
   {
      this.HasSeeds = false;
      this.HasRind = true;
   }

   public void Peel()
   {
      ///Do some kind of action to peel the banana
      ///Since Peel() is not common among all fruits
      ///Peel() does not have to be in the Fruit class
      ///However, there may be reasons to put it in there
      ///anyway. It depends on how similar the behavior
      ///is for all fruits&#39; Peel() behavior
   }
}

///Public implementation of Banana
///Inherits from Fruit
public class Raspberry : Fruit
{

   ///Like in Banana, raspberries HasSeeds and HasRind
   ///attributes are set
   public Raspberry()
   {
      this.HasSeeds = true;
      this.HasRind = false;
   }
}


As you can see, this example lends itself very well to the &amp;quot;Is-A&amp;quot; paradigm, because clearly, Bananas and Raspberries are &amp;quot;Fruit.&amp;quot; Also note that in the above, I did not put the Peel() method in the Fruit class, because it didn&#39;t seem to belong there. If I have an issue where many fruits need to have the Peel() behavior defined in them, I could do one of the following:

1. Create an interface, and have any peelable fruit invoke it:

public interface IPeelableFruit
{
   ///Notice how there is no implementation in the 
   ///interface&#39;s Peel()
   ///This is because an interface has no implementation
   ///It is simply a public contract between anyone implementing it
   void Peel();
}


Making an interface like the above would make a lot of sense if each fruit&#39;s implementation of Peel() were significantly different from one another.

With an interface, when I declare Banana, or any other peelable fruit, it would look like:

public class Banana : Fruit, IPeelableFruit
{
   public void Peel()...
}


2. I could create a PeelableFruit class, and a NonPeelableFruit class, and have subsequent classes inherit:

public class PeelableFruit : Fruit
{
   public PeelableFruit()
   {
      this.HasRind = true;
   }
}


Then declare Banana as follows:

public class Banana : PeelableFruit
{
...
}


What would happen in the above example is: PeelableFruit would be a fruit. Banana would be (&amp;quot;is-a&amp;quot;) a PeelableFruit, and also a Fruit, because it would inherit from both. The technical term is &amp;quot;inheritance chain&amp;quot;.

COMPOSITION

&amp;quot;Has-A&amp;quot; lends itself to object relationships where something contains something else, like the above example of a Car and a Transmission. But, suppose we wanted to really define, in a fruit, what a &amp;quot;Rind&amp;quot; is. This would give us a pretty good example of &amp;quot;Has-A&amp;quot;, because a PeelableFruit &amp;quot;Has-A&amp;quot; Rind.

So, if I wanted to build a &amp;quot;Rind&amp;quot; class, I would do something like the following:


public class Rind
{
   private string _color;
   //Let&#39;s say this is how difficult the rind is to peel
   //A banana would be something like 2, and an orange would
   //be 5
   private int _difficultyToPeel; 
                                  
   private int _thicknessInMillimeters;

   ///Each of these private members would also have
   ///corresponding public members. I&#39;ll omit those

   public Rind(string color, int difficultyToPeel, int thicknessInMillimeters)
   {
      _color = color;
      _difficultyToPeel = difficultyToPeel;
      _thicknessInMillimeters = thicknessInMillimeters;
   }
}


So, now that the Rind class is defined, we can now put a Rind object into the PeelableFruit Class:


public class PeelableFruit : Fruit
{
   ///In the constructor, I instantiate the Rind object
   ///Otherwise, later on in the execution, I may forget
   ///and exceptions will get thrown
   ///Note the constructor had to be changed to facilitate
   ///the necessity to instantiate the Rind object 
   ///(the color, difficulty, and thickness) parameters
   public PeelableFruit(string rindColor, int difficultyToPeel, int thicknessInMillimeters)
   {
      this.HasRind = true;
      this.PeelableFruitRind = new Rind(rindColor, difficultyToPeel, thicknessInMillimeters);
   }

   protected Rind PeelableFruitRind;
}


Then, when it comes time to instantiate a banana, doing so gives the banana much more robustness:

public class Banana : PeelableFruit
{
   ///I don&#39;t really know if this is &amp;quot;best practice&amp;quot; 
   ///to make a class so knowing of how
   ///it implements a parent class, but I don&#39;t care. 
   ///This is how I will continue
   ///to invoke this sort of inheritance
   public Banana() : base(&amp;quot;YELLOW&amp;quot;, 2, 7)
   {

   }
}


Note that, when Banana gets instantiated, it will inherit the PeelableFruit&#39;s protected variable PeelableFruitRind, and that fruit rind will have a color of &amp;quot;YELLOW&amp;quot;, a peeling difficulty of 2, and a thickness of 7 millimeters. Now, Banana &amp;quot;Has-A&amp;quot; rind, and that means it&#39;s using COMPOSITION.&quot;&gt;Believe
 it or not, the concept of whether a class &quot;Is a [something]&quot; or &quot;Has a 
[something]&quot; comes up quite a bit in object oriented design. For 
instance, consider the questions &quot;Is a transmission a car?&quot; and &quot;Does a 
car have a transmission?&quot;&lt;br /&gt;&lt;br /&gt;Clearly, the second question is the 
only of the two that one would answer in the affirmative. A transmission
 is not a car, but a car does have a transmission. This is a classic 
&quot;Is-A/Has-A&quot; example. And sometimes the answer to the questions are not 
so clear cut, particularly if the relationship is more obscure, like the
 relationship between a wall and sheetrock. For example, sheetrock, if 
hanged, could perform the duties of a wall, and a wall can contain 
sheetrock. The implementation of the solution to that question could 
probably be solved with either implementing a &quot;Is-A&quot; paradigm, or a 
&quot;Has-A&quot; paradigm.&lt;br /&gt;&lt;br /&gt;So, I haven&#39;t described how &quot;Is-A&quot; and &quot;Has-A&quot; 
are implemented in object oriented design. Well the answer to that is 
really quite simple:&lt;br /&gt;&lt;br /&gt;&quot;Is-A&quot; is implemented via INHERITANCE&lt;br /&gt;&quot;Has-A&quot; is implemented via COMPOSITION&lt;br /&gt;&lt;br /&gt;INHERITANCE&lt;br /&gt;&lt;br /&gt;Inheritance is a good solution when some component would be logically defined, more abstractly, as another object.&lt;br /&gt;&lt;br /&gt;For
 instance, think of fruit. Fruit is really more of an abstract concept 
than it is an implementation. Fruit can either have seeds (raspberries),
 or not have seeds (bananas). It can also have rind (bananas), or not 
have rind (raspberries). These attributes (seeds, rinds) are values that
 the more abstract &quot;fruit&quot; has.&lt;br /&gt;&lt;br /&gt;The implementation of this code could be as follows:&lt;br /&gt;&lt;br /&gt;///Below is the &quot;Fruit&quot; class&lt;br /&gt;&lt;br /&gt;public class Fruit&lt;br /&gt;{&lt;br /&gt;   private bool _hasSeeds;&lt;br /&gt;   private bool _hasRind;&lt;br /&gt;&lt;br /&gt;   ///Public attribute for whether or not the fruit has seeds&lt;br /&gt;   public bool HasSeeds&lt;br /&gt;   {&lt;br /&gt;      get { return _hasSeeds; }&lt;br /&gt;      set { _hasSeeds = value; }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   ///Public attribute for whether the fruit has a rind&lt;br /&gt;   public bool HasRind&lt;br /&gt;   {&lt;br /&gt;      get { return _hasRind; }&lt;br /&gt;      set { _hasRind = value; }&lt;br /&gt;   }   &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;///Public implementation of Banana&lt;br /&gt;///Inherits from Fruit&lt;br /&gt;public class Banana : Fruit&lt;br /&gt;{&lt;br /&gt;   ///Because the nature of a banana lends itself&lt;br /&gt;   ///to knowing whether or not it has seeds and rind&lt;br /&gt;   ///I will set those attributes in the constructor&lt;br /&gt;   ///There is no reason that the class who calls &lt;br /&gt;   ///Banana should have to know that a banana does not&lt;br /&gt;   ///have seeds and does have a rind.&lt;br /&gt;   public Banana()&lt;br /&gt;   {&lt;br /&gt;      this.HasSeeds = false;&lt;br /&gt;      this.HasRind = true;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void Peel()&lt;br /&gt;   {&lt;br /&gt;      ///Do some kind of action to peel the banana&lt;br /&gt;      ///Since Peel() is not common among all fruits&lt;br /&gt;      ///Peel() does not have to be in the Fruit class&lt;br /&gt;      ///However, there may be reasons to put it in there&lt;br /&gt;      ///anyway. It depends on how similar the behavior&lt;br /&gt;      ///is for all fruits&#39; Peel() behavior&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;///Public implementation of Banana&lt;br /&gt;///Inherits from Fruit&lt;br /&gt;public class Raspberry : Fruit&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;   ///Like in Banana, raspberries HasSeeds and HasRind&lt;br /&gt;   ///attributes are set&lt;br /&gt;   public Raspberry()&lt;br /&gt;   {&lt;br /&gt;      this.HasSeeds = true;&lt;br /&gt;      this.HasRind = false;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As
 you can see, this example lends itself very well to the &quot;Is-A&quot; 
paradigm, because clearly, Bananas and Raspberries are &quot;Fruit.&quot; Also 
note that in the above, I did not put the Peel() method in the Fruit 
class, because it didn&#39;t seem to belong there. If I have an issue where 
many fruits need to have the Peel() behavior defined in them, I could do
 one of the following:&lt;br /&gt;&lt;br /&gt;1. Create an interface, and have any peelable fruit invoke it:&lt;br /&gt;&lt;br /&gt;public interface IPeelableFruit&lt;br /&gt;{&lt;br /&gt;   ///Notice how there is no implementation in the &lt;br /&gt;   ///interface&#39;s Peel()&lt;br /&gt;   ///This is because an interface has no implementation&lt;br /&gt;   ///It is simply a public contract between anyone implementing it&lt;br /&gt;   void Peel();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Making
 an interface like the above would make a lot of sense if each fruit&#39;s 
implementation of Peel() were significantly different from one another.&lt;br /&gt;&lt;br /&gt;With an interface, when I declare Banana, or any other peelable fruit, it would look like:&lt;br /&gt;&lt;br /&gt;public class Banana : Fruit, IPeelableFruit&lt;br /&gt;{&lt;br /&gt;   public void Peel()...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. I could create a PeelableFruit class, and a NonPeelableFruit class, and have subsequent classes inherit:&lt;br /&gt;&lt;br /&gt;public class PeelableFruit : Fruit&lt;br /&gt;{&lt;br /&gt;   public PeelableFruit()&lt;br /&gt;   {&lt;br /&gt;      this.HasRind = true;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then declare Banana as follows:&lt;br /&gt;&lt;br /&gt;public class Banana : PeelableFruit&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What
 would happen in the above example is: PeelableFruit would be a fruit. 
Banana would be (&quot;is-a&quot;) a PeelableFruit, and also a Fruit, because it 
would inherit from both. The technical term is &quot;inheritance chain&quot;.&lt;br /&gt;&lt;br /&gt;COMPOSITION&lt;br /&gt;&lt;br /&gt;&quot;Has-A&quot;
 lends itself to object relationships where something contains something
 else, like the above example of a Car and a Transmission. But, suppose 
we wanted to really define, in a fruit, what a &quot;Rind&quot; is. This would 
give us a pretty good example of &quot;Has-A&quot;, because a PeelableFruit 
&quot;Has-A&quot; Rind.&lt;br /&gt;&lt;br /&gt;So, if I wanted to build a &quot;Rind&quot; class, I would do something like the following:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class Rind&lt;br /&gt;{&lt;br /&gt;   private string _color;&lt;br /&gt;   //Let&#39;s say this is how difficult the rind is to peel&lt;br /&gt;   //A banana would be something like 2, and an orange would&lt;br /&gt;   //be 5&lt;br /&gt;   private int _difficultyToPeel; &lt;br /&gt;                                  &lt;br /&gt;   private int _thicknessInMillimeters;&lt;br /&gt;&lt;br /&gt;   ///Each of these private members would also have&lt;br /&gt;   ///corresponding public members. I&#39;ll omit those&lt;br /&gt;&lt;br /&gt;   public Rind(string color, int difficultyToPeel, int thicknessInMillimeters)&lt;br /&gt;   {&lt;br /&gt;      _color = color;&lt;br /&gt;      _difficultyToPeel = difficultyToPeel;&lt;br /&gt;      _thicknessInMillimeters = thicknessInMillimeters;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, now that the Rind class is defined, we can now put a Rind object into the PeelableFruit Class:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class PeelableFruit : Fruit&lt;br /&gt;{&lt;br /&gt;   ///In the constructor, I instantiate the Rind object&lt;br /&gt;   ///Otherwise, later on in the execution, I may forget&lt;br /&gt;   ///and exceptions will get thrown&lt;br /&gt;   ///Note the constructor had to be changed to facilitate&lt;br /&gt;   ///the necessity to instantiate the Rind object &lt;br /&gt;   ///(the color, difficulty, and thickness) parameters&lt;br /&gt;   public PeelableFruit(string rindColor, int difficultyToPeel, int thicknessInMillimeters)&lt;br /&gt;   {&lt;br /&gt;      this.HasRind = true;&lt;br /&gt;      this.PeelableFruitRind = new Rind(rindColor, difficultyToPeel, thicknessInMillimeters);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   protected Rind PeelableFruitRind;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then, when it comes time to instantiate a banana, doing so gives the banana much more robustness:&lt;br /&gt;&lt;br /&gt;public class Banana : PeelableFruit&lt;br /&gt;{&lt;br /&gt;   ///I don&#39;t really know if this is &quot;best practice&quot; &lt;br /&gt;   ///to make a class so knowing of how&lt;br /&gt;   ///it implements a parent class, but I don&#39;t care. &lt;br /&gt;   ///This is how I will continue&lt;br /&gt;   ///to invoke this sort of inheritance&lt;br /&gt;   public Banana() : base(&quot;YELLOW&quot;, 2, 7)&lt;br /&gt;   {&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note
 that, when Banana gets instantiated, it will inherit the 
PeelableFruit&#39;s protected variable PeelableFruitRind, and that fruit 
rind will have a color of &quot;YELLOW&quot;, a peeling difficulty of 2, and a 
thickness of 7 millimeters. Now, Banana &quot;Has-A&quot; rind, and that means 
it&#39;s using COMPOSITION.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span title=&quot;Believe it or not, the concept of whether a class &amp;quot;Is a [something]&amp;quot; or &amp;quot;Has a [something]&amp;quot; comes up quite a bit in object oriented design. For instance, consider the questions &amp;quot;Is a transmission a car?&amp;quot; and &amp;quot;Does a car have a transmission?&amp;quot;

Clearly, the second question is the only of the two that one would answer in the affirmative. A transmission is not a car, but a car does have a transmission. This is a classic &amp;quot;Is-A/Has-A&amp;quot; example. And sometimes the answer to the questions are not so clear cut, particularly if the relationship is more obscure, like the relationship between a wall and sheetrock. For example, sheetrock, if hanged, could perform the duties of a wall, and a wall can contain sheetrock. The implementation of the solution to that question could probably be solved with either implementing a &amp;quot;Is-A&amp;quot; paradigm, or a &amp;quot;Has-A&amp;quot; paradigm.

So, I haven&#39;t described how &amp;quot;Is-A&amp;quot; and &amp;quot;Has-A&amp;quot; are implemented in object oriented design. Well the answer to that is really quite simple:

&amp;quot;Is-A&amp;quot; is implemented via INHERITANCE
&amp;quot;Has-A&amp;quot; is implemented via COMPOSITION

INHERITANCE

Inheritance is a good solution when some component would be logically defined, more abstractly, as another object.

For instance, think of fruit. Fruit is really more of an abstract concept than it is an implementation. Fruit can either have seeds (raspberries), or not have seeds (bananas). It can also have rind (bananas), or not have rind (raspberries). These attributes (seeds, rinds) are values that the more abstract &amp;quot;fruit&amp;quot; has.

The implementation of this code could be as follows:

///Below is the &amp;quot;Fruit&amp;quot; class

public class Fruit
{
   private bool _hasSeeds;
   private bool _hasRind;

   ///Public attribute for whether or not the fruit has seeds
   public bool HasSeeds
   {
      get { return _hasSeeds; }
      set { _hasSeeds = value; }
   }

   ///Public attribute for whether the fruit has a rind
   public bool HasRind
   {
      get { return _hasRind; }
      set { _hasRind = value; }
   }   
}

///Public implementation of Banana
///Inherits from Fruit
public class Banana : Fruit
{
   ///Because the nature of a banana lends itself
   ///to knowing whether or not it has seeds and rind
   ///I will set those attributes in the constructor
   ///There is no reason that the class who calls 
   ///Banana should have to know that a banana does not
   ///have seeds and does have a rind.
   public Banana()
   {
      this.HasSeeds = false;
      this.HasRind = true;
   }

   public void Peel()
   {
      ///Do some kind of action to peel the banana
      ///Since Peel() is not common among all fruits
      ///Peel() does not have to be in the Fruit class
      ///However, there may be reasons to put it in there
      ///anyway. It depends on how similar the behavior
      ///is for all fruits&#39; Peel() behavior
   }
}

///Public implementation of Banana
///Inherits from Fruit
public class Raspberry : Fruit
{

   ///Like in Banana, raspberries HasSeeds and HasRind
   ///attributes are set
   public Raspberry()
   {
      this.HasSeeds = true;
      this.HasRind = false;
   }
}


As you can see, this example lends itself very well to the &amp;quot;Is-A&amp;quot; paradigm, because clearly, Bananas and Raspberries are &amp;quot;Fruit.&amp;quot; Also note that in the above, I did not put the Peel() method in the Fruit class, because it didn&#39;t seem to belong there. If I have an issue where many fruits need to have the Peel() behavior defined in them, I could do one of the following:

1. Create an interface, and have any peelable fruit invoke it:

public interface IPeelableFruit
{
   ///Notice how there is no implementation in the 
   ///interface&#39;s Peel()
   ///This is because an interface has no implementation
   ///It is simply a public contract between anyone implementing it
   void Peel();
}


Making an interface like the above would make a lot of sense if each fruit&#39;s implementation of Peel() were significantly different from one another.

With an interface, when I declare Banana, or any other peelable fruit, it would look like:

public class Banana : Fruit, IPeelableFruit
{
   public void Peel()...
}


2. I could create a PeelableFruit class, and a NonPeelableFruit class, and have subsequent classes inherit:

public class PeelableFruit : Fruit
{
   public PeelableFruit()
   {
      this.HasRind = true;
   }
}


Then declare Banana as follows:

public class Banana : PeelableFruit
{
...
}


What would happen in the above example is: PeelableFruit would be a fruit. Banana would be (&amp;quot;is-a&amp;quot;) a PeelableFruit, and also a Fruit, because it would inherit from both. The technical term is &amp;quot;inheritance chain&amp;quot;.

COMPOSITION

&amp;quot;Has-A&amp;quot; lends itself to object relationships where something contains something else, like the above example of a Car and a Transmission. But, suppose we wanted to really define, in a fruit, what a &amp;quot;Rind&amp;quot; is. This would give us a pretty good example of &amp;quot;Has-A&amp;quot;, because a PeelableFruit &amp;quot;Has-A&amp;quot; Rind.

So, if I wanted to build a &amp;quot;Rind&amp;quot; class, I would do something like the following:


public class Rind
{
   private string _color;
   //Let&#39;s say this is how difficult the rind is to peel
   //A banana would be something like 2, and an orange would
   //be 5
   private int _difficultyToPeel; 
                                  
   private int _thicknessInMillimeters;

   ///Each of these private members would also have
   ///corresponding public members. I&#39;ll omit those

   public Rind(string color, int difficultyToPeel, int thicknessInMillimeters)
   {
      _color = color;
      _difficultyToPeel = difficultyToPeel;
      _thicknessInMillimeters = thicknessInMillimeters;
   }
}


So, now that the Rind class is defined, we can now put a Rind object into the PeelableFruit Class:


public class PeelableFruit : Fruit
{
   ///In the constructor, I instantiate the Rind object
   ///Otherwise, later on in the execution, I may forget
   ///and exceptions will get thrown
   ///Note the constructor had to be changed to facilitate
   ///the necessity to instantiate the Rind object 
   ///(the color, difficulty, and thickness) parameters
   public PeelableFruit(string rindColor, int difficultyToPeel, int thicknessInMillimeters)
   {
      this.HasRind = true;
      this.PeelableFruitRind = new Rind(rindColor, difficultyToPeel, thicknessInMillimeters);
   }

   protected Rind PeelableFruitRind;
}


Then, when it comes time to instantiate a banana, doing so gives the banana much more robustness:

public class Banana : PeelableFruit
{
   ///I don&#39;t really know if this is &amp;quot;best practice&amp;quot; 
   ///to make a class so knowing of how
   ///it implements a parent class, but I don&#39;t care. 
   ///This is how I will continue
   ///to invoke this sort of inheritance
   public Banana() : base(&amp;quot;YELLOW&amp;quot;, 2, 7)
   {

   }
}


Note that, when Banana gets instantiated, it will inherit the PeelableFruit&#39;s protected variable PeelableFruitRind, and that fruit rind will have a color of &amp;quot;YELLOW&amp;quot;, a peeling difficulty of 2, and a thickness of 7 millimeters. Now, Banana &amp;quot;Has-A&amp;quot; rind, and that means it&#39;s using COMPOSITION.&quot;&gt;Reference : http://www.c-sharpcorner.com/blogs/1416/is-a-versus-has-a.aspx &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/6214567707705576696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/is-versus-has-a.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/6214567707705576696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/6214567707705576696'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/is-versus-has-a.html' title='Is-A Versus Has-A'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-691551450525452585</id><published>2013-12-16T02:53:00.002-08:00</published><updated>2014-06-27T03:23:35.221-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eval() vs Bind()"/><title type='text'>Eval() vs Bind()</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-size: large;&quot;&gt;Eval(): -&lt;br /&gt;&lt;br /&gt;Eval() method provides only for displaying data from a data source in a control.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bind():-&lt;br /&gt;&lt;br /&gt;Bind() methods provides for two-way binding which means that it can be used to display as well update data from a data source&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/691551450525452585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/eval-vs-bind.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/691551450525452585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/691551450525452585'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/eval-vs-bind.html' title='Eval() vs Bind()'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-7478766106669624616</id><published>2013-12-12T04:58:00.003-08:00</published><updated>2013-12-16T22:08:50.529-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Concatenate Rows IN SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Concatenate Rows using FOR XML PATH() IN SQL"/><title type='text'>Concatenate Rows using FOR XML PATH() IN SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&#39;Concatenate Rows using FOR XML PATH() IN SQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example, if you have the following data:&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0;&quot;&gt;
&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;USE&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; AdventureWorks2008R2&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAT&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;Name &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [Category]&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUB&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;Name &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [Sub Category]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Production&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductCategory CAT&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt;&amp;nbsp; Production&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductSubcategory SUB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; CAT&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductCategoryID &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; SUB&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductCategoryID&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0;&quot;&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://sqlandme.files.wordpress.com/2011/04/image_thumb30.png?w=261&amp;amp;h=176&quot; height=&quot;176&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;261&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0;&quot;&gt;
&lt;/div&gt;
The desired output here is to concatenate the subcategories in a single row as:&lt;br /&gt;
&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;http://sqlandme.files.wordpress.com/2011/04/image_thumb31.png?w=386&amp;amp;h=102&quot; height=&quot;102&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;386&quot; /&gt;&lt;br /&gt;
We can achieve this by using FOR XML PATH(), the above query needs to be modified to concatenate the rows:&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;USE&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; AdventureWorks2008R2&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAT&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;Name &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [Category]&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: magenta;&quot;&gt;STUFF&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;,&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; SUB&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;Name &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [text()]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;– Add a comma (,) before each value&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; Production&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductSubcategory SUB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUB&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductCategoryID &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; CAT&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductCategoryID&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;FOR&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;XML&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;PATH&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;– Select it as XML&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt; 1&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; 1&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;– This is done to remove the first character (,)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;– from the result&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [Sub Categories]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; Production&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductCategory CAT&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Executing this query will generate the required concatenated values as depicted in above screen shot.&lt;br /&gt;
&lt;br /&gt;
We can also use&amp;nbsp; FOR XML to convert out resulting table in to xml format.there are some other variants of &#39;FOR XML&#39;.Try it...&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
Hope This Helps!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/7478766106669624616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/concatenate-rows-using-for-xml-path-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7478766106669624616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7478766106669624616'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/concatenate-rows-using-for-xml-path-in.html' title='Concatenate Rows using FOR XML PATH() IN SQL'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-7688694002163307425</id><published>2013-12-03T02:46:00.001-08:00</published><updated>2013-12-03T02:46:08.148-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="object is null or undefined"/><category scheme="http://www.blogger.com/atom/ns#" term="Unable to get value of the property &#39;toLowerCase&#39;"/><title type='text'> Unable to get value of the property &#39;toLowerCase&#39;: object is null or undefined </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;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tableStyle1&quot; id=&quot;Table4&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;tableStyle1Header&quot;&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 120px;&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 120px;&quot;&gt;&lt;/td&gt;
            &lt;td&gt;&lt;br /&gt;&lt;/td&gt;
        &lt;/tr&gt;
&lt;tr&gt;
            &lt;td style=&quot;width: 120px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
            &lt;td&gt;&lt;br /&gt;&lt;/td&gt;
        &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;strong&gt;HOW-TO:&lt;/strong&gt;&lt;br /&gt;
Open a &lt;strong&gt;modal&lt;/strong&gt; RadWindow inside another RadWindow (or 
iframe) in IE9 and IE10 and avoid the JavaScript error this can cause 
because of a browser bug.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Note: &lt;/strong&gt;This also applies to the server RadAlert(), 
RadConfirm() and RadPrompt() methods and the radopen(), radalert(), 
radconfirm() and radprompt() client-side methods when called from the 
server in the Sys.Application.Load event.&lt;br /&gt;
&lt;br /&gt;
This can be solved by adding&amp;nbsp; a new method OnClientBeforeShow=&quot;fixIE&quot; of&lt;br /&gt;
RadWindowManager&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&amp;nbsp; &amp;lt;telerik:RadWindowManager ID=&quot;radWinManager&quot; &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; runat=&quot;server&quot; DestroyOnClose=&quot;True&quot; OnClientBeforeShow=&quot;fixIE&quot;&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; KeepInScreenBounds=&quot;true&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/telerik:RadWindowManager&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Function&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function fixIE() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.documentElement.focus();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/7688694002163307425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/unable-to-get-value-of-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7688694002163307425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7688694002163307425'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/unable-to-get-value-of-property.html' title=' Unable to get value of the property &#39;toLowerCase&#39;: object is null or undefined '/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-5867998718957283386</id><published>2013-12-03T02:36:00.003-08:00</published><updated>2013-12-03T02:36:54.386-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="__doPostBack&#39; is undefined"/><category scheme="http://www.blogger.com/atom/ns#" term="__doPostBack&#39; is undefined in IE10"/><title type='text'>__doPostBack&#39; is undefined in IE10</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This bug occurs because of the missing of  IE 10 browser definition files.This can be solved by installing  hotfix for the ASP.NET browser definition files.&lt;br /&gt;
&lt;br /&gt;
This hotfix introduces updated definitions in the browser definition 
file for Internet Explorer. The browser definition files are stored in 
one of the following folders, depending on the installed version of the 
Microsoft .NET Framework:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;For 32-bit versions of the .NET Framework 2.0 SP2 or of the .NET Framework 3.5 SP1&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;%WinDir%\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers &lt;/li&gt;
&lt;li&gt;&lt;b&gt;For 64-bit versions of the .NET Framework 2.0 SP2 or of the .NET Framework 3.5 SP1&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;%WinDir%\Microsoft.NET\Framework64\v2.0.50727\CONFIG\Browsers&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
For more information go to&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://support.microsoft.com/kb/2600100&quot;&gt;http://support.microsoft.com/kb/2600100 &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/5867998718957283386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/dopostback-is-undefined-in-ie10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/5867998718957283386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/5867998718957283386'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/dopostback-is-undefined-in-ie10.html' title='__doPostBack&#39; is undefined in IE10'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-8497519801466764946</id><published>2013-12-03T02:29:00.003-08:00</published><updated>2013-12-03T02:29:43.467-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="&#39;$telerik&#39; is undefined"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft JScript runtime error: &#39;$telerik&#39; is undefined"/><title type='text'>Microsoft JScript runtime error: &#39;$telerik&#39; is undefined </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;line-height: 19px;&quot;&gt;This issue is encountered only when the property&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;line-height: 19px;&quot;&gt;DestroyOnClose&lt;/strong&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;of the RadWindow is set to&lt;/span&gt;&lt;strong style=&quot;line-height: 19px;&quot;&gt;true&lt;/strong&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;. If it is not needed in your scenario, I would suggest removing it.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/8497519801466764946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/microsoft-jscript-runtime-error-telerik.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8497519801466764946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8497519801466764946'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/12/microsoft-jscript-runtime-error-telerik.html' title='Microsoft JScript runtime error: &#39;$telerik&#39; is undefined '/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-1539904317812705126</id><published>2013-07-24T03:39:00.004-07:00</published><updated>2013-07-24T03:39:46.405-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="call topmost parent window function from child widnow"/><category scheme="http://www.blogger.com/atom/ns#" term="How to call root parent&#39;s function from n-th child window using javascript"/><title type='text'>To call root parent&#39;s function from n-th child window using javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;post-text&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you want to call the topmost window function from n-th child window call&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;window.top.abc();&lt;/span&gt;  //abc() is the function in the topmost window.&lt;/span&gt;&lt;br /&gt;

&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/1539904317812705126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/07/to-call-root-parents-function-from-n-th.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1539904317812705126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1539904317812705126'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/07/to-call-root-parents-function-from-n-th.html' title='To call root parent&#39;s function from n-th child window using javascript'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-1085571520541178265</id><published>2013-06-07T04:59:00.003-07:00</published><updated>2013-06-07T05:00:49.270-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SqlServer Query Optimization Tips"/><title type='text'>SqlServer Query Optimization Tips</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-size: large;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tip 1: Always use WHERE Clause in SELECT Queries while we don’t need all the rows to be returned. This will help to narrow the return rows else it will perform a whole table scan and waste the Sql server resources with increasing the network traffic. While scanning the whole it will lock the Table which may prevent other users to access the table.&lt;br /&gt;&lt;br /&gt;Tip 2: It is seen many times developers use codes like&amp;nbsp; &lt;br /&gt;&lt;br /&gt;SELECT * FROM OrderTable WHERE LOWER(UserName)=&#39;telsa&#39;&lt;br /&gt;&lt;br /&gt;Instead of writing it like the below&lt;br /&gt;&lt;br /&gt;SELECT * FROM OrderTable WHERE UserName=&#39;telsa&#39;&lt;br /&gt;&lt;br /&gt;Infact both the queries does the same work but the 2nd one is better and retrieves rows more speedly than the first query. Because Sql Server is not case sensitive&lt;br /&gt;&lt;br /&gt;Tip 3: While running a query, the operators used with the WHERE clause directly affect the performance. The operators shown below are in their decreasing order of their performance.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;,&amp;gt;=,&amp;lt;, &amp;lt;=&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LIKE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt;&lt;br /&gt;&lt;br /&gt;Tip 4 : When we are writing queries containing NOT IN, then this is going to offer poor performance as the optimizer need to use nested table scan to perform this activity. This can be avoided by using EXISTS or NOT EXISTS.&lt;br /&gt;&lt;br /&gt;When there is a choice to use IN or EXIST, we should go with EXIST clause for better performance.&lt;br /&gt;&lt;br /&gt;Tip 5: It is always best practice to use the Index seek while the columns are covered by an index, this will force the Query Optimizer to use the index while using IN or OR clauses as a part of our WHERE clause. &lt;br /&gt;&lt;br /&gt;SELECT * FROM OrderTable WHERE Status = 1 AND OrderID IN (406,530,956)&lt;br /&gt;&lt;br /&gt;Takes more time than &lt;br /&gt;&lt;br /&gt;SELECT * FROM OrderTable (INDEX=IX_OrderID) WHERE Status = 1 AND OrderID IN (406,530,956)&lt;br /&gt;&lt;br /&gt;Tip 6: While we use IN, in the sql query it better to use one or more leading characters in the clause instead of using the wildcard character at the starting.&lt;br /&gt;&lt;br /&gt;SELECT * FROM CustomerTable WHERE CustomerName LIKE &#39;m%&#39;&lt;br /&gt;&lt;br /&gt;SELECT * FROM CustomerTable WHERE CustomerName LIKE &#39;%m&#39;&lt;br /&gt;&lt;br /&gt;In the first query the Query optimizer is having the ability to use an index to perform the query and there by reducing the load on sql server. But in the second query, no suitable index can be created while running the query.&lt;br /&gt;&lt;br /&gt;Tip 7: While there is case to use IN or BETWEEN clause in the query, it is always advisable to use BETWEEN for better result.&lt;br /&gt;&lt;br /&gt;SELECT * FROM CustomerTable WHERE CustomerID BETWEEN (5000 AND 5005)&lt;br /&gt;&lt;br /&gt;Performs better than&lt;br /&gt;&lt;br /&gt;SELECT * FROM CustomerTable WHERE CustomerID IN (5000,5001,5002,5003,5004,5005)&lt;br /&gt;&lt;br /&gt;Tip 8: Always avoid the use of SUBSTRING function in the query.&lt;br /&gt;&lt;br /&gt;SELECT * FROM CustomerTable WHERE CustomerName LIKE &#39;n%&#39;&lt;br /&gt;&lt;br /&gt;Is much better than writing&lt;br /&gt;&lt;br /&gt;SELECT * FROM CustomerTable WHERE SUBSTRING(CustomerName,1,1)=&#39;n&#39;&lt;br /&gt;&lt;br /&gt;Tip 9 : The queries having WHERE clause connected by AND operators are evaluated from left to right in the order they are written. So certain things should be taken care of like&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Provide the least likely true expressions first in the AND. By doing this if the AND expression is false at the initial stage the clause will end immediately. So it will save execution time&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If all the parts of the AND expression are equally like being false then better to put the Complex expression first. So if the complex works are false then less works to be done.&lt;br /&gt;&lt;br /&gt;Tip 10: Its sometimes better to combine queries using UNION ALL instead of using many OR clauses.&lt;br /&gt;&lt;br /&gt;SELECT CustomerID, FirstName, LastName FROM CustomerTable&lt;br /&gt;&lt;br /&gt;WHERE City = &#39;Wichita&#39; or ZIP = &#39;67201&#39; or State= &#39;Kansas&#39;&lt;br /&gt;&lt;br /&gt;The above query to use and index, it is required to have indexes on all the 3 columns.&lt;br /&gt;&lt;br /&gt;The same query can be written as&lt;br /&gt;&lt;br /&gt;SELECT CustomerID, FirstName, LastName FROM CustomerTable WHERE City = &#39;Wichita&#39;&lt;br /&gt;&lt;br /&gt;UNION ALL&lt;br /&gt;&lt;br /&gt;SELECT CustomerID, FirstName, LastName FROM CustomerTable WHERE ZIP = &#39;67201&#39;&lt;br /&gt;&lt;br /&gt;UNION ALL&lt;br /&gt;&lt;br /&gt;SELECT CustomerID, FirstName, LastName FROM CustomerTable WHERE State= &#39;Kansas&#39;&lt;br /&gt;&lt;br /&gt;Both the queries will provide same results but if there is only an index on City and no indexes on the zip or state, then the first query will not use the index and a table scan is performed. But the 2nd one will use the index as the part of the query.&lt;br /&gt;&lt;br /&gt;Tip 11:&amp;nbsp; While the select statement contains a HAVING clause, its better to make the WHERE clause to do most of the works (removing the undesired rows) for the Query instead of letting the HAVING clause to do the works.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;e.g. in a SELECT statement with GROUP BY and HAVING clause, things happens like first WHERE clause will select appropriate rows then GROUP BY divide them to group of rows and finally the HAVING clause have less works to perform, which will boost the performance.&lt;br /&gt;&lt;br /&gt;Tip 12: Let’s take 2 situations&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A query that takes 30 seconds to run, and then displays all of the required results.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A query that takes 60 seconds to run, but displays the first screen full of records in less than 1 second.&lt;br /&gt;&lt;br /&gt;By looking at the above 2 situations a developer may choose to follow the 1st option, as it uses less resources and faster in performance. But actually the 2nd one is more acceptable by a DBA. An application may provide immediate feedback to the user, but actually this may not be happening at the background.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We can use a hint like&lt;br /&gt;&lt;br /&gt;SELECT * FROM CustomerTable WHERE City = &#39;Wichita&#39; OPTION(FAST n)&lt;br /&gt;&lt;br /&gt;where n = number of rows that we want to display as fast as possible. This hint helps to return the specified number of rows as fast as possible without bothering about the time taken by the overall query.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/1085571520541178265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/06/sqlserver-query-optimization-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1085571520541178265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1085571520541178265'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/06/sqlserver-query-optimization-tips.html' title='SqlServer Query Optimization Tips'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-4919172364826214334</id><published>2013-05-29T23:36:00.000-07:00</published><updated>2013-05-29T23:36:10.135-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Motivation"/><title type='text'>Motivation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi94aT3KfJrB7H_u_h7hDr1PEEDlF9Fg_UY4jp4t4maCBAiPjVvCqH79T7iQttZyMcsYYRPeA-lYXa9vhHe_NnS4CJe0AwKhPTzjR2snqlTqHY4ywgwviod9ODC3RafCBbZ7Nv0pMDO04uR/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi94aT3KfJrB7H_u_h7hDr1PEEDlF9Fg_UY4jp4t4maCBAiPjVvCqH79T7iQttZyMcsYYRPeA-lYXa9vhHe_NnS4CJe0AwKhPTzjR2snqlTqHY4ywgwviod9ODC3RafCBbZ7Nv0pMDO04uR/s1600/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc0wSHzuhkLPVeUIh19DIQNnf4OjxdTlOtchMwSxcoCRi0Oes4fS7DXLih1ofR6zI_jK7CPkTIhDWdgNP9bexZ9mwqii2kPrH5A1Nmm7E4colzsUXjhCCheJlxpT0kuyXCNFdRgQC1vNeE/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc0wSHzuhkLPVeUIh19DIQNnf4OjxdTlOtchMwSxcoCRi0Oes4fS7DXLih1ofR6zI_jK7CPkTIhDWdgNP9bexZ9mwqii2kPrH5A1Nmm7E4colzsUXjhCCheJlxpT0kuyXCNFdRgQC1vNeE/s1600/2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOifzaVkLv2mMS9xDf7zGWtKevdXyKazI5nc3mCFHnsx7KS5LO2J-p0erdUQ1U7hBYZl8HAS-1Hh78oQj7_f_XFRjDNxuHdY5hGTQycyGemaMMypFyFv0bqOIuA7UXvER1KzS2QAD40Kni/s1600/3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOifzaVkLv2mMS9xDf7zGWtKevdXyKazI5nc3mCFHnsx7KS5LO2J-p0erdUQ1U7hBYZl8HAS-1Hh78oQj7_f_XFRjDNxuHdY5hGTQycyGemaMMypFyFv0bqOIuA7UXvER1KzS2QAD40Kni/s1600/3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXPI6k4zZLKxA4GIzX4QI6_R5U1Kt9HM58-j6bw6DvGCuUyXSXrctuFaVhk2qdKfAH3Ktkp4ci4rHZeKn1pIREyFY05fAyiN2ynHJwAB_9Bk3ykmRnphbOs_CggMYLgcDYZ9-lJapSZ4cA/s1600/4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXPI6k4zZLKxA4GIzX4QI6_R5U1Kt9HM58-j6bw6DvGCuUyXSXrctuFaVhk2qdKfAH3Ktkp4ci4rHZeKn1pIREyFY05fAyiN2ynHJwAB_9Bk3ykmRnphbOs_CggMYLgcDYZ9-lJapSZ4cA/s1600/4.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpbe-khdeJZ-9nc_hi0Naj0JH_NyDCGcs0N9jWCyZvDZPq_RV1xcHVGI2D7mL9SMGRBQyTCTjRBaSG_pzai-n2mjgY1oegG2L5dQt8IiHTN3KT50OcHEtMe5h7oAdpvnWVi90IFTFTEE1D/s1600/5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpbe-khdeJZ-9nc_hi0Naj0JH_NyDCGcs0N9jWCyZvDZPq_RV1xcHVGI2D7mL9SMGRBQyTCTjRBaSG_pzai-n2mjgY1oegG2L5dQt8IiHTN3KT50OcHEtMe5h7oAdpvnWVi90IFTFTEE1D/s1600/5.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoao7O8M3XWK2V4ihY5j5lqi4WweOUu6Sa2YjdBCuYt7WLjuo-KT8tiwda7oZRBFfn1toZaXWE034PpIm1hdqz5IcJ_GQuyPzLknRCeXXOVHnQLpy30K-ZGYTj1EGFtLE2-0NGqXqsXc4f/s1600/6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoao7O8M3XWK2V4ihY5j5lqi4WweOUu6Sa2YjdBCuYt7WLjuo-KT8tiwda7oZRBFfn1toZaXWE034PpIm1hdqz5IcJ_GQuyPzLknRCeXXOVHnQLpy30K-ZGYTj1EGFtLE2-0NGqXqsXc4f/s1600/6.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/4919172364826214334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/05/motivation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/4919172364826214334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/4919172364826214334'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/05/motivation.html' title='Motivation'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi94aT3KfJrB7H_u_h7hDr1PEEDlF9Fg_UY4jp4t4maCBAiPjVvCqH79T7iQttZyMcsYYRPeA-lYXa9vhHe_NnS4CJe0AwKhPTzjR2snqlTqHY4ywgwviod9ODC3RafCBbZ7Nv0pMDO04uR/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-1714483687103569709</id><published>2013-04-25T01:46:00.002-07:00</published><updated>2013-04-25T01:46:54.605-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio.NET ShortCut Keys"/><title type='text'>Visual Studio.NET ShortCut Keys</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-size: large;&quot;&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + N Opens the New Project Dialogue Box&lt;br /&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + O Opens the Open File Dialog Box&lt;br /&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + A Opens Add New Item window&lt;br /&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + D Opens Add Existing Item window&lt;br /&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + S Saves Current Form&lt;br /&gt;6.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + S Saves everything from Application&lt;br /&gt;7.&amp;nbsp;&amp;nbsp;&amp;nbsp; Alt + Q Exits Visual Studio. NET&lt;br /&gt;8.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Z Undo&lt;br /&gt;9.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + Z&amp;nbsp; Redo&lt;br /&gt;10.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + X Cuts your selection&lt;br /&gt;11.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + C Copies your selection&lt;br /&gt;12.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + V Pastes your selection&lt;br /&gt;13.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + A Selects All&lt;br /&gt;14.&amp;nbsp;&amp;nbsp;&amp;nbsp; Del Deletes your selection&lt;br /&gt;15.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + F Opens Find window&lt;br /&gt;16.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + H Opens Find and Replace window&lt;br /&gt;17.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + H Opens Replace in Files window&lt;br /&gt;18.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + Shift + F12 Opens Find Symbol window&lt;br /&gt;19.&amp;nbsp;&amp;nbsp;&amp;nbsp; F7 Opens Code Designer window&lt;br /&gt;20.&amp;nbsp;&amp;nbsp;&amp;nbsp; Shift + F7 Gets you back to Design View&lt;br /&gt;21.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + R Opens the Solution Explorer window&lt;br /&gt;22.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + S Opens the Server Explorer window&lt;br /&gt;23.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + C Opens the Class View window&lt;br /&gt;24.&amp;nbsp;&amp;nbsp;&amp;nbsp; F4 Opens the Properties window&lt;br /&gt;25.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + E Opens the Resource view window&lt;br /&gt;26.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + X Opens the Toolbar window&lt;br /&gt;27.&amp;nbsp;&amp;nbsp;&amp;nbsp; Shift + Alt + Enter Takes you to Full Screen View&lt;br /&gt;28.&amp;nbsp;&amp;nbsp;&amp;nbsp; Alt+F8 Opens Macro Explorer window&lt;br /&gt;29.&amp;nbsp;&amp;nbsp;&amp;nbsp; F2&amp;nbsp; Opens Object Browser window&lt;br /&gt;30.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + T Opens Document Outline window&lt;br /&gt;31.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + K Opens Task List window&lt;br /&gt;32.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + A Opens Command window&lt;br /&gt;33.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + O Opens Output window&lt;br /&gt;34.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + Y Opens Find Symbol Results window&lt;br /&gt;35.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + F Lists Items under the Favorites Menu in your Internet Explorer&lt;br /&gt;36.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + B Builds your project&lt;br /&gt;37.&amp;nbsp;&amp;nbsp;&amp;nbsp; F5 Runs your Application&lt;br /&gt;38.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + F5 Runs your Application without Debugging&lt;br /&gt;39.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + E Opens the Exceptions Dialog Box&lt;br /&gt;40.&amp;nbsp;&amp;nbsp;&amp;nbsp; F8 Used while Debugging Applications&lt;br /&gt;41.&amp;nbsp;&amp;nbsp;&amp;nbsp; Shift + F8 Used While Debugging Applications&lt;br /&gt;42.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + B Inserts a New &lt;span style=&quot;font-size: large;&quot;&gt;Break point&lt;/span&gt;&lt;br /&gt;43.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + F9 Clears All Breakpoints&lt;br /&gt;44.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + P Opens the Processes Dialog box&lt;br /&gt;45.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + T Opens Customize Toolbox window&lt;br /&gt;46.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + P Runs Temporary Macro&lt;br /&gt;47.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Shift + R Records Temporary Macro&lt;br /&gt;48.&amp;nbsp;&amp;nbsp;&amp;nbsp; Alt + F11 Opens Macros IDE&lt;br /&gt;49.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + F1 Opens Dynamic Help window&lt;br /&gt;50.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl +Alt + F1 Opens Help window sorted by Contents&lt;br /&gt;51.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + F2 Opens Help window sorted by Index&lt;br /&gt;52.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + Alt + F3 Opens Help Search window&lt;br /&gt;53.&amp;nbsp;&amp;nbsp;&amp;nbsp; Shift + Alt + F2 Opens Index Results window&lt;br /&gt;54.&amp;nbsp;&amp;nbsp;&amp;nbsp; Shift + Alt + F3 Opens Search Results window&lt;br /&gt;55.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + K +C Comment out the current selected section&lt;br /&gt;56.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl + K +U Un comment the current selected section&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/1714483687103569709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/04/visual-studionet-shortcut-keys.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1714483687103569709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1714483687103569709'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/04/visual-studionet-shortcut-keys.html' title='Visual Studio.NET ShortCut Keys'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-63621872455042162</id><published>2013-03-27T02:53:00.003-07:00</published><updated>2013-03-27T02:53:39.783-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Parsename to Extract Precision and Scale values‏ From Decimal Numbers"/><title type='text'>Parsename to Extract Precision and Scale values‏ From Decimal Numbers</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-size: large;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;The numeric datatype stores numbers with precision and scale. Suppose you want to extract only a precision or a scale, you can do it via many ways. One of the ways is to make use of the PARSENAME function.&lt;br /&gt;&lt;br /&gt;Consider the following example&lt;br /&gt;&lt;br /&gt;declare @amount decimal(12,2)&lt;br /&gt;set @amount=87234.50&lt;br /&gt;select parsename(@amount,2) as precision, parsename(@amount,1) as scale&lt;br /&gt;&lt;br /&gt;The result is&lt;br /&gt;&lt;br /&gt;precision&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scale&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; --------&lt;br /&gt;87234&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;br /&gt;&lt;br /&gt;Parsename is used to extract specified part of a name. In general, it is used to extract names from four part object names separated by a dot. Argument number 1 extracts the last part of a string, and the 2nd argument extracts the next last part.&lt;br /&gt;&lt;br /&gt;This way we can effectively make use of parsename function to extract precision and scale values from the decimal numbers. &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/63621872455042162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/parsename-to-extract-precision-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/63621872455042162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/63621872455042162'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/parsename-to-extract-precision-and.html' title='Parsename to Extract Precision and Scale values‏ From Decimal Numbers'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-7559711064855317666</id><published>2013-03-27T02:52:00.002-07:00</published><updated>2013-03-27T02:52:45.707-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TOP 5 costly Stored Procedures in a SQL Server Database"/><title type='text'>TOP 5 costly Stored Procedures in a SQL Server Database</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-size: large;&quot;&gt;Execute this query on corresponding Database&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT TOP &lt;/span&gt;5 obj&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;max_logical_reads&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;nbsp;&lt;/span&gt;max_elapsed_time
&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;dm_exec_query_stats &lt;/span&gt;a
&lt;span style=&quot;color: grey;&quot;&gt;CROSS APPLY &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;dm_exec_sql_text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;sql_handle&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;) &lt;/span&gt;hnd
&lt;span style=&quot;color: grey;&quot;&gt;INNER JOIN &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;sysobjects &lt;/span&gt;obj &lt;span style=&quot;color: blue;&quot;&gt;on &lt;/span&gt;hnd&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;objectid &lt;span style=&quot;color: grey;&quot;&gt;= &lt;/span&gt;obj&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;id
&lt;span style=&quot;color: blue;&quot;&gt;ORDER BY  &lt;/span&gt;max_logical_reads  &lt;span style=&quot;color: blue;&quot;&gt;DESC&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/7559711064855317666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/top-5-costly-stored-procedures-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7559711064855317666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7559711064855317666'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/top-5-costly-stored-procedures-in-sql.html' title='TOP 5 costly Stored Procedures in a SQL Server Database'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-7801242150637514034</id><published>2013-03-27T02:48:00.002-07:00</published><updated>2013-03-27T02:48:52.526-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Combine Multiple Rows into One Row using SQL Server"/><title type='text'>Combine Multiple Rows into One Row using SQL Server</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-size: large;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;Imagine you have a column like this:&lt;br /&gt;&lt;br /&gt;Numbers&lt;br /&gt;---------&lt;br /&gt;One&lt;br /&gt;Two&lt;br /&gt;Three&lt;br /&gt;Four&lt;br /&gt;Five&lt;br /&gt;&lt;br /&gt;The output you desire is to combine all the rows and put it as one row similar to the following:&lt;br /&gt;&lt;br /&gt;OneTwoThreeFourFive&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Let us see how to do it:&lt;br /&gt;&lt;br /&gt;-- Sample Script to create the table and insert rows&lt;br /&gt;-- By SQLServerCurry.com&lt;br /&gt;&lt;br /&gt;CREATE TABLE #Temp&lt;br /&gt;(&lt;br /&gt;[Numbers] varchar(40)&lt;br /&gt;)&lt;br /&gt;INSERT INTO #Temp VALUES(&#39;One&#39;);&lt;br /&gt;INSERT INTO #Temp VALUES(&#39;Two&#39;);&lt;br /&gt;INSERT INTO #Temp VALUES(&#39;Three&#39;);&lt;br /&gt;INSERT INTO #Temp VALUES(&#39;Four&#39;);&lt;br /&gt;INSERT INTO #Temp VALUES(&#39;Five&#39;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Query to combine multiple rows into one&lt;br /&gt;&lt;br /&gt;DECLARE @str VARCHAR(100)&lt;br /&gt;SELECT @str = COALESCE(@str + &#39;&#39;, &#39;&#39;) + [Numbers]&lt;br /&gt;FROM #Temp&lt;br /&gt;Print @str&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/7801242150637514034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/combine-multiple-rows-into-one-row.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7801242150637514034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/7801242150637514034'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/combine-multiple-rows-into-one-row.html' title='Combine Multiple Rows into One Row using SQL Server'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-1004156678652019705</id><published>2013-03-25T01:44:00.004-07:00</published><updated>2013-03-25T01:44:27.355-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TO disable right click on any web page or image"/><title type='text'>TO disable right click on any web page or image</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-size: large;&quot;&gt;In  the body tag write property name &lt;span style=&quot;color: #351c75;&quot;&gt;oncontextmenu=&quot;return false&quot;
&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;this will stop right click on web page..
&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;same thing write on img tag to disable right click ..&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/1004156678652019705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/to-disable-right-click-on-any-web-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1004156678652019705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1004156678652019705'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/to-disable-right-click-on-any-web-page.html' title='TO disable right click on any web page or image'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-8145465602848833042</id><published>2013-03-02T01:48:00.003-08:00</published><updated>2013-03-07T20:09:30.042-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Add favicon in address bar"/><title type='text'>Add favicon in address bar </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-size: large;&quot;&gt;Place this code in head section of HTML section&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;link&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;rel&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;shortcut icon&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;   &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;~/favicon.ico&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;image/x-icon&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;link&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;rel&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;icon&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;atn&quot;&gt;    href&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;~/favicon.ico&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;image/ico&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;tag&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;tag&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;tag&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;and&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; here &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; web site that will convert any pic to icon&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;tag&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;tag&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;a href=&quot;http://www.html-kit.com/favicon/&quot;&gt;&lt;span class=&quot;pln&quot;&gt;http&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//www.html-kit.com/favicon/&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/8145465602848833042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/add-favicon-in-address-bar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8145465602848833042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/8145465602848833042'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/03/add-favicon-in-address-bar.html' title='Add favicon in address bar '/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-4535470162408928951</id><published>2013-02-07T22:31:00.000-08:00</published><updated>2013-02-07T22:31:02.522-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="login page loads into iframe after session"/><category scheme="http://www.blogger.com/atom/ns#" term="prevent form view outside iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="Prevent visitors from opening a page outside iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="redirects login page after session expiry"/><title type='text'>Prevent visitors from opening a page outside iframe</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;span style=&quot;font-size: large;&quot;&gt;Write this java script in each page those resides in iframe&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;if ( window.self == window.top )&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;{&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;// not in a frame&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&amp;nbsp;window.location = &quot;Default.aspx&quot;; &lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;}&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&amp;nbsp;else {&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;//in a frame&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;}&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;..........................&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: large;&quot;&gt;We can use the same concept &lt;span style=&quot;font-size: large;&quot;&gt;for Login page&lt;span style=&quot;font-size: large;&quot;&gt; in &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Situa&lt;span style=&quot;font-size: large;&quot;&gt;tion like.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;After session expiry login page &lt;span style=&quot;font-size: large;&quot;&gt;rendering into ifram&lt;span style=&quot;font-size: large;&quot;&gt;e.&lt;/span&gt;&lt;/span&gt;we can avoid this by write this script in&lt;span style=&quot;font-size: large;&quot;&gt;to login page&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;if ( window.self != window.top )&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;{&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;// I&lt;span style=&quot;font-size: large;&quot;&gt;n&lt;/span&gt; a frame&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&amp;nbsp;window.location = &quot;Login.aspx&quot;; &lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;}&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&amp;nbsp;else {&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: large;&quot;&gt;//N&lt;/span&gt;ot in a frame&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;}&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/4535470162408928951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/02/prevent-visitors-from-opening-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/4535470162408928951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/4535470162408928951'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/02/prevent-visitors-from-opening-page.html' title='Prevent visitors from opening a page outside iframe'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-6800174381649989858</id><published>2013-02-03T22:13:00.002-08:00</published><updated>2013-02-03T22:19:58.427-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bind only 25 characters label or text in Gridview control"/><category scheme="http://www.blogger.com/atom/ns#" term="limit characters in controls inside gridview control"/><title type='text'>Bind only 25 characters to the Label Text in Gridview control</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-size: large;&quot;&gt;First use template field rather than bound filed in Gridview, and bind using&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;lt;ItemTemplate&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;lt;asp:Label ID=&quot;lblName&quot; runat=&quot;server&quot;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Text=&#39; &amp;lt;%# Eval(&quot;NAME&quot;).ToString().Length &amp;gt; 25 ? Eval(&quot;NAME&quot;).ToString().Substring(0, 23)+&quot;..&quot;: Eval(&quot;NAME&quot;)%&amp;gt;&#39;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;lt;/ItemTemplate&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/6800174381649989858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/02/bind-only-25-characters-label-or-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/6800174381649989858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/6800174381649989858'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/02/bind-only-25-characters-label-or-text.html' title='Bind only 25 characters to the Label Text in Gridview control'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4773920178185485440.post-1514292079147884352</id><published>2013-01-28T03:52:00.000-08:00</published><updated>2013-01-28T03:52:11.963-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="get keycode in IE"/><category scheme="http://www.blogger.com/atom/ns#" term="Getting Keycode Values in IE and other browsers"/><category scheme="http://www.blogger.com/atom/ns#" term="IE keycode is undefined"/><title type='text'>Getting KeyCode Values in IE and other browsers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code class=&quot;lang-javascript&quot;&gt;keycode = {

    getKeyCode : &lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt;(e) {
        &lt;span class=&quot;keyword&quot;&gt;var&lt;/span&gt; keycode = &lt;span class=&quot;keyword&quot;&gt;null&lt;/span&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code class=&quot;lang-javascript&quot;&gt;      //for IE &lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code class=&quot;lang-javascript&quot;&gt;     &amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;if&lt;/span&gt;(window.event) {
            keycode = window.event.keyCode;
        }&lt;span class=&quot;keyword&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code class=&quot;lang-javascript&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;&amp;nbsp;    &lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code class=&quot;lang-javascript&quot;&gt; //for other Browsers&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code class=&quot;lang-javascript&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;     else&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;if&lt;/span&gt;(e) {
            keycode = e.which;
        }
        &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; keycode;
    },

    getKeyCodeValue : &lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt;(keyCode, shiftKey) {
        shiftKey = shiftKey || &lt;span class=&quot;keyword&quot;&gt;false&lt;/span&gt;;
        &lt;span class=&quot;keyword&quot;&gt;var&lt;/span&gt; value = &lt;span class=&quot;keyword&quot;&gt;null&lt;/span&gt;;
        &lt;span class=&quot;keyword&quot;&gt;if&lt;/span&gt;(shiftKey === &lt;span class=&quot;keyword&quot;&gt;true&lt;/span&gt;) {
            value = &lt;span class=&quot;keyword&quot;&gt;this&lt;/span&gt;.modifiedByShift[keyCode];
        }&lt;span class=&quot;keyword&quot;&gt;else&lt;/span&gt; {
            value = &lt;span class=&quot;keyword&quot;&gt;this&lt;/span&gt;.keyCodeMap[keyCode];
        }
        &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; value;
    },

    getValueByEvent : &lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt;(e) {
        &lt;span class=&quot;keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;this&lt;/span&gt;.getKeyCodeValue(&lt;span class=&quot;keyword&quot;&gt;this&lt;/span&gt;.getKeyCode(e), e.shiftKey);
    },

    keyCodeMap : {
        &lt;span class=&quot;number&quot;&gt;8&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;backspace&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;9&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;tab&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;13&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;return&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;16&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;shift&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;17&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;ctrl&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;18&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;alt&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;19&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;pausebreak&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;20&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;capslock&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;27&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;escape&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;32&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot; &quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;33&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;pageup&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;34&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;pagedown&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;35&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;end&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;36&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;home&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;37&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;left&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;38&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;up&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;39&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;right&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;40&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;down&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;43&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;+&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;44&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;printscreen&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;45&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;insert&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;46&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;delete&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;48&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;0&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;49&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;1&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;50&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;2&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;51&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;3&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;52&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;4&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;53&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;5&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;54&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;6&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;55&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;7&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;56&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;8&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;57&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;9&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;59&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;;&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;61&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;=&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;65&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;a&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;66&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;b&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;67&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;c&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;68&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;d&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;69&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;e&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;70&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;71&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;g&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;72&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;h&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;73&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;i&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;74&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;j&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;75&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;k&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;76&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;l&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;77&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;m&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;78&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;n&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;79&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;o&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;80&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;p&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;81&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;q&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;82&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;r&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;83&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;s&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;84&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;t&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;85&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;u&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;86&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;v&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;87&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;w&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;88&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;x&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;89&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;y&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;90&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;z&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;96&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;0&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;97&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;1&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;98&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;2&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;99&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;3&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;100&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;4&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;101&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;5&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;102&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;6&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;103&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;7&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;104&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;8&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;105&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;9&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;106&lt;/span&gt;: &lt;span class=&quot;string&quot;&gt;&quot;*&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;107&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;+&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;109&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;-&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;110&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;.&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;111&lt;/span&gt;: &lt;span class=&quot;string&quot;&gt;&quot;/&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;112&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f1&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;113&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f2&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;114&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f3&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;115&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f4&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;116&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f5&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;117&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f6&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;118&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f7&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;119&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f8&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;120&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f9&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;121&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f10&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;122&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f11&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;123&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;f12&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;144&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;numlock&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;145&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;scrolllock&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;186&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;;&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;187&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;=&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;188&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;,&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;189&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;-&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;190&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;.&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;191&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;/&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;192&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;`&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;219&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;[&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;220&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;\\&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;221&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;]&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;222&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;&#39;&quot;&lt;/span&gt;
    },

    modifiedByShift : {
        &lt;span class=&quot;number&quot;&gt;192&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;~&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;48&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;)&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;49&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;!&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;50&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;@&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;51&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;#&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;52&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;$&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;53&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;%&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;54&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;^&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;55&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;&amp;amp;&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;56&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;*&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;57&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;(&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;109&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;_&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;61&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;+&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;219&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;{&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;221&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;}&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;220&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;|&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;59&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;:&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;222&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;\&quot;&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;188&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;&amp;lt;&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;189&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;&amp;gt;&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;191&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;?&quot;&lt;/span&gt;,
        &lt;span class=&quot;number&quot;&gt;96&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;insert&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;97&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;end&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;98&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;down&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;99&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;pagedown&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;100&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;left&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;102&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;right&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;103&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;home&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;104&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;up&quot;&lt;/span&gt;, &lt;span class=&quot;number&quot;&gt;105&lt;/span&gt;:&lt;span class=&quot;string&quot;&gt;&quot;pageup&quot;&lt;/span&gt;
    }

};&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetsqltips.blogspot.com/feeds/1514292079147884352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/01/getting-keycode-values-in-ie-and-other.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1514292079147884352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4773920178185485440/posts/default/1514292079147884352'/><link rel='alternate' type='text/html' href='http://dotnetsqltips.blogspot.com/2013/01/getting-keycode-values-in-ie-and-other.html' title='Getting KeyCode Values in IE and other browsers'/><author><name>shibin</name><uri>http://www.blogger.com/profile/13896066021665108884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>