<?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-4442150031402579885</id><updated>2024-11-06T08:26:47.225+05:30</updated><category term="asp.net"/><category term="sql"/><category term="C#"/><category term="SSRS"/><category term="Javascript"/><category term="Ajax"/><category term="SilverLight"/><category term="Web Service"/><category term="Window Service"/><category term="Builtin Function"/><category term="File Upload"/><category term="Format Date /Time"/><category term="Gridview"/><category term="IIS"/><category term="JQuerry"/><category term="Validation"/><category term="iTextSharp PDF"/><category term="web.config"/><category term="Global.asax"/><category term="HTTPS Page"/><category term="IP Address"/><category term="Interview Question"/><category term="Json"/><category term="Linq to sql"/><category term="MVC"/><category term="Progress bar"/><category term="Resource File"/><category term="Slide Show"/><category term="WCF"/><category term="WPF"/><category term="Windows Application"/><category term="XML"/><title type='text'>C#.NET ASP.NET Articles</title><subtitle type='html'>CSHARP Code Examples Samples Tutorials</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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>106</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4442150031402579885.post-8938039476794974146</id><published>2013-04-04T12:12:00.001+05:30</published><updated>2013-04-04T12:12:56.880+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Capturing the Enter key to cause a button click</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Let&#39;s explore two solutions to this problem. First, let us look at using JavaScript. With this solution, each textbox needs to have some JavaScript attached to the onKeyPress JavaScript event. I usually do this in the pageload method in the code-behind.&lt;br /&gt;
&lt;br /&gt;
if (!IsPostBack)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;txtboxFirstName.Attributes.Add(&quot;onKeyPress&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;doClick(&#39;&quot; + btnSearch.ClientID + &quot;&#39;,event)&quot;);&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: You pass into the JavaScript method the button&#39;s ClientID so that the JavaScript method can find the button and call its Click method.&lt;br /&gt;
&lt;br /&gt;
Next, we need a JavaScript method called doClick in the ASP.NET form.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SCRIPT type=text/javascript&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; function doClick(buttonName,e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //the purpose of this function is to allow the enter key to&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //point to the correct button to click.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var key;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(window.event)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key = window.event.keyCode; &amp;nbsp; &amp;nbsp; //IE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key = e.which; &amp;nbsp; &amp;nbsp; //firefox&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (key == 13)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Get the button the user wants to have clicked&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var btn = document.getElementById(buttonName);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (btn != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { //If we find the button click it&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.click();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event.keyCode = 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next solution is using a Panel control. In this case, the panel is doing all the work.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Collapse | Copy Code&lt;br /&gt;
&amp;lt;asp:Panel ID=&quot;panSearch&quot; runat=&quot;server&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DefaultButton=&quot;btnSearch&quot; Width=&quot;100%&quot; &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;table width=&quot;100%&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;First Name&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;td &amp;gt;&amp;lt;asp:TextBox ID=&quot;txtboxFirstName&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;runat=&quot;server&quot; &amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ...&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/8938039476794974146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/04/capturing-enter-key-to-cause-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/8938039476794974146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/8938039476794974146'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/04/capturing-enter-key-to-cause-button.html' title='Capturing the Enter key to cause a button click'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-7207670974017763153</id><published>2013-03-28T11:11:00.001+05:30</published><updated>2013-03-28T11:11:38.770+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Progress bar"/><title type='text'>Progress Bar in Update Panel in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Use below Code to have Progress Bar in ASP.net with C# using AJAX&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:UpdatePanel ID=&quot;UpdatePanel1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:UpdateProgress runat=&quot;server&quot; ID=&quot;UpdateProgress1&quot;&lt;br /&gt;
DynamicLayout=&quot;false&quot; AssociatedUpdatePanelID=&quot;UpdatePanel1&quot;&amp;gt;&lt;br /&gt;
&amp;lt;ProgressTemplate&amp;gt;&lt;br /&gt;
&amp;lt;img id=&quot;Img1&quot; runat=&quot;Server&quot; src=&quot;&amp;lt;Path of Gif or motion image file&amp;gt;&quot; height=&quot;12&quot; &amp;nbsp;alt=&quot;&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/ProgressTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:UpdateProgress&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:UpdatePanel&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/7207670974017763153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/03/progress-bar-in-update-panel-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7207670974017763153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7207670974017763153'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/03/progress-bar-in-update-panel-in-c.html' title='Progress Bar in Update Panel in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-3584020711187240865</id><published>2013-03-22T16:00:00.002+05:30</published><updated>2013-03-22T16:00:33.772+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'> Add RowNumber Column in Table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Hello I have a Table with column PageId and PageName.Now i want add one more column Rownumber while selecting data.&lt;br /&gt;
&lt;br /&gt;
So we can use the following querry.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;WITH tempTable as&lt;br /&gt;
&amp;nbsp; (&lt;br /&gt;
&amp;nbsp; &amp;nbsp; select ROW_NUMBER() Over(order by PageId) As RowNumber,* from tblPageInfo&lt;br /&gt;
&amp;nbsp; )&lt;br /&gt;
&amp;nbsp; select * from tempTable&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will list three column RowNumber,PageId,PageName&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/3584020711187240865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/03/add-rownumber-column-in-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3584020711187240865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3584020711187240865'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/03/add-rownumber-column-in-table.html' title=' Add RowNumber Column in Table'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-1948188454067974896</id><published>2013-03-22T15:56:00.004+05:30</published><updated>2013-03-22T15:56:54.003+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Gridview"/><title type='text'>Replace in Data binding Eval() in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Eval(&quot;ThumbnailCaption&quot;).ToString().Replace(&quot;X&quot;, String.Empty))&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/1948188454067974896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/03/replace-in-data-binding-eval-in-c.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1948188454067974896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1948188454067974896'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/03/replace-in-data-binding-eval-in-c.html' title='Replace in Data binding Eval() in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-3010614629861463140</id><published>2013-02-25T18:52:00.002+05:30</published><updated>2013-02-25T18:52:56.608+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Window Service"/><title type='text'>How to Start/Stop Service using Coding?</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;br /&gt;
ServiceController controller = ServiceController.GetServices().Where(s =&amp;gt; s.ServiceName == &quot;ServiceName&quot;).FirstOrDefault();&lt;br /&gt;
if (controller == null)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Service is missing.&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;br /&gt;
}&lt;br /&gt;
if (controller.Status == ServiceControllerStatus.Stopped)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;controller.Start();&lt;br /&gt;
}&lt;br /&gt;
else if (controller.Status == ServiceControllerStatus.Running)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;controller.Stop();&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/3010614629861463140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/02/how-to-startstop-service-using-coding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3010614629861463140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3010614629861463140'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/02/how-to-startstop-service-using-coding.html' title='How to Start/Stop Service using Coding?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-1023284996302801078</id><published>2013-01-24T18:56:00.001+05:30</published><updated>2013-01-24T18:56:34.727+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Window Service"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Application"/><title type='text'>cannot open window service on computer &#39;.&#39; in window application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Go &amp;nbsp;c://Program Files/ApplicationFolder/.exe Right click on .exe and go to Properties then go &lt;b&gt;Compability &lt;/b&gt;Tab and check &lt;b&gt;true &lt;/b&gt;to &lt;b&gt;Run this Program as an administrator Level.&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/1023284996302801078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/01/cannot-open-window-service-on-computer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1023284996302801078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1023284996302801078'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2013/01/cannot-open-window-service-on-computer.html' title='cannot open window service on computer &#39;.&#39; in window application'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-5685645534501103731</id><published>2012-12-14T17:02:00.004+05:30</published><updated>2012-12-14T17:02:45.538+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to Print webpage ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you want to print same page then just write the javascript.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;function print() {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; window.print();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;if you want to print another webpage from the current page then write below scrpt&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;function print(var str) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printWindow = window.open( &amp;nbsp;str,&quot;mywindow&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setTimeout(&#39;printWindow.print()&#39;, 3000);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setTimeout(&#39;printWindow.close()&#39;, 3000);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/5685645534501103731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/12/how-to-print-webpage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/5685645534501103731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/5685645534501103731'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/12/how-to-print-webpage.html' title='How to Print webpage ?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-6413195202500080790</id><published>2012-12-11T19:44:00.000+05:30</published><updated>2012-12-11T19:47:29.687+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Global.asax"/><category scheme="http://www.blogger.com/atom/ns#" term="HTTPS Page"/><title type='text'>How to use HTTPS secure Page in URL in some Pages.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
You may have to use https while Registration.&lt;br /&gt;
&lt;br /&gt;
Please Add the Below code in Global.asax Page.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; protected void Application_BeginRequest(object sender, EventArgs e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var currentUrl = System.Web.HttpContext.Current.Request.Url;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (currentUrl.AbsoluteUri.Contains(&quot;Registration&quot;))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!currentUrl.Scheme.Equals(Uri.UriSchemeHttps, StringComparison.CurrentCultureIgnoreCase))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //build the secure uri&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var secureUrlBuilder = new UriBuilder(currentUrl);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; secureUrlBuilder.Scheme = Uri.UriSchemeHttps;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //use the default port. &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; secureUrlBuilder.Port = string.IsNullOrEmpty(ConfigurationManager.AppSettings[&quot;HttpsPort&quot;].ToString()) ? 443 : Convert.ToInt32(ConfigurationManager.AppSettings[&quot;HttpsPort&quot;].ToString());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //redirect and end the response.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Web.HttpContext.Current.Response.Redirect(secureUrlBuilder.Uri.ToString());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/6413195202500080790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/12/how-to-use-https-secure-page-in-some.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/6413195202500080790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/6413195202500080790'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/12/how-to-use-https-secure-page-in-some.html' title='How to use HTTPS secure Page in URL in some Pages.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-3637922234909400556</id><published>2012-12-11T19:36:00.000+05:30</published><updated>2012-12-11T19:44:29.670+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to add JavaScript at runtime using C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px;&quot;&gt;string Script=@”function ShowName() { var txt=document.getElementById(‘txtName’); alert(‘Your name is: ‘+txt.value); }”;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px;&quot;&gt;Page.ClientScript.RegisterClientScriptBlock(this.GetType(), “ShowName”, Script, true);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/3637922234909400556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/12/how-to-add-javascript-at-runtime-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3637922234909400556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3637922234909400556'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/12/how-to-add-javascript-at-runtime-using-c.html' title='How to add JavaScript at runtime using C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-7909285445297227398</id><published>2012-11-07T15:41:00.000+05:30</published><updated>2012-11-07T15:41:22.724+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Sorting XML in C# alphabetically and by order</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: none; color: #666666; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font: inherit; line-height: 21px; list-style-type: none; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Snippet&lt;/div&gt;
&lt;pre style=&quot;background-attachment: scroll; background-color: #ffe6b7; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: none; direction: ltr; font-family: Consolas; font: inherit; list-style-type: none; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System;
&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Linq;
&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Xml&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Linq;
 
&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;ThrowAwayCSConsole
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Program&lt;/span&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;&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt;&amp;nbsp;Main(&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;[]&amp;nbsp;args)
&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;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&amp;nbsp;xml&amp;nbsp;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@&quot;&amp;lt;?xml&amp;nbsp;version=&quot;&quot;1.0&quot;&quot;&amp;nbsp;encoding=&quot;&quot;UTF-8\&quot;&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&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;lt;websites&amp;gt;&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&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;&amp;nbsp;&amp;lt;site&amp;nbsp;language=&quot;&quot;Spanish&quot;&quot;&amp;nbsp;name=&quot;&quot;Excélsior&quot;&quot;&amp;nbsp;order=&quot;&quot;2&quot;&quot;&amp;gt;http://www.excelsior.com.mx/&amp;lt;/site&amp;gt;&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&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;&amp;nbsp;&amp;lt;site&amp;nbsp;language=&quot;&quot;Japanese&quot;&quot;&amp;nbsp;name=&quot;&quot;TOKYO&amp;nbsp;Web&quot;&quot;&amp;nbsp;order=&quot;&quot;3&quot;&quot;&amp;gt;http://www.tokyo-np.co.jp/&amp;lt;/site&amp;gt;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&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;&amp;nbsp;&amp;lt;site&amp;nbsp;language=&quot;&quot;Italian&quot;&quot;&amp;nbsp;name=&quot;&quot;Corriere&amp;nbsp;della&amp;nbsp;Sera&quot;&quot;&amp;nbsp;order=&quot;&quot;1&quot;&quot;&amp;gt;http://www.corriere.it/&amp;lt;/site&amp;gt;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&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;&amp;nbsp;&amp;lt;site&amp;nbsp;language=&quot;&quot;Spanish&quot;&quot;&amp;nbsp;name=&quot;&quot;SpanishTest1&quot;&quot;&amp;nbsp;order=&quot;&quot;4&quot;&quot;&amp;gt;www.spanishtest1.com&amp;lt;/site&amp;gt;&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&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;lt;/websites&amp;gt;&quot;&lt;/span&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;&lt;span style=&quot;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;XDocument&lt;/span&gt;&amp;nbsp;xdoc&amp;nbsp;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;XDocument&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Parse(xml);
&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;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;XDocument&lt;/span&gt;&amp;nbsp;xNewDoc&amp;nbsp;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: #400080; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;XDocument&lt;/span&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;xNewDoc&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Add(xdoc&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Root);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xNewDoc&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Root&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;RemoveNodes();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xNewDoc&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Root&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Add(xdoc&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Root&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Elements()&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;OrderBy(e&amp;nbsp;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;e&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Attribute(&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;language&quot;&lt;/span&gt;)&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;Value));
 
&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;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;WriteLine(&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Before:&amp;nbsp;\r\n{0}&quot;&lt;/span&gt;,&amp;nbsp;xdoc&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;ToString());
&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;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;WriteLine();
&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;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;WriteLine(&lt;span style=&quot;border: 0px; color: #259241; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;After:&amp;nbsp;\r\n{0}&quot;&lt;/span&gt;,&amp;nbsp;xNewDoc&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;ToString());
&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;border: 0px; color: #305fb6; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #2e53d1; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;ReadLine();
&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;/pre&gt;
&lt;div style=&quot;background-color: white; border: none; color: #666666; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font: inherit; line-height: 21px; list-style-type: none; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: none; color: #666666; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font: inherit; line-height: 21px; list-style-type: none; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Which produces this output:&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: none; color: #666666; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font: inherit; line-height: 21px; list-style-type: none; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font: inherit; line-height: 21px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre style=&quot;border: none; direction: ltr; font: inherit; list-style-type: none; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Before:
&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;websites&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Spanish&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Excélsior&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;http://www.excelsior.com.mx/&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Japanese&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TOKYO Web&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;http://www.tokyo-np.co.jp/&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Italian&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Corriere della Sera&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;http://www.corriere.it/&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Spanish&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SpanishTest1&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;www.spanishtest1.com&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;websites&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;

After:
&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;websites&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Italian&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Corriere della Sera&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;http://www.corriere.it/&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Japanese&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TOKYO Web&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;http://www.tokyo-np.co.jp/&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Spanish&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Excélsior&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;http://www.excelsior.com.mx/&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Spanish&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SpanishTest1&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;border: 0px; color: red; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;www.spanishtest1.com&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;site&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;border: 0px; color: #a31515; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;websites&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: 14px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/7909285445297227398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/11/sorting-xml-in-c-alphabetically-and-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7909285445297227398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7909285445297227398'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/11/sorting-xml-in-c-alphabetically-and-by.html' title='Sorting XML in C# alphabetically and by order'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-5017454067060776672</id><published>2012-10-29T19:35:00.001+05:30</published><updated>2012-10-29T19:51:27.698+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="IP Address"/><title type='text'>How to Get IP Address of our own Machine..</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
string strHostName = &quot;&quot;;&lt;br /&gt;
strHostName = System.Net.Dns.GetHostName();&lt;br /&gt;
&lt;br /&gt;
IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);&lt;br /&gt;
&lt;br /&gt;
IPAddress[] addr = ipEntry.AddressList;&lt;br /&gt;
&lt;br /&gt;
string ip= addr[addr.Length - 1].ToString();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to Retrive True IP Address then&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
string IPAddress = Request.ServerVariables[&quot;HTTP_X_FORWARDED_FOR&quot;];&lt;br /&gt;
if (IPAddress == null) //may be the HTTP_X_FORWARDED_FOR is null&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IPAddress = Request.ServerVariables[&quot;REMOTE_ADDR&quot;];//we can use REMOTE_ADDR&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/5017454067060776672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/10/how-to-get-ip-address-of-our-own-machine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/5017454067060776672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/5017454067060776672'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/10/how-to-get-ip-address-of-our-own-machine.html' title='How to Get IP Address of our own Machine..'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-3605275926599355566</id><published>2012-10-16T18:15:00.002+05:30</published><updated>2012-10-16T18:25:57.549+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuerry"/><title type='text'>Triggering an Event in Jquery with hyperlink href is firing only first time.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Before some days back i have an issue with my Jquerry.I have an hover Event and in that i am Triggering an Click Event.but the Problem is that it execute only first it will not triggering second time.The code is like this&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $(document).ready(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;.various1&quot;).fancybox().hover(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.click();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
so this code is execute for first time when i hover the image.so Replace above code with this it will worked.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $(document).ready(function () {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;.various1&quot;).fancybox().hover(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (this.click) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.click();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if (document.createEvent) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (event.target !== this) {&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; &amp;nbsp; var evt = document.createEvent(&quot;MouseEvents&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; &amp;nbsp; evt.initMouseEvent(&quot;click&quot;, true, true, window,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0, 0, 0, 0, 0, false, false, false, false, 0, null);&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; &amp;nbsp; var allowDefault = this.dispatchEvent(evt);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/3605275926599355566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/10/triggering-event-in-jquerry-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3605275926599355566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3605275926599355566'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/10/triggering-event-in-jquerry-with.html' title='Triggering an Event in Jquery with hyperlink href is firing only first time.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-9023289552378389932</id><published>2012-09-26T15:29:00.001+05:30</published><updated>2012-09-26T15:31:40.270+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>Find Current Year Start Date and End Date in SQL?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
select &amp;nbsp;DATEADD(yy, DATEDIFF(yy,0,getdate()), 0)&#39;Start Date &#39;,&lt;br /&gt;
DATEADD(dd,-1,DATEADD(yy,0,DATEADD(yy,DATEDIFF(yy,0,getdate())+1,0))) &#39;End Date&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px; font-weight: bold;&quot;&gt;Output&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Start Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;End Date&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;2012-01-01 00:00:00.000&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;2012-12-31 00:00:00.000&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/9023289552378389932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/09/find-current-year-start-date-and-end.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/9023289552378389932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/9023289552378389932'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/09/find-current-year-start-date-and-end.html' title='Find Current Year Start Date and End Date in SQL?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-1299418140726035199</id><published>2012-09-26T15:26:00.002+05:30</published><updated>2012-09-26T15:26:58.795+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>Find Current QUARTER Start Date and End Date in SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
SELECT &amp;nbsp;DATEADD(qq, DATEDIFF(qq, 0, GETDATE()), &amp;nbsp;0)&#39;Start Date&#39;,DATEADD(qq, DATEDIFF(qq, - 1, GETDATE()), - 1)&#39;End Date&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Output:&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Start Date&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&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;End Date&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;2012-07-01 00:00:00.000&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;2012-09-30 00:00:00.000&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/1299418140726035199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/09/find-current-quarter-start-date-and-end.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1299418140726035199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1299418140726035199'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/09/find-current-quarter-start-date-and-end.html' title='Find Current QUARTER Start Date and End Date in SQL'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-1225701722692754075</id><published>2012-09-17T19:57:00.002+05:30</published><updated>2012-09-17T19:58:11.119+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Builtin Function"/><category scheme="http://www.blogger.com/atom/ns#" term="SSRS"/><title type='text'>Set Current Month,Year as a Default Parameter in SSRS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; Set Default value to Parameter &amp;nbsp;@Year=Year(Now())&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set Default value to Parameter @Month=Month(Today)(This gives you integer value of Month 1 to 12) &lt;b&gt;or &lt;/b&gt;&amp;nbsp;=MonthName(Month(Now)) (This gives you the string value like &lt;b&gt;January,February,March etc.&lt;/b&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please Note that you have to add value in Parameter.&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/1225701722692754075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/09/set-current-monthyear-as-default.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1225701722692754075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/1225701722692754075'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/09/set-current-monthyear-as-default.html' title='Set Current Month,Year as a Default Parameter in SSRS'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-2599099344779670123</id><published>2012-08-07T18:30:00.001+05:30</published><updated>2012-08-07T18:33:37.767+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>Crosstab queries using PIVOT in SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Problem&lt;/h3&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
In SQL Server 2000 there was not a simple way to create cross-tab queries, but a new option in SQL Server 2005 has made this a bit easier. We took a look at how to create cross-tab queries in SQL Server 2000 in this&amp;nbsp;&lt;a href=&quot;http://www.mssqltips.com/sqlservertip/937/cross-tab-queries-with-sql-server-2000/&quot;&gt;previous tip&lt;/a&gt;&amp;nbsp;and in this tip we will look at this new feature in SQL Server 2005 to allow you produce cross-tab results.&lt;/div&gt;
&lt;h2 style=&quot;color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14pt; font-weight: bold;&quot;&gt;
Solution&lt;/h2&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
With SQL Server 2005 a lot of new features have been introduced. One of these new features is&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/ms177410.aspx&quot; target=&quot;_blank&quot;&gt;PIVOT&lt;/a&gt;&lt;/b&gt;.&amp;nbsp; What this allows you to do is to turn query results on their side, so instead of having results listed down like the listing below, you have results listed across.&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; id=&quot;table1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;b&gt;SalesPerson&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;b&gt;Product&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;b&gt;SalesAmount&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Bob&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Pickles&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$100.00&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Sue&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Oranges&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$50.00&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Bob&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Pickles&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$25.00&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Bob&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Oranges&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$300.00&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Sue&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Oranges&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$500.00&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
With a straight query the query results would be listed down, but the ideal solution would be to list the Products across the top for each SalesPerson, such as the following:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; id=&quot;table2&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;b&gt;SalesPerson&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;b&gt;Oranges&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;b&gt;Pickles&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Bob&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$300.00&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$125.00&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;Sue&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;$550.00&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
To use PIVOT you need to understand the data and how you want the data displayed.&amp;nbsp; First you have the data rows, such as SalesPerson and the columns, such as the Products and then the values to display for each cross section.&amp;nbsp; Here is a simple query that allows us to pull the cross-tab results.&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; id=&quot;table3&quot; style=&quot;width: 75%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;SELECT SalesPerson, [Oranges] AS Oranges, [Pickles] AS Pickles&lt;br /&gt;FROM&lt;br /&gt;(SELECT SalesPerson, Product, SalesAmount&lt;br /&gt;FROM ProductSales ) ps&lt;br /&gt;PIVOT&lt;br /&gt;(&lt;br /&gt;SUM (SalesAmount)&lt;br /&gt;FOR Product IN&lt;br /&gt;( [Oranges], [Pickles])&lt;br /&gt;) AS pvt&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
&lt;i&gt;&lt;b&gt;So how does this work?&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
There are three pieces that need to be understood in order to construct the query.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;(1) The SELECT statement&lt;ul&gt;
&lt;li&gt;&lt;b&gt;SELECT SalesPerson, [Oranges] AS Oranges, [Pickles] AS Pickles&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;This portion of the query selects the three columns for the final result set (SalesPerson, Oranges, Pickles)&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;(2) The query that pulls the raw data to be prepared&lt;ul&gt;
&lt;li&gt;(&lt;b&gt;SELECT SalesPerson, Product, SalesAmount FROM ProductSales) ps&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;This query pulls all the rows of data that we need to create the cross-tab results.&amp;nbsp; The (ps) after the query is creating a temporary table of the results that can then be used to satisfy the query for step 1.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;(3) The PIVOT expression&lt;ul&gt;
&lt;li&gt;&lt;b&gt;PIVOT (SUM (SalesAmount) FOR Product IN ( [Oranges], [Pickles]) ) AS pvt&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;This query does the actual summarization and puts the results into a temporary table called pvt&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;
Another key thing to notice in here is the use of the square brackets [ ] around the column names in both the SELECT in part (1) and the IN in part (3).&amp;nbsp; These are key, because the pivot operation is treating the values in these columns as column names and this is how the breaking and grouping is done to display the data.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/2599099344779670123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/08/crosstab-queries-using-pivot-in-sql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/2599099344779670123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/2599099344779670123'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/08/crosstab-queries-using-pivot-in-sql.html' title='Crosstab queries using PIVOT in SQL Server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-3341921217791915327</id><published>2012-07-30T16:42:00.000+05:30</published><updated>2012-07-30T16:51:56.364+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Format Date /Time"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>How to format datetime &amp; date in Sql ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px; font-weight: bold;&quot;&gt;Introduction:&lt;/span&gt;&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp;Lets see one by one with Example.&lt;/span&gt;&lt;/h4&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 100) – mon dd yyyy hh:mmAM (or PM)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&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;– Jul &amp;nbsp;30 2012 11:01AM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 101) – mm/dd/yyyy - 30/07/2012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 102) – yyyy.mm.dd – 2012.30.07 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 103) – dd/mm/yyyy&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 104) – dd.mm.yyyy&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 105) – dd-mm-yyyy&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 106) – dd mon yyyy&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 107) – mon dd, yyyy&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 108) – hh:mm:ss&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 109) – mon dd yyyy hh:mm:ss:mmmAM (or PM)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&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;– Oct &amp;nbsp;2 2012 11:02:44:013AM &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 110) – mm-dd-yyyy&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 111) – yyyy/mm/dd&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 112) – yyyymmdd&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 113) – dd mon yyyy hh:mm:ss:mmm&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&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;– 02 Oct 2012 11:02:07:577 &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 114) – hh:mm:ss:mmm(24h)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 120) – yyyy-mm-dd hh:mm:ss(24h)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 121) – yyyy-mm-dd hh:mm:ss.mmm&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar, getdate(), 126) – yyyy-mm-ddThh:mm:ss.mmm&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&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;– 2012-30-07T10:52:47.513&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;– SQL create different date styles with t-sql string functions&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT replace(convert(varchar, getdate(), 111), ‘/’, ‘ ‘) – yyyy mm dd&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT convert(varchar(7), getdate(), 126) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; – yyyy-mm&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;SELECT right(convert(varchar, getdate(), 106), 8) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;– mon yyyy&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/3341921217791915327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-format-datetime-date-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3341921217791915327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3341921217791915327'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-format-datetime-date-in-sql.html' title='How to format datetime &amp; date in Sql ?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-4810326463282123333</id><published>2012-07-30T15:20:00.002+05:30</published><updated>2012-07-30T16:43:04.983+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Format Date /Time"/><category scheme="http://www.blogger.com/atom/ns#" term="SSRS"/><title type='text'>Default values for a date parameter in SSRS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;We can use sql queries or some of the cool expressions available in SSRS to set default date parameters:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set First Day of previous week (Monday)&lt;br /&gt;
=DateAdd(DateInterval.Day, -6,DateAdd(DateInterval.Day, 1-Weekday(today),Today))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set Last Day of previous week (Sunday)&lt;br /&gt;
=DateAdd(DateInterval.Day, -0,DateAdd(DateInterval.Day, 1-Weekday(today),Today))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set First Day of Current Week (Monday)&lt;br /&gt;
=DateAdd(&quot;d&quot;, 1 - DatePart(DateInterval.WeekDay, Today(),FirstDayOfWeek.Monday), Today())&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set Last Day of Current Week (Sunday)&lt;br /&gt;
=DateAdd(&quot;d&quot; ,7- DatePart(DateInterval.WeekDay,Today(),FirstDayOfWeek.Monday),Today())&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set First Date of last month&lt;br /&gt;
=DateAdd(&quot;m&quot;, -1, DateSerial(Year(Now()), Month(Now()), 1))&lt;br /&gt;
&lt;br /&gt;
Set Last date of last month&lt;br /&gt;
=DateAdd(&quot;d&quot;, -1, DateSerial(Year(Now()), Month(Now()), 1))&lt;br /&gt;
&lt;br /&gt;
Set First date of current month&lt;br /&gt;
=DateSerial(Year(Now()), Month(Now()), 1)&lt;br /&gt;
&lt;br /&gt;
Set Last date of current month&lt;br /&gt;
=DateAdd(&quot;d&quot;,-1,(DateAdd(&quot;m&quot;, 1, DateSerial(Year(Now()), Month(Now()), 1))))&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/4810326463282123333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/default-values-for-date-parameter-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/4810326463282123333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/4810326463282123333'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/default-values-for-date-parameter-in.html' title='Default values for a date parameter in SSRS'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-8477011142471965547</id><published>2012-07-28T21:00:00.002+05:30</published><updated>2012-07-30T13:38:28.764+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interview Question"/><title type='text'>Interview Questions in ASP.NET,C#.NET,SQL Server,.NET Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Here I am posting the most common interview questions whatever everybody have faced during their interviews.&lt;br /&gt;
&lt;br /&gt;
The most common question for experience persons is&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;color: red;&quot;&gt;Why would you like to change the company?&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1) I am looking for a more challenging career in a firm with a larger employee base such as yours.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2)Chane is always welcome and new things are always there.I want to get a new opportunity and discover myself in a bigger role which would give me in extending my limitation.and also help me in building my career development.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2) Keeping in mind my career goals, the time has come for me to move onto the next step of&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
the ladder and make a mark for myself. This can be achieved in a company like this.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3) I am looking for the experience that can prepare me better for my future also your company is known for developing &amp;nbsp;people professionally i wanted to grow professionally as&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
well as financially.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;color: red;&quot;&gt;What is Software Architecture?&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Partitioning the problem and the system to be built into discrete pieces&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Techniques used to create interfaces between these pieces&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Techniques used to manage overall structure and flow&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Techniques used to interface the system to its environment&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Appropriate use of development and delivery approaches, techniques and tools.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-size: 19px; font-weight: bold;&quot;&gt;Why Architecture is important?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-size: 19px; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-size: 19px; font-weight: bold;&quot;&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &amp;nbsp;Controls complexity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Enforces best practices&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Gives consistency and uniformity&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Increases predictability&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Enables re-use.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
Difference between stored procedure and function&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;1) Procedure can return zero or n values whereas function can return one value which is mandatory.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
2) Procedures can have input, output parameters for it whereas functions can have only input parameters.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
3) Procedure allows select as well as DML statement in it whereas function allows only select statement in it.&lt;/div&gt;
&lt;div&gt;
4) Functions can be called from procedure whereas procedures cannot be called from function.&lt;/div&gt;
&lt;div&gt;
5) Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.&lt;/div&gt;
&lt;div&gt;
6) We can go for transaction management in procedure whereas we can&#39;t go in function.&lt;/div&gt;
&lt;div&gt;
7) Procedures cannot be utilized in a select statement whereas function can be embedded in a select statement.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Difference between Abstract and Interface&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Abstract Class:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-Abstract class provides a set of rules to implement next class&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-Rules will be provided through abstract methods&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-Abstract method does not contain any definition&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-While inheriting abstract class all abstract methods must be override&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-If a class contains at least one abstract method then it must be declared as an “Abstract Class”&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-Abstract classes cannot be instantiated (i.e. we cannot create objects), but a reference can be created&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-Reference depends on child class object’s memory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-Abstract classes are also called as “Partial abstract classes”&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-Partial abstract class may contain functions with body and functions without body&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;-If a class contains all functions without body then it is called as “Fully Abstract Class” (Interface)&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;An abstract class means that, no object of this class can be instantiated, but can make derivations of this.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
An example of an abstract class declaration is:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
abstract class absClass&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
An abstract class can contain either abstract methods or non abstract methods. Abstract members do not have any implementation in the abstract class, but the same has to be provided in its derived class.&lt;/div&gt;
&lt;div&gt;
An example of an abstract method:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
abstract class absClass&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; public abstract void abstractMethod();&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
Also, note that an abstract class does not mean that it should contain abstract members. Even we can have anabstract class only with non abstract members. For example:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
abstract class absClass&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public void NonAbstractMethod()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;NonAbstract Method&quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
A sample program that explains abstract classes:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
using System;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
namespace abstractSample&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; //Creating an Abstract Class&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; abstract class absClass&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //A Non abstract method&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int AddTwoNumbers(int Num1, int Num2)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Num1 + Num2;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //An abstract method, to be&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //overridden in derived class&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public abstract int MultiplyTwoNumbers(int Num1, int Num2);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; //A Child Class of absClass&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; class absDerived:absClass&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [STAThread]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//You can create an&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//instance of the derived class&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;absDerived calculate = new absDerived();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int added = calculate.AddTwoNumbers(10,20);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int multiplied = calculate.MultiplyTwoNumbers(10,20);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(&quot;Added : {0},&lt;/div&gt;
&lt;div&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;Multiplied : {1}&quot;, added, multiplied);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //using override keyword,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //implementing the abstract method&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //MultiplyTwoNumbers&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public override int MultiplyTwoNumbers(int Num1, int Num2)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Num1 * Num2;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
In the above sample, you can see that the abstract class absClass contains two methods AddTwoNumbers andMultiplyTwoNumbers. AddTwoNumbers is a non-abstract method which contains implementation andMultiplyTwoNumbers is an abstract method that does not contain implementation.&lt;/div&gt;
&lt;div&gt;
The class absDerived is derived from absClass and the MultiplyTwoNumbers is implemented on absDerived. Within the Main, an instance (calculate) of the absDerived is created, and calls AddTwoNumbers andMultiplyTwoNumbers. You can derive an abstract class from another abstract class. In that case, in the childclass it is optional to make the implementation of the abstract methods of the parent class.&lt;/div&gt;
&lt;div&gt;
Example&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
//Abstract Class1&lt;/div&gt;
&lt;div&gt;
abstract class absClass1&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public abstract int AddTwoNumbers(int Num1, int Num2);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public abstract int MultiplyTwoNumbers(int Num1, int Num2);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Abstract Class2&lt;/div&gt;
&lt;div&gt;
abstract class absClass2:absClass1&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; //Implementing AddTwoNumbers&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public override int AddTwoNumbers(int Num1, int Num2)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Num1+Num2;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Derived class from absClass2&lt;/div&gt;
&lt;div&gt;
class absDerived:absClass2&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; //Implementing MultiplyTwoNumbers&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public override int MultiplyTwoNumbers(int Num1, int Num2)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Num1*Num2;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
In the above example, absClass1 contains two abstract methods AddTwoNumbers and MultiplyTwoNumbers. The AddTwoNumbers is implemented in the derived class absClass2. The class absDerived is derived fromabsClass2 and the MultiplyTwoNumbers is implemented there.&lt;/div&gt;
&lt;div&gt;
Interface:&lt;/div&gt;
&lt;div&gt;
-If a class contains all abstract methods then that class is known as “Interface”&lt;/div&gt;
&lt;div&gt;
-Interfaces support like multiple inheritance&lt;/div&gt;
&lt;div&gt;
-In interface all methods r public abstract by default&lt;/div&gt;
&lt;div&gt;
-Interfaces r implementable&lt;/div&gt;
&lt;div&gt;
-Interfaces cannot be instantiated, but a reference can be created&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;Abstract class vs. Interface&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
An abstract class can have abstract members as well non abstract members. But in an interface all the members are implicitly abstract and all the members of the interface must override to its derived class.&lt;/div&gt;
&lt;div&gt;
An example of interface:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;Collapse | Copy Code&lt;/div&gt;
&lt;div&gt;
interface iSampleInterface&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; //All methods are automaticall abstract&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; int AddNumbers(int Num1, int Num2);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; int MultiplyNumbers(int Num1, int Num2);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
Defining an abstract class with abstract members has the same effect to defining an interface.&lt;/div&gt;
&lt;div&gt;
The members of the interface are public with no implementation. Abstract classes can have protected parts, static methods, etc.&lt;/div&gt;
&lt;div&gt;
A class can inherit one or more interfaces, but only one abstract class.&lt;/div&gt;
&lt;div&gt;
Abstract classes can add more functionality without destroying the child classes that were using the old version. In an interface, creation of additional functions will have an effect on its child classes, due to the necessary implementation of interface methods to classes.&lt;/div&gt;
&lt;div&gt;
The selection of interface or abstract class depends on the need and design of your project. You can make anabstract class, interface or combination of both depending on your needs.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between an Interface and an Abstract class?&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;There are quite a big difference between an interface and an abstract class, even though both look similar.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; Interface definition begins with a keyword interface so it is of type interface&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; Abstract classes are declared with the abstract keyword so it is of type class&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; Interface has no implementation, but they have to be implemented.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; Abstract class’s methods can have implementations and they have to be extended.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; Interfaces can only have method declaration (implicitly public and abstract) and fields (implicitly public static)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Abstract class’s methods can’t have implementation only when declared abstract.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Interface can inherit more than one interfaces&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Abstract class can implement more than one interfaces, but can inherit only one class&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Abstract class must override all abstract method and may override virtual methods&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Interface can be used when the implementation is changing&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Abstract class can be used to provide some default behavior for a base class.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Interface makes implementation interchangeable&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Interface increase security by hiding the implementation&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Abstract class can be used when implementing framework&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Abstract classes are an excellent way to create planned inheritance hierarchies and also to use as non-leaf classes in class hierarchies.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Index types in SQL Server&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; text-align: justify;&quot;&gt;An index is a&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;physical structure containing pointers to the data&lt;/b&gt;&lt;span style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; text-align: justify;&quot;&gt;. Indexes are created in an either existing table to locate rows more quickly and efficiently or It is possible to create an index on one or more columns of a table, and each index is given a name. The users cannot see the indexes; they are just used to speed up queries. Effective indexes are one of the best ways to improve performance in a database application.&lt;/span&gt;&lt;br style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot; /&gt;&lt;br style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot; /&gt;&lt;span style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; text-align: justify;&quot;&gt;A table scan happens when there is no index available to help a query. In a table scan SQL Server examines every row in the table to satisfy the query results. Table scans are sometimes unavoidable, but on large tables, scans have a terrific impact on performance. There are two types of indexes are available in SQL SERVER&lt;/span&gt;&lt;br style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot; /&gt;&lt;br style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot; /&gt;&lt;b style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;Clustered indexes&lt;/b&gt;&lt;span style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; text-align: justify;&quot;&gt;&amp;nbsp;define the physical sorting of a database table’s rows in the storage media. For this reason, each database table may have only one clustered index.&lt;/span&gt;&lt;br style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot; /&gt;&lt;br style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot; /&gt;&lt;b style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;Non-clustered indexes&lt;/b&gt;&lt;span style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; text-align: justify;&quot;&gt;&amp;nbsp;are created outside of the database table and contain a sorted list of references to the table itself. Non-clustered indexes can be multiple.&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;background-color: #fefefe; color: #333333; line-height: 19px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;h3 style=&quot;background-color: #fefefe; line-height: 19px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;What are differences between Array list and Hash table?&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: #fefefe; color: #333333; line-height: 19px;&quot;&gt;
1) In Hash Table it stores the data as name and value pair while in array it stores only value.&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe; color: #333333; line-height: 19px;&quot;&gt;
2) To access Hash Table data you have to pass name while to access array you have to pass index.&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe; color: #333333; line-height: 19px;&quot;&gt;
3) you can store different type of data in hash table, say int, string etc. while in array you can store only similar type of data.&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe; color: #333333; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How many Types of Index are there in SQL&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Two types of indexes are there one is clustered index and non-clustered index&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;h3&gt;
&lt;span style=&quot;color: red;&quot;&gt;How many types of memories are there in .net?&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
Ans: Two types of memories are there in .net stack memory and heap memory&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Is it possible to set the session out time manually?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Yes we can set the session out time manually in web.config.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What are differences between function and stored procedure?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;1) Function returns only one value but procedure returns one or more than one value.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;2) Function can be utilized in select statements but that is not possible in procedure.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;3) Procedure can have an input and output parameters but function has only input parameters only.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;4) Exceptions can be handled by try catch block in procedures but that is not possible in function.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h3 style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What are the differences between Application object and session object?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: The session object is used to maintain the session of each user. If one user enter in to the application then they get session id if he leaves from the application then the session id is deleted. If they again enter in to the application they get different session id.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;But for application object the id is maintained for whole application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3 style=&quot;background-color: #fefefe; line-height: 19px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;What are differences between system.stringbuilder and system.string?&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;The main difference is system.string is immutable and system.&amp;nbsp;string builder&amp;nbsp;is a mutable. means you cant change the string in system.string while using system.&amp;nbsp;string builder&amp;nbsp;you can change the string by using various operation like append.Append keyword is used in string builder but not in system.string.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe; color: #333333; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;span style=&quot;background-color: white; line-height: 19px;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;.Net has five access Specifiers&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is an access specifier?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333; line-height: 19px;&quot;&gt;An access specifier defines the scope of a class member. A class member refers to the variables and functions in a class. A program can have many classes. The programmer gets the privilege to decide the of use access specifier to implement encapsulation and abstraction in C#.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;So, when we use Access Specifiers in C# they help the other class members to know how they can access the methods or variables declared/defined inside another class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;C# supports five types of access specifiers to tell the extent of visibility of a class member. They are:-&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;i&gt;&lt;b&gt;• public,&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;i&gt;&lt;b&gt;• private,&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;i&gt;&lt;b&gt;• protected,&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;i&gt;&lt;b&gt;• internal and&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;i&gt;&lt;b&gt;• protected internal.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Let&#39;s now go into detail.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;public:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;The public access specifier in C# allows a class to expose its member variables and member functions to other functions and objects. So any member declared public can be accessed outside the class also.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Let&#39;s check an example for this..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;using System;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;namespace HelloWorld&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class hello&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public int iNum1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class MyMainClass&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;static void Main(string[] args)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;hello HelloObject=new hello();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;HelloObject.iNum1=10; /* since variable iNum1 is public it can be accessed in other classes also*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(HelloObject.iNum1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;private:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;The private access specifier in C# is just opposite to the public access specifier. That is it allows a class to hide its member variables and member functions from other class objects and functions. So it is not visible outside the class. By default, the access specifier is private; if public, private or protected is not specified.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Let&#39;s check an example for this..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;using System;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;namespace HelloWorld&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class hello&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public int iNum1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;private int iNum2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public hello()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;iNum1=0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;iNum2=10;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class MyMainClass&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;static void Main(string[] args)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;hello HelloObject=new hello();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;//CORRECT METHOD&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;HelloObject.iNum1=10; //Here since variable iNum1 is public it can be accessed in other classes also&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;//WRONG METHOD&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;HelloObject.iNum2=20; /*This line will return an Error since the access to this variable is Private. So it cannot be accessed outside the class*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(HelloObject.iNum1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;protected:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;The protected access specifier in C# allows a class to hide its member variables and member functions from other class objects and functions, except the child class. This access specifier is used when we need to use Inheritance in the program.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Let&#39;s check an example for this..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;using System;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;namespace HelloWorld&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class hello&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public int iNum1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;protected int iNum2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class world : hello&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public int AddDetails()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;iNum1=20;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;iNum2=10;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;return iNum1+iNum2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class MyMainClass&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;static void Main(string[] args)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;world worldObject=new world();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;worldObject.iNum1=50; //Line 1 No Error&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;worldObject.iNum2=10; //Line 2 Error&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(worldObject.AddDetails().ToString());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;In the above case we have not called the object of the class hello. But we have inherited the class hello to the class world. So all the public and protected members inside the class is accessible inside the derived class also. We don&#39;t need to create objects for the base class to access the variables or methods we have in our parent class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Now inside the Main() function we are assigning value to iNum1 and iNum2. Line 1 will not return any error because the variable iNum1 is public. So, it can be accessed from anywhere in the program, but Line2 will give an Compilation Error saying &quot;iNum2 is inaccessible due to protection level&quot;. This is because access of the variable iNum2 is set to protected. The protected members can only be accessed inside the Child class and its parent class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;internal:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Friend &amp;amp; Internal mean the same. Friend is used in VB.NET. Internal is used in C#. Friends can be accessed by all classes within an assembly but not from outside the assembly.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;protected internal:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;The Protected Friend can be accessed by Members of the Assembly or the inheriting class, and ofcourse, within the class itself.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333; line-height: 19px;&quot;&gt;Lets now understand the above with an example:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;using System;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class Student&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;private string sAddress;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;protected string sPhNo;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;protected internal long iZipCode;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;void Hello()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(“Hello World!”);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;internal void Hello2()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(“Hello Student!”);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public void SetAddress()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(“Enter your Address:”)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;sAddress = Console.ReadLine();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public void SetPhNo()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(“Enter your Phone Number:”)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;sPhNo = Console.ReadLine();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public void SetZipCode()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(“Enter the Zip Code: “);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;iZipCode =Convert.ToInt64(Console.ReadLine());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public void DisplayStudent()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(“The Address is: {0}”, sAddress);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;class Display&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;static void Main(string[] args)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Student John = new Student();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(John.sAddress); //Error: protected members cannot be accessed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;John.SetAddress(); //public members can be accessed outside the class definition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;John.SetPhNo(); //public members can be accessed outside the class definition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(John.sPhNo); //error: protected internal members cannot be accessed outside the class definition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;John.SetZipCode(); //public members can be accessed outside the class definition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;John.DisplayStudent(); // public members can be accessed outside the class definition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(John.sAddress); //error: private members cannot be accessed outside the class definition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;John.Hello(); //error: private members cannot be accessed outside the class definition&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;John.Hello2(); //displays Hello student!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between primary key and unique key?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans:There is not difference between Primary key and unique key except Primary key does not accept null values while unique key accept the null value.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is boxing and unboxing concepts in .net?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Boxing is a process of converting value type into reference type&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unboxing is a process of converting reference type to value type.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What are the differences between value type and reference type?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Value type contain variable and reference type are not containing value directly in its memory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Memory is allocated in managed heap in reference type and in value type memory allocated in stack. Reference type ex-class value type-struct, enumeration&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is SOA(Service Oriented Architecture)&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;A service-oriented architecture is essentially a collection of services. These services communicate with each other. The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Why we go for page rendering in Asp.Net Page life cycle?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Browser understands an only html control that’s why in page rendering we will convert the aspx controls into html controls.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Write a sample query for self join?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Select e1.ename, e2.empid from emp e1, emp e2 where e1.empid=e2.mgrid;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Can we change the index of primary key on table?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: No&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to find out which index is defined on table?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: sp_helpindex tablename&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;color: red; line-height: 19px;&quot;&gt;The out Parameter&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;The out parameter can be used to return the values in the same variable passed as a parameter of the method. Any changes made to the parameter will be reflected in the variable.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public class mathClass&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static int TestOut(out int iVal1, out int iVal2)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;iVal1 = 10;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;iVal2 = 20;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;return 0;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static void Main()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;int i, j; // variable need not be initialized&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(TestOut(out i, out j));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(i);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(j);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;The ref parameter&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;The ref keyword on a method parameter causes a method to refer to the same variable that was passed as an input parameter for the same method. If you do any changes to the variable, they will be reflected in the variable.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;You can even use ref for more than one method parameters.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;namespace TestRefP&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;using System;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public class myClass&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static void RefTest(ref int iVal1 )&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;iVal1 += 2;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static void Main()&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;int i; // variable need to be initialized&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;i = 3;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;RefTest(ref i );&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(i);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;ref means that value is already set, method can read it and can modify it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;out means that value isn&#39;t set and method must set it before return and couldn&#39;t read before setting value.&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is “ref” keyword in C#&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;“ref Keyword” in C#.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Passing variables by value is the default. However, we can force the value parameter to be passed by reference.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Point to be kept in mind while using ref keyword.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;variable “must” be initialized before it is passed into a method.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Example, Without Using ref keyword&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;class Test&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static void Main()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;int a = 3;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;DoWork(a);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(&quot;The value of a is &quot; + a);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static void DoWork(int i)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;i++;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;The program will result in : The value of a is 3&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Example, With the Use of ref keyword&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;class Test&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static void Main()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;int a = 3; // must be initialized&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;DoWork(ref a); // note ref&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Console.WriteLine(&quot;The value of a is &quot; + a);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;public static void DoWork(ref int i) // note ref&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;i++;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;The program will result : The value of a is 4&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Can you write the program to find the length of string without using library function?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: for (int i=0; str[i]!=”\n”; i++)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Count++;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between scope_identity() and current_identity()?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Scope_identity and current _identity both are similar and it will return the last identity value generated in the table.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Scope_Identity will return the identity value in table that is currently in scope&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What are difference between POST and GET Methods?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;POST Method ():&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Data is not appended to the URL.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Data is Secret&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;it is a two call system.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;There is no Limit on the amount of data. That is characters any amount of data can be sent.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Data transmission is comparatively slow.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;No default and should be explicitly specified.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;GET Method ():&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Data is appended to the URL.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Data is not secret.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;It is a single call system&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Maximum data that can be sent is 256.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Data transmission is faster&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;this is the default method for many browsers&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What are difference between truncate and delete?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: 1) Delete keep the lock over each row where Truncate keeps the lock on table not on all the row.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;2) Counter of the Identity column is reset in Truncate where it is not reset in Delete.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;3) Trigger is not fired in Truncate where as trigger is fired in Delete.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;4) In TRUNCATE we cannot rollback.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;5) In DELETE we can rollback&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;• DataTable,DataSet,DataView,Data Adapter,Data Reader&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;DataGridView is a control which gets data from DataTable, DataView or Dataset.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;DataTable is an in-memory table.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;DataSet is a collection of DataTable objects.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Difference Between DataSet and DataTable.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;A Dataset has an overhead perfomance hit when its loaded with a lot of Data. Now let me be more clearer, a Dataset can Contain a lot of Datatable :) A Dataset is like a Container for Datatables because every dataset has a datatable contained inside it and a Datatable is like a table you have in SQL and a Dataset its like a Database that contain table(Datatable)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;DataView:: Represents a customized view of a DataTable for&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;sorting, filtering, searching, editing, and navigation.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;See the following example u can get Better idea...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;// Create a new DataTable.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Data.DataTable table = new&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;DataTable(&quot;Customers&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Declare variables for DataColumn and DataRow objects.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataColumn column;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataRow row;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create new DataColumn, set DataType,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // ColumnName and add to DataTable. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column = new DataColumn();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column.DataType = System.Type.GetType(&quot;System.String&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column.ColumnName = &quot;ID&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column.ReadOnly = true;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column.Unique = true;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Add the Column to the DataColumnCollection.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.Columns.Add(column);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create second column.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Add the column to the table.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.Columns.Add(&quot;FirstName&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;System.Type.GetType(&quot;System.String&quot;));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Add the column to the table.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.Columns.Add(&quot;LastName&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;System.Type.GetType(&quot;System.String&quot;));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Make the ID column the primary key column.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataColumn[] PrimaryKeyColumns = new DataColumn[1];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PrimaryKeyColumns[0] = table.Columns[&quot;id&quot;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.PrimaryKey = PrimaryKeyColumns;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // add new datarow by adding the values&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.Rows.Add(&quot;C101&quot;, &quot;Rajesh&quot;, &quot;Kumar&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.Rows.Add(&quot;C102&quot;, &quot;Fareed&quot;, &quot;sk&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table.Rows.Add(&quot;C103&quot;, &quot;Rajesh&quot;, &quot;Raji&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Sort and display&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataView Dview = new DataView(table);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dview.Sort = &quot;LastName ASC, FirstName ASC&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView1.DataSource = Dview;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView1.DataBind();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference Grid View and between Data Grid (Windows)?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;1) GridView Control Enables you to add sorting, paging and editing capabilities without writing any code.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;2)GridView Control Automatically Supports paging by setting the ‘PagerSetting’ Property.The Page Setting Property supports four Modles&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;a. Numeric(by default)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;b. Next Previous&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;c. NumericFirstLast&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;d. Next PreviousLast&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;3)It is Used in asp.net&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;4)GridView Supports RowUpdating and RowUpdated Events.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;5)GidView is Capable of Pre-Operations and Post-Operations.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;6)GridView Has EditTemplates for this control&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;7)It has AutoFormat&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;DataGrid(Windows)&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;1)DataGid Control raises single Event for operations&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;2)DataGird Supports the SortCommand Events that occur when a column is Soted.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;3)DataGrid Supports UpdataCommand Event that occurs when the UpdateButton is clicked for an item in the grid.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;4)DataGrid is used in Windows GUI Application.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;5)It doesnot have EditTemplates for this control&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;6)It doesnot have AutoFormat&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;If I write System.exit (0); at the end of the try block, will the finally block still execute?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: No in this case the finally block will not execute because when you say system.exit(0),the control immediately goes out of the program, and thus finally never executes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What are the different levels of State management in ASP.NET?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;State management is the process by which you maintain state and page information over multiple requests for the same or different pages.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;There are 2 types State Management:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;1. Client – Side State Management&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;This stores information on the client&#39;s computer by embedding the information into a Web page, a uniform resource locator (url), or a cookie. The techniques available to store the state information at the client end are listed down below:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;a. View State – Asp.Net uses View State to track the values in the Controls. You can add custom values to the view state. It is used by the Asp.net page framework to automatically save the values of the page and of each control just prior to rendering to the page. When the page is posted, one of the first tasks performed by page processing is to restore view state.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;b. Control State – If you create a custom control that requires view state to work properly, you should use control state to ensure other developers don’t break your control by disabling view state.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;c. Hidden fields – Like view state, hidden fields store data in an HTML form without displaying it in the user&#39;s browser. The data is available only when the form is processed.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;d. Cookies – Cookies store a value in the user&#39;s browser that the browser sends with every page request to the same server. Cookies are the best way to store state data that must be available for multiple Web pages on a web site.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;e. Query Strings - Query strings store values in the URL that are visible to the user. Use query strings when you want a user to be able to e-mail or instant message state data with a URL.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;2. Server – Side State Management&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;a. Application State - Application State information is available to all pages, regardless of which user requests a page.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;b. Session State – Session State information is available to all pages opened by a user during a single visit.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Both application state and session state information is lost when the application restarts. To persist user data between application restarts, you can store it using profile properties.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;• Data Reader and DataAdapter&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;Data Reader:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;If your Data access operations is mainly fetching and displaying the records and doesnt involve insert/update/delete statements and other manipulations (forward only, read only) actions, go for the DataReader.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;DataReader offers a forward only read stream of access to the records. It is very useful in cases where we just grab the data from the database to display in DataGrid, Label and other Webcontrols.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;However, DataReader requires the connection with the database open until its operation is completed.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Data Reader will read only one record at a time.So memory consumption will be less,it is purely connection oriented it will use connection.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;exclusively when datareader is closed.the memory will be released on the server machine and connection will be used for any other purpose.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;Data Reader read only forward only&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;It&#39;s connection oriented&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;should Explicitly close the connection&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;&lt;i&gt;• Data Adapter&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&amp;nbsp;Data Adapter acts as a mediator between dataset and database server. it will read data &amp;nbsp;from the database server and places with in dataset the manipulations on the dataset will &amp;nbsp;be updated with the database server. Data Adapter is disconnected its acts as a bridge &amp;nbsp;between data set and database. Data Adapter is nothing but mediator between Dataset and &amp;nbsp;Database, first data adapter connect to the database then fetches into the data set and &amp;nbsp;closes the connection, you can update the data into dataset, also you can update database &amp;nbsp;as well.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: #fefefe;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Abstract Class:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Abstract class is a class which can’t be instantiate. Class should have “Abstract” key word with the name. In any one of the method of class having abstract method with in it, then it should be define as abstract class. The class which derived the abstract class should have definition of the abstract method. These classes which derived the abstract class and implement the abstract methods call concrete class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Abstract class may have the definition of function or may not. Below is the simple example of an abstract class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public abstract alass AbstractStudent&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String Roll&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String FirstName&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String LastName&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Public String GetStudentDetails()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;// Implementation of Method&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public String SaveStudentDetails ()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;// Implementation of Method&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public abstract String CalculateWage();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;So, the class having one abstract method so we need to mention the class as &quot;abstract&quot; .&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Difference between Abstract Class and Interface?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Abstract class is a class which can’t be instantiated and which can have methods with definition as well as declaration also. This can be inherited.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;As for Example:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public abstract class AbstractStudent&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String Roll&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String FirstName&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String LastName&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Public String GetStudentDetails()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;// Implementation of Method&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public String SaveStudentDetails ()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;// Implementation of Method&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;public abstract String CalculateWage();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Interface can only contain the methods declaration and can be implemented in the class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;As for Example:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Public interface IStudnet&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String Roll&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String FirstName&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String LastName&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;get;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;set;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String GetStudentDetails();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;String SaveStudentDetails ();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;• Use Of Global.asax File:&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333; line-height: 19px;&quot;&gt;The Global.asax file, also known as the ASP.NET application file, is an optional file that contains code for responding to application-level events raised by ASP.NET or by HttpModules. The Global.asax file resides in the root directory of an ASP.NET-based application. At run time, Global.asax is parsed and compiled into a dynamically generated .NET Framework class derived from the HttpApplication base class. The Global.asax file itself is configured so that any direct URL request for it is automatically rejected; external users cannot download or view the code written within it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Event&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_Init: Fired when an application initializes or is first called. It&#39;s invoked for all HttpApplication object instances.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_Disposed: Fired just before an application is destroyed. This is the ideal location for cleaning up previously used resources.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_Error: Fired when an unhandled exception is encountered within the application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_Start: Fired when the first instance of the HttpApplication class is created. It allows you to create objects that are accessible by all HttpApplication instances.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_End: Fired when the last instance of an HttpApplication class is destroyed. It&#39;s fired only once during an application&#39;s lifetime.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_BeginRequest: Fired when an application request is received. It&#39;s the first event fired for a request, which is often a page request (URL) that a user enters.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_EndRequest: The last event fired for an application request.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_PreRequestHandlerExecute: Fired before the ASP.NET page framework begins executing an event handler like a page or Web service.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_PostRequestHandlerExecute: Fired when the ASP.NET page framework is finished executing an event handler.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Applcation_PreSendRequestHeaders: Fired before the ASP.NET page framework sends HTTP headers to a requesting client (browser).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_PreSendContent: Fired before the ASP.NET page framework sends content to a requesting client (browser).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_AcquireRequestState: Fired when the ASP.NET page framework gets the current state (Session state) related to the current request.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_ReleaseRequestState: Fired when the ASP.NET page framework completes execution of all event handlers. This results in all state modules to save their current state data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_ResolveRequestCache: Fired when the ASP.NET page framework completes an authorization request. It allows caching modules to serve the request from the cache, thus bypassing handler execution.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_UpdateRequestCache: Fired when the ASP.NET page framework completes handler execution to allow caching modules to store responses to be used to handle subsequent requests.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_AuthenticateRequest: Fired when the security module has established the current user&#39;s identity as valid. At this point, the user&#39;s credentials have been validated.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Application_AuthorizeRequest: Fired when the security module has verified that a user can access resources.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Session_Start: Fired when a new user visits the application Web site.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;• Session_End: Fired when a user&#39;s session times out, ends, or they leave the application Web site.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;what is ExecuteDataset?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333; line-height: 19px;&quot;&gt;Executes the command and returns the results in a new dataset with all the rows.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is a Partial class?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Instead of defining an entire class, you can split the definition into multiple classes by using partial class keyword. When the application compiled, c# compiler will group all the partial classes together and treat them as a single class. There are a couple of good reasons to use partial classes. Programmers can work on different parts of classes without needing to share same physical file&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ex:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Public partial class employee&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Public void somefunction()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Public partial class employee&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Public void function ()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Difference Between Executescalar and ExecuteNonQuerry&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;ExecuteScalar&lt;/b&gt; - Returns only one value after execution of the query. It returns the first field in the first row. This is very light-weight and is perfect when all your query asks for is one item. This would be excellent for receiving a count of records (Select Count(*)) in an sql statement, or for any query where only one specific field in one column is required.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;ExecuteNonQuery &lt;/b&gt;- This method returns no data at all. It is used majorly with Inserts and Updates of tables. It is used for execution of DML commands.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Example:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;SqlCommand cmd = new SqlCommand(&quot;Insert Into t_SomeTable Values(&#39;1&#39;,&#39;2&#39;)&quot;,con);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;//note that con is the connection object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;con.Open();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;cmd.ExecuteNonQuery(); //The SQL Insert Statement gets executed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Difference between ExecuteNonQuery, ExecuteScalar and ExecuteReader&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;1)ExecuteNonQuery&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;a) Used mainly for action queries(insert,delete,update,create,alter,drop).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;It can also be used with select queries.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;example: A stored procedure in SQL Server that can be used for autogeneration of ID&#39;s using its&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;output parameter can have the value of output parameter returned on a windows form using ExecuteNonQuery.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;b)returns an int value indicating the number of affected rows&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;2)ExecuteScalar&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;a)Used in queries where we have to read a single value&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;example: 1)select count(*) from emp&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;2) select ename from emp where eno=100&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;b)returns an object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;3)ExecuteReader&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;b)Used in queries where we have to read a complete row of the data&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;example: select * from emp where eno=100&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;b)It initializes a SqlDataReader/OleDbDataReader variable which can then&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;be used to read the data returned.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is difference between constants, read-only and, static?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Constants: The value can’t be changed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Read-only: The value will be initialized only once from the constructor of the class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Static: Value can be initialized once.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between application exception and system exception?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: The difference between application exception and system exception is that system exceptions are thrown by CLR and application exceptions are thrown by applications.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between authorization and authentication?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Authorization is a process of allowing or denying resources to particular user or record&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Declaration of authorization is&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Sometimes authorization allows the unauthorized persons at that time we will use&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Authentication means&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Authentication is a process where we identify the credentials of user i.e. username, password and create an identity to mention user as an authenticated.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to get the version of the assembly?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: lbltxt.text=Assembly. GetExecutingAssembly().GetName().Version.ToString();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the location of Global Assembly Cache on the system?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: c:\Windows\assembly&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the serialization means?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Serialization is a process of converting object into a stream of bites.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is synchronization?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: The mechanism needed to block one thread access to the data. If the data is being accessed by another thread.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Synchronization can be accessed by using system.monitor class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;A monitor class methods are enter, exit, pulse for this lock statement is also used&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Suppose if we need to synchronize some data at that time we need to place that data in this block&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Lock&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Whatever the data has been placed into the lock block that data has been blocked&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;What are the thread priority levels?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Thread priority levels are five types&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;0 - Zero level&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;1 - Below Normal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;2 - Normal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;3 - Above Normal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;4 - Highest&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;By Default priority level is 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between .tostring(), Convert.tostring()?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: The basic difference between them is “Convert” function handles NULLS while&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;“.ToString()” does not it will throw a NULL reference exception error. So as a good coding&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;practice using “convert” is always safe.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How many web.config files are there in 1 project?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: There might be multiple web.config files for a single project depending on the hierarchy of folders inside the root folder of the project, so for each folder we can use one web.config file&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between throw and throw ex?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between view state and hidden field?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: viewstate is secured hidden field is insecure&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Viewstate will store large amount of data but hidden filed will store small amount of data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the Difference between read only and constant variables?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Read only can assign the values at runtime only.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Constant will assign the values at compile time only.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;We cannot modify the both variable values.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is static keyword in .Net?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Ans: Static is same as constant variable but we can change the value of static variable and we can access the variables without creating any instances&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;Continue.............&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/8477011142471965547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/interview-questions-in-aspnetcnetsql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/8477011142471965547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/8477011142471965547'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/interview-questions-in-aspnetcnetsql.html' title='Interview Questions in ASP.NET,C#.NET,SQL Server,.NET Framework'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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-4442150031402579885.post-3320493414081205196</id><published>2012-07-28T18:25:00.002+05:30</published><updated>2012-07-28T18:36:22.309+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>How to Find day,week,year,month difference  between two Dates in sql?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;background-color: white;&quot;&gt;Introduction&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;Here I am going to Explain you about how to Find the Difference of day,week,year,month between two dates in sql.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Lets create one table called OrderDetails&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/AVvXsEi_zvi0eobsmrPK92hF_kcW_Vcp-i8Wv47Uv0jSxmzonnoP8NxPJtH-ZlQ7P65u1itduRY-VqQDUXHFLBTAogfBsUgdHZLHfbPvQMdvBcwOSn_yD67CdeK0rIZ5lHfkB01ag-f9ZmPbllg/s1600/Order.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;103&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_zvi0eobsmrPK92hF_kcW_Vcp-i8Wv47Uv0jSxmzonnoP8NxPJtH-ZlQ7P65u1itduRY-VqQDUXHFLBTAogfBsUgdHZLHfbPvQMdvBcwOSn_yD67CdeK0rIZ5lHfkB01ag-f9ZmPbllg/s320/Order.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Now Lets How Find the difference &amp;nbsp;Of days,week,year,month with the current date.&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white;&quot;&gt;&lt;i&gt;select DATEDIFF(day,OrderDate,GETDATE()) As Numberofdays,DATEDIFF(week,OrderDate,GETDATE()) AS NumberofWeek,&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;DATEDIFF(Month,OrderDate,GETDATE()) As NumberofWeek,DATEDIFF(year,OrderDate,GETDATE()) As NumberofYear&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;&amp;nbsp;from OrderDetails&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Here GetDate() will return the current Date.&lt;br /&gt;
First parameter of DATEDIFF() define what you want to find day,week,month or year.&lt;br /&gt;
and second and third parameter define to which you have to find the difference.&lt;br /&gt;
&lt;br /&gt;
Now out put of the above&amp;nbsp;query&amp;nbsp;will be.&lt;br /&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/AVvXsEhJ2rROtpwYD-TSzsewjBK1x9-saP7w2iv4NCxkrHPP8LnJSwZNZloed6LSOQ03h1G09RtQxxkiyTCpr0vIz00vtfIxXIMzbPej3Uvypx3FnYdGqJXenjMl-FCUfU3fa6FkYfFS3IgIYG0/s1600/Output.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;68&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ2rROtpwYD-TSzsewjBK1x9-saP7w2iv4NCxkrHPP8LnJSwZNZloed6LSOQ03h1G09RtQxxkiyTCpr0vIz00vtfIxXIMzbPej3Uvypx3FnYdGqJXenjMl-FCUfU3fa6FkYfFS3IgIYG0/s320/Output.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Same you can also Find the diffrence of &lt;b&gt;Hour&lt;/b&gt;,
&lt;strong style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; line-height: 18px;&quot;&gt;minute,second&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;
&lt;strong style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; line-height: 18px;&quot;&gt;millisecond&lt;/strong&gt;&amp;nbsp;.just you have to place this into first Parameter of DATEDIFF().&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/3320493414081205196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-find-dayweekyearmonth-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3320493414081205196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/3320493414081205196'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-find-dayweekyearmonth-difference.html' title='How to Find day,week,year,month difference  between two Dates in sql?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06616039785137258381</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/AVvXsEi_zvi0eobsmrPK92hF_kcW_Vcp-i8Wv47Uv0jSxmzonnoP8NxPJtH-ZlQ7P65u1itduRY-VqQDUXHFLBTAogfBsUgdHZLHfbPvQMdvBcwOSn_yD67CdeK0rIZ5lHfkB01ag-f9ZmPbllg/s72-c/Order.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4442150031402579885.post-7839378067261395777</id><published>2012-07-25T11:17:00.003+05:30</published><updated>2012-07-30T13:57:08.312+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>How to return the date part and time part from a SQL Server datetime datatype?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;Introduction&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am showing you how to Extract the date and Time from the current Date Time.&lt;br /&gt;
&lt;br /&gt;
SELECT SUBSTRING(CONVERT(varchar(24), GetDate(), 121), 0, 11) as &#39;Date&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Date&lt;/b&gt;&lt;br /&gt;
2012-07-25&lt;br /&gt;
&lt;br /&gt;
select SUBSTRING(CONVERT(varchar(24),GetDate(),121),12,12) as &#39;Time&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Time&lt;/b&gt;&lt;br /&gt;
01:45:43.133&lt;br /&gt;
&lt;br /&gt;
If you want to Convert time to AM and PM Format then use Following querry&lt;br /&gt;
&lt;br /&gt;
SELECT substring(convert(varchar(20), GetDate(), 9), 13, 5)&amp;nbsp;+ &#39; &#39; + substring(convert(varchar(30), GetDate(), 9), 25, 2) &#39;Time&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Time&lt;/b&gt;&lt;br /&gt;
1:45 AM&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/7839378067261395777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-return-date-part-and-time-part.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7839378067261395777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7839378067261395777'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-return-date-part-and-time-part.html' title='How to return the date part and time part from a SQL Server datetime datatype?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4442150031402579885.post-7300576383820378330</id><published>2012-07-24T19:02:00.004+05:30</published><updated>2012-07-24T19:04:22.797+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>Find Current week start Date and End Date in SQL</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;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;h4 style=&quot;display: inline !important;&quot;&gt;
&lt;b&gt;&lt;div style=&quot;display: inline !important; text-align: left;&quot;&gt;
&lt;div style=&quot;display: inline !important;&quot;&gt;
Introduction:&lt;/div&gt;
&lt;/div&gt;
&lt;/b&gt;&lt;/h4&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;h4&gt;
&lt;b&gt;
&lt;/b&gt;&lt;/h4&gt;
&lt;h4&gt;

