<?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-4250057917472816642</id><updated>2024-09-12T04:04:44.211-07:00</updated><category term="Asp.net"/><category term="C#"/><category term="JQuery"/><category term="Sql Server"/><title type='text'>Programmer</title><subtitle type='html'>Useful Tips and Tricks</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4250057917472816642.post-9070684437641212918</id><published>2012-05-24T10:48:00.001-07:00</published><updated>2012-05-31T10:56:59.756-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Value types and Reference types</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Value types and Reference types&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Here are the key points:&lt;br /&gt;
■ The value of a reference type expression (a variable for example) is a reference,&lt;br /&gt;
not an object.&lt;br /&gt;
■ References are like URLs—they are small pieces of data that let you access the&lt;br /&gt;
real information.&lt;br /&gt;
■ The value of a value type expression is the actual data.&lt;br /&gt;
■ There are times when value types are more efficient than reference types, and&lt;br /&gt;
vice versa.&lt;br /&gt;
■ Reference type objects are always on the heap, but value type values can be on&lt;br /&gt;
either the stack or the heap, depending on context.&lt;br /&gt;
■ When a reference type is used as a method parameter, by default the parameter&lt;br /&gt;
is passed by value—but the value itself is a reference.&lt;br /&gt;
■ Value type values are boxed when reference type behavior is needed; unboxing&lt;br /&gt;
is the reverse process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Post By : Dipen Shah&lt;br /&gt;
Blog By : Dipen Shah&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/9070684437641212918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/value-types-and-reference-types.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/9070684437641212918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/9070684437641212918'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/value-types-and-reference-types.html' title='Value types and Reference types'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-7599122327481325707</id><published>2012-05-24T10:43:00.003-07:00</published><updated>2012-05-24T10:43:46.936-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Boxing and Unboxing - c#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;What is concept of Boxing and Unboxing ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Boxing and unboxing act like bridges between value type and reference types. When we convert&lt;/div&gt;
&lt;div&gt;
value type to a reference type it’s termed as boxing. Unboxing is just vice-versa. When an object&lt;/div&gt;
&lt;div&gt;
box is cast back to its original value type, the value is copied out of the box and into the&lt;/div&gt;
&lt;div&gt;
appropriate storage location.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Example&lt;/b&gt;: of boxing and unboxing where integer data type are converted in to object&lt;/div&gt;
&lt;div&gt;
and then vice versa.&lt;/div&gt;
&lt;div&gt;
int i = 1;&lt;/div&gt;
&lt;div&gt;
object obj = i; // boxing&lt;/div&gt;
&lt;div&gt;
int j = (int) obj; // unboxing&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Post By : Urvish Patel&lt;/div&gt;
&lt;div&gt;
Blog By : Dipen Shah&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/7599122327481325707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/boxing-and-unboxing-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/7599122327481325707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/7599122327481325707'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/boxing-and-unboxing-c.html' title='Boxing and Unboxing - c#'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-1383456283995274349</id><published>2012-05-22T10:21:00.001-07:00</published><updated>2012-05-22T10:21:06.133-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>What is shadowing?</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;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;When
two elements in a program have same name, one of them can hide and shadow the
other&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;one.
So in such cases the element, which shadowed the main element, is referenced.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;Below
is a sample code, there are two classes “Parent” and “ShadowedParent”. In&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;“Parent”,
there is a variable “x” which is a integer. “ShadowedParent” overrides&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%;&quot;&gt;“Parent” and shadows the “x”
variable to a string.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%;&quot;&gt;Example:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;Public
Class Parent&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;Public
x As Integer&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;End
Class&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;Public
Class ShadowedParent&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;Inherits
Parent&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;Public
Shadows x As String&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%;&quot;&gt;End Class&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%;&quot;&gt;Difference
between Shadowing and Overriding:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;• Overriding
redefines only the implementation while shadowing redefines the whole&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;element.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt;&quot;&gt;• In
overriding derived classes can refer the parent class element by using “ME”
keyword,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%;&quot;&gt;but in shadowing you can
access it by “MYBASE”.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;Post By : Urvish Patel&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;Blog By : Dipen Shah&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Learn New... &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/1383456283995274349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/what-is-shadowing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/1383456283995274349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/1383456283995274349'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/what-is-shadowing.html' title='What is shadowing?'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-7099040416757584216</id><published>2012-05-22T10:17:00.002-07:00</published><updated>2012-05-22T10:17:32.770-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Retrieving the content of a GridView cell.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;You often need to retrieve the gridview cell content and you write the long code in your code behind.&lt;br /&gt;
&lt;br /&gt;
Below mentioned script are used to retrieve the cell content of gridview on click.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
$(document).ready(function() {&lt;br /&gt;
$(&quot;#&amp;lt;%=GridView.ClientID%&amp;gt; tr&quot;).filter(&quot;:not(:has(table,
th))&quot;).click(function(e)&lt;br /&gt;
{&lt;br /&gt;
var $cell = $(e.target).closest(&quot;td&quot;);
$(&quot;#&amp;lt;%=GridView1.ClientID%&amp;gt; td&quot;).
removeClass(&quot;highlight&quot;);
$cell.addClass(&quot;highlight&quot;);
$(&quot;#message&quot;).text(&#39;You have selected: &#39; + $cell.
text());&lt;br /&gt;
});&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Post By : Dipen Shah&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Blog By : Dipen Shah&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Stay Connected... &lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/7099040416757584216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/retrieving-content-of-gridview-cell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/7099040416757584216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/7099040416757584216'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/retrieving-content-of-gridview-cell.html' title='Retrieving the content of a GridView cell.'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-5781283806244930459</id><published>2012-05-21T10:25:00.000-07:00</published><updated>2012-05-21T10:25:02.114-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>Delete Duplicate Data - SQL</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;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: TT14Et00; font-size: 12pt; line-height: 115%;&quot;&gt;Delete
Duplicate Data without Using primary key and Identity key:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: TT14Et00; font-size: 12pt; line-height: 115%;&quot;&gt;Example:&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt; width: 19.45pt;&quot; valign=&quot;top&quot; width=&quot;26&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Id&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Name&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt; width: 19.45pt;&quot; valign=&quot;top&quot; width=&quot;26&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Test&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt; width: 19.45pt;&quot; valign=&quot;top&quot; width=&quot;26&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Test&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt; width: 19.45pt;&quot; valign=&quot;top&quot; width=&quot;26&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;padding: .75pt .75pt .75pt .75pt;&quot; valign=&quot;top&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Test&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;USE&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; Test&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;Go&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;WITH&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; Duplicates &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; Name&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;Id&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: magenta;&quot;&gt;ROW_NUMBER&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;OVER &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;PARTITION&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; Id&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;Name &lt;span style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; Id&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;RowNum&#39;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; dbo&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;TestDuplicates&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;delete&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; Duplicates &lt;span style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; RowNum&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; dbo&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;TestDuplicates&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;b&gt;After using this:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1&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; Test&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Post By : Urvish Patel&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Blog By : Dipen Shah&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Stay Tuned...We rocked... &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/5781283806244930459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/delete-duplicate-data-sql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/5781283806244930459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/5781283806244930459'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/delete-duplicate-data-sql.html' title='Delete Duplicate Data - SQL'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-2283896782785045879</id><published>2012-05-21T10:04:00.001-07:00</published><updated>2012-05-21T10:05:15.556-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Validating CheckboxList using Jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Below script is useful when you want to validate the checkboxlist control.&lt;br /&gt;
You just need to add below function on page. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
function CheckBoxList1_Validation(sender, args)&lt;br /&gt;
{&lt;br /&gt;
args.IsValid = false;&lt;br /&gt;
var cnt = $(&quot;#CheckBoxList1 input:checked&quot;).length;&lt;br /&gt;
args.IsValid = (cnt &amp;gt;= 3);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Post By : Dipen Shah&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Blog By : Dipen Shah&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Stay Tuned...&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/2283896782785045879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/validating-checkboxlist-using-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/2283896782785045879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/2283896782785045879'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/validating-checkboxlist-using-jquery.html' title='Validating CheckboxList using Jquery'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-4141383819232238986</id><published>2012-05-20T00:27:00.002-07:00</published><updated>2012-05-21T09:52:15.609-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>Self Join</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A &lt;b&gt;self-join&lt;/b&gt; is simply a normal
SQL join that joins one table to itself. This is accomplished by using table
name aliases to give each instance of the table a separate name. Joining a
table to itself can be useful when you want to compare values in a column to
other values in the same column.&lt;br /&gt;
&amp;nbsp;A join in which records from a table are
combined with other records from the same table when there are matching values
in the joined fields. A self-join can be an inner join or an outer join. A
table is joined to itself based upon a field or combination of fields that have
duplicate data in different records. The data-type of the inter-related columns
must be of the same type or needs to cast them in same type.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Examples&lt;/b&gt;:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;USE&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; ProductManagement&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Go&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;DISTINCT&lt;/span&gt;
pv1&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductID&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;
pv1&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;CategoryID&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; dbo&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;Products
pv1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt;
dbo&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;Products pv2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; pv1&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductID
&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; pv2&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductID&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; pv1&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;CategoryID
&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; pv2&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;CategoryID&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; pv1&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;ProductID&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;Post By : Urvish Patel&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;Blog By : Dipen Shah&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;b&gt;Stay tuned for more...&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/4141383819232238986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/self-join.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/4141383819232238986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/4141383819232238986'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/self-join.html' title='Self Join'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-5223269153014897201</id><published>2012-05-19T22:50:00.000-07:00</published><updated>2012-05-19T22:51:45.822-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>Get File Name Without Extention</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Below code in asp.net get the filename without extention.&lt;br /&gt;
&lt;br /&gt;
DirectoryInfo directoryInfo = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.SendTo));
        directoryInfo.GetFiles().Select(file =&amp;gt; Path.GetFileNameWithoutExtension(file.Name)).ToArray();&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;b&gt;Posted By : Dipen Shah&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Stay Tuned...&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/5223269153014897201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/get-file-name-without-extention.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/5223269153014897201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/5223269153014897201'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/get-file-name-without-extention.html' title='Get File Name Without Extention'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-10275389891359605</id><published>2012-05-19T22:11:00.000-07:00</published><updated>2012-05-19T22:21:22.576-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>Differance Between CLR, CTS, CLS</title><content type='html'>&lt;b&gt;What is a CLR?&lt;/b&gt;
Full form of CLR is Common Language Runtime and it forms the heart of the .NET
framework.All Languages have runtime and its the responsibility of the runtime to take care of
the code execution of the program. Java has Java Virtual Machine, Similarly .NET has CLR.The responsibilities of CLR are Garbage Collection, Code Access Security, Code Verification, IL( Intermediate language ).
&lt;b&gt;&lt;br/&gt;
What is a CTS?&lt;/b&gt;
In order that two language communicate smoothly CLR has CTS (Common Type System). In order that two different languages can communicate Microsoft introduced Common Type System. So “Integer” datatype in VB6 and “int” datatype in
C++ will convert it to System.int32 which is datatype of CTS.
&lt;br/&gt;
&lt;b&gt;What is a CLS(Common Language Specification)?&lt;/b&gt;
This is a subset of the CTS which all .NET languages are expected to support.Microsoft has defined CLS which are nothing but guidelines that language to follow
so that it can communicate with other .NET languages in a seamless manner.&lt;br/&gt;

&lt;b&gt;Post By : Dipen Shah
Stay Tuned&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/10275389891359605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/differance-between-clr-cts-cls.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/10275389891359605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/10275389891359605'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/differance-between-clr-cts-cls.html' title='Differance Between CLR, CTS, CLS'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4250057917472816642.post-1067621401291090964</id><published>2012-05-19T11:00:00.000-07:00</published><updated>2012-05-19T11:00:26.526-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>Always match datatypes in code with the columns in the database</title><content type='html'>It&#39;s important to make sure that your datatypes match across all layers in your application. For example, if a column&#39;s datatype is VarChar(50), you should have the code in queries and stored procedures use local variables of the same datatype.&lt;br /&gt;
&lt;br /&gt;
Similarly, the ADO.NET code in the data layer should specify the same datatype and length.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Posted By : Dipen Shah&lt;br /&gt;
Stay Tuned&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/1067621401291090964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/always-match-datatypes-in-code-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/1067621401291090964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/1067621401291090964'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/always-match-datatypes-in-code-with.html' title='Always match datatypes in code with the columns in the database'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-5408702458107565452</id><published>2012-05-19T03:48:00.004-07:00</published><updated>2012-05-19T03:49:40.329-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'></title><content type='html'>&lt;b&gt;Difference between Web.Config and Machine.Config File&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Machine.Config:&lt;/b&gt;&lt;br /&gt;
i) This is automatically installed when you install Visual Studio. Net.&lt;br /&gt;
ii) This is also called machine level configuration file.&lt;br /&gt;
iii)Only one machine.config file exists on a server.&lt;br /&gt;
iv) This file is at the highest level in the configuration hierarchy.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Web.Config:&lt;/b&gt;&lt;br /&gt;
i) This is automatically created when you create an ASP.Net web application project.&lt;br /&gt;
ii) This is also called application level configuration file.&lt;br /&gt;
iii)This file inherits setting from the machine.config&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Posted By : Dipen Shah&lt;br /&gt;
Stay Tuned&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/5408702458107565452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/difference-between-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/5408702458107565452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/5408702458107565452'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/difference-between-web.html' title=''/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-8125236355459859374</id><published>2012-05-19T03:38:00.001-07:00</published><updated>2012-05-19T03:49:55.131-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>ExecuteReader, ExecuteNonQuery and ExecuteScalar</title><content type='html'>&lt;b&gt;What is difference between ExecuteReader, ExecuteNonQuery and ExecuteScalar.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ExecuteReader &lt;/b&gt;: Use for accessing data. It provides a forward-only, read-only, connected recordset.&lt;br /&gt;
&lt;b&gt;ExecuteNonQuery&lt;/b&gt; : Use for data manipulation, such as Insert, Update, Delete.&lt;br /&gt;
&lt;b&gt;ExecuteScalar&lt;/b&gt; : Use for retriving 1 row 1 col. value., i.e. Single value. eg: for retriving aggregate function. It is faster than other ways of retriving a single value from DB.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Posted By : Dipen Shah&lt;br /&gt;
Stay Connected&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/8125236355459859374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/executereader-executenonquery-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/8125236355459859374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/8125236355459859374'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/executereader-executenonquery-and.html' title='ExecuteReader, ExecuteNonQuery and ExecuteScalar'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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-4250057917472816642.post-3984479355770632624</id><published>2012-05-19T03:15:00.007-07:00</published><updated>2012-05-19T03:50:08.692-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Disallowing cut/copy/paste operations on a TextBox</title><content type='html'>&lt;b&gt;Below is the simple jquery to not allow user to cut/copy/paste operations on a TextBox&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
$(document).ready(function() {&lt;br /&gt;
$(&#39;#&amp;lt;%=txtNewPwd.ClientID%&amp;gt;&#39;).bind(&#39;cut copy paste&#39;,&lt;br /&gt;
function(e) {&lt;br /&gt;
e.preventDefault();&lt;br /&gt;
alert(&amp;quot;Cut / Copy / Paste disabled in this textbox&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
$(&#39;#&amp;lt;%=txtConfirmNewPwd.ClientID%&amp;gt;&#39;).bind(&#39;cut copy&lt;br /&gt;
paste&#39;, function(e) {&lt;br /&gt;
e.preventDefault();&lt;br /&gt;
alert(&amp;quot;Cut / Copy / Paste disabled in this textbox&lt;br /&gt;
too!&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Post By : Dipen shah&lt;br /&gt;
Stay Tuned&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://readprogrammer.blogspot.com/feeds/3984479355770632624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/disallowing-cutcopypaste-operations-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/3984479355770632624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4250057917472816642/posts/default/3984479355770632624'/><link rel='alternate' type='text/html' href='http://readprogrammer.blogspot.com/2012/05/disallowing-cutcopypaste-operations-on.html' title='Disallowing cut/copy/paste operations on a TextBox'/><author><name>Neter</name><uri>http://www.blogger.com/profile/17476458866407504020</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>