&lt;b&gt;&lt;div style=&quot;display: inline !important; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;div style=&quot;display: inline !important;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Today I am going to Explain you how to Find Current Week start date and last date of current week.&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/b&gt;&lt;/h4&gt;
SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 0) as &#39;StartCurrentweek&#39;,DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 0)+6 as &#39;EndCurrentWeek&#39;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;The Output is:&lt;/b&gt;&lt;br /&gt;
StartCurrentweek&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EndCurrentWeek&lt;br /&gt;
2012-07-23 00:00:00.000&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2012-07-29 00:00:00.000&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/7300576383820378330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/find-current-week-start-date-and-end.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7300576383820378330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/7300576383820378330'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/find-current-week-start-date-and-end.html' title='Find Current week start Date and End Date in SQL'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4442150031402579885.post-6532781349491446830</id><published>2012-07-19T15:26:00.002+05:30</published><updated>2012-07-19T15:27:08.954+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SSRS"/><title type='text'>Format the Today&#39;s Date in SSRS Report.</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;h4 style=&quot;text-align: left;&quot;&gt;

&lt;b&gt;Introduction:&lt;/b&gt;&lt;/h4&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Right click the Textbox Property and write the Expression.&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;=MonthName(Month(Now()),true) &amp;amp; &quot; &quot; &amp;amp; Day(Now()) &amp;amp; &quot;, &quot; &amp;amp; Year(Now())&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
This Expression will return the Date Like Jul 19,2012.&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Similarly you can Format the Date as you want to set.&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/6532781349491446830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/format-todays-date-in-ssrs-report.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/6532781349491446830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/6532781349491446830'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/format-todays-date-in-ssrs-report.html' title='Format the Today&#39;s Date in SSRS Report.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4442150031402579885.post-4277780826046543256</id><published>2012-07-19T14:52:00.001+05:30</published><updated>2012-07-19T14:52:33.477+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SSRS"/><title type='text'>How to set an alternate row color in SSRS in 2008</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;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Go to Every cell in Tablix and right clik on it and Open the TextBox Property select Fill tab and set the Expression for Fill color.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;=IIF(RowNumber(Nothing) mod 2, &quot;#DCEBEF&quot;, &quot;#6699FF&quot;)&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/4277780826046543256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-set-alternate-row-color-in-ssrs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/4277780826046543256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/4277780826046543256'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/how-to-set-alternate-row-color-in-ssrs.html' title='How to set an alternate row color in SSRS in 2008'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4442150031402579885.post-6204689710634505263</id><published>2012-07-15T14:04:00.003+05:30</published><updated>2012-07-15T14:15:11.588+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuerry"/><title type='text'>JQuery lightbox image slideshow in asp.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Introduction:&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Today I am going to show you how to display slideshow images using&amp;nbsp;light box&amp;nbsp;in Jquerry.&lt;br /&gt;
&lt;br /&gt;
The Table looks like this..&lt;br /&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/AVvXsEjpRJXFgfzzsQb5jG1P_xV9UzsGQJZ4QWSo7m-HGIhCW9mCniyIBYiI_YTl1Za-ZjxOU6JeXxemk6blkfXBQAletV2JEF-y-cCjUu3SA1H0_CSMzA6U4mchmIblu875Xo45dZf_fcgCuM0/s1600/table.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/AVvXsEjpRJXFgfzzsQb5jG1P_xV9UzsGQJZ4QWSo7m-HGIhCW9mCniyIBYiI_YTl1Za-ZjxOU6JeXxemk6blkfXBQAletV2JEF-y-cCjUu3SA1H0_CSMzA6U4mchmIblu875Xo45dZf_fcgCuM0/s1600/table.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Now Lets see the .aspx Page&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;title&amp;gt;Display Images Slideshow in C# using JQuery&amp;lt;/title&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;lightbox.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;prototype.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;scriptaculous.js?load=effects&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;lightbox.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/head&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;div&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;table align=&quot;center&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td colspan=&quot;2&quot; height=&quot;100&quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Upload Image:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;asp:FileUpload ID=&quot;fileuploadimages&quot; runat=&quot;server&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Enter Image Description:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;asp:TextBox ID=&quot;txtDesc&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;asp:Button ID=&quot;btnSubmit&quot; runat=&quot;server&quot; Text=&quot;Submit&quot; onclick=&quot;btnSubmit_Click&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;td colspan=&quot;2&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;asp:DataList ID=&quot;dlImages&quot; runat=&quot;server&quot; RepeatColumns=&quot;3&quot; CellPadding=&quot;5&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;ItemTemplate&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;a id=&quot;imageLink&quot; href=&#39;&amp;lt;%# Eval(&quot;ImagePath&quot;) %&amp;gt;&#39; title=&#39;&amp;lt;%#Eval(&quot;Description&quot;) %&amp;gt;&#39; rel=&quot;lightbox[round]&quot; runat=&quot;server&quot; &amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;asp:Image ID=&quot;Image1&quot; ImageUrl=&#39;&amp;lt;%# Bind(&quot;ImagePath&quot;) %&amp;gt;&#39; runat=&quot;server&quot; Width=&quot;112&quot; Height=&quot;84&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/a&amp;gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/ItemTemplate&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;ItemStyle BorderColor=&quot;Brown&quot; BorderStyle=&quot;dotted&quot; BorderWidth=&quot;3px&quot; HorizontalAlign=&quot;Center&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
VerticalAlign=&quot;Bottom&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/asp:DataList&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/td&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/tr&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/table&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Now Lets see the .aspx.cs Page&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
public partial class _Default : System.Web.UI.Page&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
SqlConnection con = new SqlConnection(@&quot;Data Source=ADMIN-PC\SQLEXPRESS;Integrated Security=True&quot;);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
protected void Page_Load(object sender, EventArgs e)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
if(!IsPostBack)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
BindDataList();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
protected void BindDataList()&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
con.Open();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
//Query to get ImagesName and Description from database&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
SqlCommand command = new SqlCommand(&quot;SELECT ImageName,ImagePath,Description from tblSlideImages&quot;, con);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
SqlDataAdapter da = new SqlDataAdapter(command);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
DataTable dt = new DataTable();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
da.Fill(dt);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
dlImages.DataSource = dt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
dlImages.DataBind();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
con.Close();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
protected void btnSubmit_Click(object sender, EventArgs e)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
//Get Filename from fileupload control&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
string filename = Path.GetFileName(fileuploadimages.PostedFile.FileName);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
//Save images into SlideImages folder&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
fileuploadimages.SaveAs(Server.MapPath(&quot;SlideImages/&quot; + filename));&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
//Open the database connection&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
con.Open();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
//Query to insert images name and Description into database&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
SqlCommand cmd = new SqlCommand(&quot;Insert into tblSlideImages(ImageName,ImagePath,Description) values(@ImageName,@ImagePath,@Description)&quot;, con);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
//Passing parameters to query&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
cmd.Parameters.AddWithValue(&quot;@ImageName&quot;, filename);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
cmd.Parameters.AddWithValue(&quot;@ImagePath&quot;, &quot;~/SlideImages/&quot;+filename);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
cmd.Parameters.AddWithValue(&quot;@Description&quot;, txtDesc.Text);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
cmd.ExecuteNonQuery();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
//Close dbconnection&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
con.Close();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
txtDesc.Text = string.Empty;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
BindDataList();&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you observe above code in header section I added some of script files and css file by using those files we will get lightbox effect slideshow.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Another thing is here.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-left-color: rgb(165, 42, 42); border-right-color: rgb(165, 42, 42); border-top: 1pt dashed rgb(165, 42, 42); border-width: 1pt; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border-width: 0px; font-family: inherit; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border-width: 0px; font-family: inherit; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border-top-style: none; border-width: medium; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;
&amp;lt;a id=&quot;imageLink&quot; href=&#39;&amp;lt;%# Eval(&quot;ImagePath&quot;) %&amp;gt;&#39; title=&#39;&amp;lt;%#Eval(&quot;Description&quot;) %&amp;gt;&#39; rel=&quot;lightbox[round]&quot; runat=&quot;server&quot; &amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;In above tag I added&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border-width: 0px; color: red; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;rel&lt;/span&gt;&lt;span style=&quot;border-width: 0px; color: blue; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&quot;lightbox&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;this tag is used to active lightbox&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border-width: 0px; color: red; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;this attribute is used to display image caption. If we have set of related images to group we need to include group name in between square brackets in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border-width: 0px; color: red; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;rel&lt;/span&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;attribute like&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border-width: 0px; color: red; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;rel&lt;/span&gt;&lt;span style=&quot;border-width: 0px; color: blue; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&quot;lightbox[round]&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; color: blue; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; color: blue; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border-width: 0px; color: #222222; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; color: blue; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; color: blue; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Now run yoyr application and if you see &amp;nbsp;in this lightbox slideshow we &amp;nbsp;have different features like auto playing,&lt;/span&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;navigate images using ‘prev’ and ‘next’ links, show image description and stop slideshow options and many more.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border-width: 0px; color: blue; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;In slideshow we can navigate by using keyboard shortcuts&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;f&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;- first image&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;l&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;- last image&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;x&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;c&lt;/b&gt;&amp;nbsp;to close&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;left arrow&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;p&lt;/b&gt;&amp;nbsp;for previous image&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;right arrow&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;n&lt;/b&gt;&amp;nbsp;for next image&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;you can find this information of shortcut in lightbox.js file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; font-family: Georgia,Times,&#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border-width: 0px; font-family: Verdana,sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-width: 0px; color: #222222; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;Download the Sample Code from Here&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;http://www.4shared.com/rar/eouUJsir/SlideShowSample.html&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Download&quot; src=&quot;http://www.thebrowserdownload.com/download_button.jpg&quot; style=&quot;height: 80px; width: 170px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetbank-kartik.blogspot.com/feeds/6204689710634505263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/jquery-lightbox-image-slideshow-in_15.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/6204689710634505263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442150031402579885/posts/default/6204689710634505263'/><link rel='alternate' type='text/html' href='http://aspdotnetbank-kartik.blogspot.com/2012/07/jquery-lightbox-image-slideshow-in_15.html' title='JQuery lightbox image slideshow in asp.net'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpRJXFgfzzsQb5jG1P_xV9UzsGQJZ4QWSo7m-HGIhCW9mCniyIBYiI_YTl1Za-ZjxOU6JeXxemk6blkfXBQAletV2JEF-y-cCjUu3SA1H0_CSMzA6U4mchmIblu875Xo45dZf_fcgCuM0/s72-c/table.jpg" height="72" width="72"/><thr:total>2</thr:total></entry></feed>