<?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: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-10976309</id><updated>2012-01-12T22:06:23.950-08:00</updated><category term='SQL Examples'/><category term='.NET Interview questions'/><category term='Go back to previous page'/><category term='Resume'/><category term='Videos in ASP.Net web pages'/><category term='Regular Expressions'/><category term='Embed Flash'/><category term='Firefox Sets Guinness World Record'/><category term='Request.PathInfo'/><category term='Client Host Name'/><category term='Image Upload Validation Sizes'/><category term='C#  DateTime'/><category term='Restricting File Upload size'/><category term='Dates'/><category term='Sending emails'/><category term='silvernight.wordpress.com'/><category term='Delegates'/><category term='Master Page'/><category term='Image Resize'/><category term='Crystal Reports asks for Username and Password'/><category term='Useing HTML tags in codebehind'/><category term='Sending HTML Email'/><category term='Geographic Location of internet user'/><category term='Session Variables'/><category term='SQL Query'/><category term='SQL Time Formats'/><category term='Disabling an ASP.NET Button when Clicked'/><category term='Message Boxes Popup'/><category term='CSV file reading'/><category term='Updating Access Database'/><category term='JavaScript'/><category term='date validation'/><category term='Client IP address'/><category term='Calendar Control'/><category term='Code Samples'/><category term='UrlRewriting'/><category term='.Net Framework'/><title type='text'>Programming Materials, Training Materials, Tutorials ASP.Net, C#, VB.Net, SQL Server</title><subtitle type='html'>Latest .NET Interview Questions and Answers,Programming and Training Materials, Tutorials, Code Samples etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10976309.post-4052160741426808869</id><published>2010-06-07T00:24:00.000-07:00</published><updated>2010-06-07T00:32:05.738-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Delegates'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>C# Delegates</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;Delegate Example 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;  System;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;  System.Collections.Generic;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;  System.Linq;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;namespace&lt;/span&gt; DelgateForNotes&lt;br /&gt;{&lt;br /&gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Program&lt;/span&gt;&lt;br /&gt; {&lt;br /&gt; &lt;span style="color:green;"&gt;//  Declaring A delegate , which will refer function having two parameter  and will return integer&lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;public&lt;/span&gt;  &lt;span style="color:blue;"&gt;delegate&lt;/span&gt; &lt;span style="color:blue;"&gt;int&lt;/span&gt;  &lt;span style="color: rgb(43, 145, 175);"&gt;AddDelegate&lt;/span&gt;(&lt;span style="color:blue;"&gt;int&lt;/span&gt; num1, &lt;span style="color:blue;"&gt;int&lt;/span&gt;  num2);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; Main(&lt;span style="color:blue;"&gt;string&lt;/span&gt;[]  args)&lt;br /&gt;  {&lt;br /&gt; &lt;span style="color:green;"&gt;// Creating method of  delegate, and passing Function Add as argument.&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;AddDelegate&lt;/span&gt; funct1= &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;AddDelegate&lt;/span&gt;(Add);&lt;br /&gt;  &lt;span style="color:green;"&gt;// Invoking Delegate.....&lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;int&lt;/span&gt; k=funct1(7,2);&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: rgb(163, 21, 21);"&gt;" Sumation = {0}"&lt;/span&gt;,k);&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.Read();&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt; &lt;span style="color:green;"&gt;// Static Function Add, which having same  signature as of delegate&lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;public&lt;/span&gt;  &lt;span style="color:blue;"&gt;static&lt;/span&gt; &lt;span style="color:blue;"&gt;int&lt;/span&gt;  Add(&lt;span style="color:blue;"&gt;int&lt;/span&gt; num1, &lt;span style="color:blue;"&gt;int&lt;/span&gt; num2)&lt;br /&gt; {&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: rgb(163, 21, 21);"&gt;"I  am called by Delegate"&lt;/span&gt;);&lt;br /&gt; &lt;span style="color:blue;"&gt;int&lt;/span&gt;  sumation;&lt;br /&gt; sumation= num1+ num2;&lt;br /&gt; &lt;span style="color:blue;"&gt;return&lt;/span&gt;  sumation;&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;Output:&lt;br /&gt;I am called by Delegate&lt;br /&gt;Sumation  =9&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;MultiCast Delegates&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;A delegate which wrap up  more than one method is called Multicast Delegates. When a multicast  delegate is get called, it will successively call each functions in  order.  Multicast Delegate allow to chain together several functions.  These chain functions can be called together when delegate is invoked.   Every Delegate type has a built in support for dealing with multiiple  handlers.  Delegate gets this support by inheriting from the  MultiCastDelegate class.&lt;br /&gt;To work with Multicast Delegate , delegate  signature should return void. Otherwise only last method result can be  fetched.&lt;br /&gt;Operators used are&lt;br /&gt;+=  this operator is used to add  functions in delegate .&lt;br /&gt;-=  this operatir is used to remove function  from delegate.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Delegate classes&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;System.Delegate&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;The  purpose of a single delegate instance is very similar to a method  pointer from C++.  However, in C#  don't use method pointers, rather, it  save the "metadata" that identifies the target method to call.   System.Delegate contains two critical data elements.  Firstly, it  contains an instance of System.Reflection.MethodInfo â?" in other words,  the .NET metadata that enables method invocation using reflection.&lt;br /&gt;The  second aspect of System.Delegate is the object instance on which the  method needs to be invoked.  Given an unlimited number of objects that  could support a method that matches the MethodInfo signature, we also  need to be able to identify which objects to notify.  The only exception  is when the method identified by MethodInfo is static â?" in which case  the object reference stored by System.Delegate is null.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;System.MulticastDelegate&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;System.MulticastDelegate  therefore, adds to delegates the support for notifying multiple  subscribers.  This is enabled through System.MulticastDelegate's  containment of another System.MulticastDelegate instance.  On  adding  a  subscriber to a multicast delegate, the MulticastDelegate class creates  a new instance of the delegate type, stores the object reference and  the method pointer for the added method into the new instance, and adds  the new delegate instance as the next item in a list of delegate  instances. In effect, the MulticastDelegate class maintains a linked  list of delegate objects.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Sequential Invocation&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;When  invoking the multicast delegate, each delegate instance in the linked  list is called sequentially. This sequential invocation, however, leads  to problems if the invoked method throws an exception or if the delegate  itself returns data.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Multicast Delegate Example 1&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;  System.Collections.Generic;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;  System.Linq;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;namespace&lt;/span&gt; MulticastDelegate1&lt;br /&gt;{&lt;br /&gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Program&lt;/span&gt;&lt;br /&gt; {&lt;br /&gt; &lt;span style="color:green;"&gt;//  Decelaring delegate here, which will refer to  method having void return  type and one string as argument&lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;public&lt;/span&gt;  &lt;span style="color:blue;"&gt;delegate&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt;  &lt;span style="color: rgb(43, 145, 175);"&gt;showDelegate&lt;/span&gt;(&lt;span style="color:blue;"&gt;string&lt;/span&gt; s);&lt;br /&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt;  &lt;span style="color:blue;"&gt;void&lt;/span&gt; Main(&lt;span style="color:blue;"&gt;string&lt;/span&gt;[]  args)&lt;br /&gt; {&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;showDelegate&lt;/span&gt;  s = Display;&lt;br /&gt; s += Show;&lt;br /&gt; s(&lt;span style="color: rgb(163, 21, 21);"&gt;"Hello"&lt;/span&gt;);&lt;br /&gt; s(&lt;span style="color: rgb(163, 21, 21);"&gt;"Scott"&lt;/span&gt;);&lt;br /&gt;  &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.Read();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;  &lt;span style="color:green;"&gt;// User Defind static function to display&lt;/span&gt;&lt;br /&gt;  &lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt;  &lt;span style="color:blue;"&gt;void&lt;/span&gt; Display(&lt;span style="color:blue;"&gt;string&lt;/span&gt; title)&lt;br /&gt; {&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(title);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; &lt;span style="color:green;"&gt;// User defind static function &lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt;  &lt;span style="color:blue;"&gt;void&lt;/span&gt; Show(&lt;span style="color:blue;"&gt;string&lt;/span&gt;  title)&lt;br /&gt; {&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(title);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;OUTPUT:&lt;br /&gt; Hello&lt;br /&gt; Hello&lt;br /&gt; Scott&lt;br /&gt;  Scott&lt;br /&gt;&lt;br /&gt;In the above example, the showDelegate is a delegate, which  can refer any method having return type void and one string as  parameter.  There are two static user defined functions called Display  and Show.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Multicast Delegate Example 2&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;  System.Collections.Generic;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;  System.Linq;&lt;br /&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;namespace&lt;/span&gt; MulticastDelegate&lt;br /&gt;{&lt;br /&gt; &lt;span style="color:green;"&gt;// user defined class for math operation. This  class contains two static method. one method for squre and another  method for double the number.&lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt;  &lt;span style="color: rgb(43, 145, 175);"&gt;MathOperation&lt;/span&gt;&lt;br /&gt; {&lt;br /&gt;  &lt;span style="color:green;"&gt;// Multiply by two method, this method  multiply number by 2 &lt;/span&gt;&lt;br /&gt;  &lt;span style="color:blue;"&gt;public&lt;/span&gt;  &lt;span style="color:blue;"&gt;static&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt;  MultiplyByTwo(&lt;span style="color:blue;"&gt;double&lt;/span&gt; d)&lt;br /&gt; {&lt;br /&gt; &lt;span style="color:blue;"&gt;double&lt;/span&gt; res = d*2;&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: rgb(163, 21, 21);"&gt;"Multiply: "&lt;/span&gt;+res.ToString());&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;  &lt;span style="color:green;"&gt;// squre number method &lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt;  &lt;span style="color:blue;"&gt;void&lt;/span&gt; Squre(&lt;span style="color:blue;"&gt;double&lt;/span&gt;  e)&lt;br /&gt; {&lt;br /&gt; &lt;span style="color:blue;"&gt;double&lt;/span&gt; res = e * e;&lt;br /&gt;  &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: rgb(163, 21, 21);"&gt;"Square"&lt;/span&gt;+res.ToString());&lt;br /&gt; }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;NewProgram&lt;/span&gt;&lt;br /&gt; {&lt;br /&gt; &lt;span style="color:green;"&gt;// Decelaring delegate called del&lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;delegate&lt;/span&gt;  &lt;span style="color:blue;"&gt;void&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;del&lt;/span&gt;(&lt;span style="color:blue;"&gt;double&lt;/span&gt; Qr);&lt;br /&gt;&lt;br /&gt;  &lt;span style="color:blue;"&gt;static&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt;  Main()&lt;br /&gt; {&lt;br /&gt; &lt;span style="color:green;"&gt;// Creating delegate&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(43, 145, 175);"&gt;del&lt;/span&gt; d = &lt;span style="color: rgb(43, 145, 175);"&gt;MathOperation&lt;/span&gt;.MultiplyByTwo;&lt;br /&gt;  &lt;span style="color:green;"&gt;// adding method to del delegate using +=  operator&lt;/span&gt;&lt;br /&gt; d += &lt;span style="color: rgb(43, 145, 175);"&gt;MathOperation&lt;/span&gt;.Squre;&lt;br /&gt;  &lt;span style="color:green;"&gt;//  calling display function. passsing  delegate and double value as parameter&lt;/span&gt;&lt;br /&gt; Display(d, 2.00);&lt;br /&gt;  Display(d, 9.9);&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.ReadLine();&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; &lt;span style="color:green;"&gt;// User defined function to  display result and call appropirate operation&lt;/span&gt;&lt;br /&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt;  Display(&lt;span style="color: rgb(43, 145, 175);"&gt;del&lt;/span&gt; action, &lt;span style="color:blue;"&gt;double&lt;/span&gt; value)&lt;br /&gt;  {&lt;br /&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: rgb(163, 21, 21);"&gt;"Result = "&lt;/span&gt;+ value);&lt;br /&gt;  action(value);&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;The above code is implementing  multicast delegate. In above code, there is a MathOperationClass, this  class is containing two methods. One to double the input parameter and  other to make squre of that.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt;  &lt;span style="color:blue;"&gt;delegate&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt;  &lt;span style="color: rgb(43, 145, 175);"&gt;del&lt;/span&gt;(&lt;span style="color:blue;"&gt;double&lt;/span&gt; Qr);&lt;br /&gt;&lt;br /&gt;This is delegate decelaration. It will  refer method having one double parameter and will return void.&lt;br /&gt;&lt;br /&gt;Display  function is taking delegate and double as parameter.  This function is  displaying the result and calling the delegate.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Article from: http://www.dotnetspark.com/kb/1218-beginners-guide-to-delegates-c-sharp.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-4052160741426808869?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/4052160741426808869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=4052160741426808869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4052160741426808869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4052160741426808869'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2010/06/c-delegates.html' title='C# Delegates'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7249683320918142453</id><published>2010-05-14T02:23:00.000-07:00</published><updated>2010-05-14T02:28:12.552-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Master Page'/><title type='text'>To Reference ASP.NET Master Page Content, Content Pages</title><content type='html'>&lt;span style="font-weight:bold;"&gt;To Access Content Page TextBox Value in MasterPage:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        TextBox txtB = (TextBox)ContentPlaceHolder1.FindControl("txtContentPg");&lt;br /&gt;        txtMaster.Text = "Content Page TextBox Value: " + txtB.Text;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;To Access Master Page Label Value in ContentPage:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        Label l1 = (Label)Master.FindControl("lblMaster");&lt;br /&gt;        lblContentPg.Text = "Master Page Label = "+l1.Text;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7249683320918142453?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7249683320918142453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7249683320918142453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7249683320918142453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7249683320918142453'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2010/05/to-reference-aspnet-master-page-content.html' title='To Reference ASP.NET Master Page Content, Content Pages'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-8747073062995651403</id><published>2010-01-13T05:08:00.000-08:00</published><updated>2010-01-13T05:20:26.980-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#  DateTime'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><category scheme='http://www.blogger.com/atom/ns#' term='date validation'/><title type='text'>Date Validation in C#</title><content type='html'>/// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Determine if Date String is an actual date&lt;br /&gt;        /// Date format = MM/DD/YYYY&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        /// &amp;lt;param name="date"&amp;gt;&amp;lt;/param&amp;gt;&lt;br /&gt;        /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;br /&gt;        private bool ValidateDate(string date)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                // for US, alter to suit if splitting on hyphen, comma, etc.&lt;br /&gt;                string[] dateParts = date.Split('/');&lt;br /&gt;&lt;br /&gt;                // create new date from the parts; if this does not fail&lt;br /&gt;                // the method will return true and the date is valid&lt;br /&gt;                DateTime testDate = new &lt;br /&gt;                    DateTime(Convert.ToInt32(dateParts[2]), &lt;br /&gt;                    Convert.ToInt32(dateParts[0]), &lt;br /&gt;                    Convert.ToInt32(dateParts[1]));&lt;br /&gt;&lt;br /&gt;                 return true;&lt;br /&gt;            }&lt;br /&gt;            catch&lt;br /&gt;            {&lt;br /&gt;                // if a test date cannot be created, the&lt;br /&gt;                // method will return false&lt;br /&gt;                return false;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;Source:: Easy Date Validation in C#&lt;br /&gt;http://www.c-sharpcorner.com/UploadFile/scottlysle/DateValCS02222009225005PM/DateValCS.aspx &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;Date Validation:&lt;br /&gt;try &lt;br /&gt;    {&lt;br /&gt;        departDate = DateTime.Parse(flightDepartureDateTextBox.Text);&lt;br /&gt;    } &lt;br /&gt;catch (Exception ex) &lt;br /&gt;    {&lt;br /&gt;        feedbackLabel.Text = "Invalid data entry: " +&lt;br /&gt;                             "Enter a valid date, for example:  02/02/2010";&lt;br /&gt;        return;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;http://msdn.microsoft.com/en-us/library/system.datetime.tryparse.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-8747073062995651403?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/8747073062995651403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=8747073062995651403' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8747073062995651403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8747073062995651403'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2010/01/date-validation-in-c.html' title='Date Validation in C#'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-8764198944116923671</id><published>2009-12-03T04:15:00.000-08:00</published><updated>2009-12-03T04:21:33.803-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Time Formats'/><category scheme='http://www.blogger.com/atom/ns#' term='C#  DateTime'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><title type='text'>C# DateTime Formats</title><content type='html'>&lt;div style="text-align: center; color: rgb(204, 102, 0);"&gt;&lt;span class="ForumNormalText"&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span class="ForumNormalText"&gt;There are various DateTimeFormats                                                                                                         &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="ForumNormalText"&gt;&lt;p style="font-weight: bold; color: rgb(204, 102, 0);"&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;table align="center" border="1" cellpadding="3" cellspacing="5" width="600"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;DateTime.Now; &lt;/td&gt; &lt;td&gt;4/19/2008 7:04:34 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString(); &lt;/td&gt; &lt;td&gt;4/19/2008 7:04:34 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToShortTimeString()&lt;/td&gt; &lt;td&gt;7:04 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToShortDateString()&lt;/td&gt; &lt;td&gt;4/19/2008&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToLongTimeString()&lt;/td&gt; &lt;td&gt;7:04:34 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToLongDateString()&lt;/td&gt; &lt;td&gt;Saturday, April 19, 2008&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt; &lt;table align="center" border="1" cellpadding="3" cellspacing="5" width="600"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("d")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;4/19/2008&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("D")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Saturday, April 19, 2008&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("f")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Saturday, April 19, 2008 7:04 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("F")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Saturday, April 19, 2008 7:04:34 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("g")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;4/19/2008 7:04 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("G")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;4/19/2008 7:04:34 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("m")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;April 19&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("r")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Sat, 19 Apr 2008 07:04:34 GMT&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("s")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;2008-04-19T07:04:34&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("t")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;7:04 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("T")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;7:04:34 AM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("u")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;2008-04-19 07:04:34Z&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("U")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Saturday, April 19, 2008 12:04:34 PM&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("y")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;April, 2008&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("dddd, MMMM dd yyyy")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Saturday, April 19 2008&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("ddd, MMM d "'"yy")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Sat, Apr 19 '08&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("dddd, MMMM dd")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Saturday, April 19&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("M/yy")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;4/08&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DateTime.Now.ToString("dd-MM-yy")&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;19-04-08&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="ForumNormalText"&gt;&lt;p style="font-weight: bold; color: rgb(204, 102, 0);"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(204, 102, 0);"&gt;&lt;span style="font-size:180%;"&gt;Parsing Date  At ASPX page&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;#&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;DateTime&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.Parse(Eval(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:85%;" &gt;"DateColumnName"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;).ToString()).ToString(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:85%;" &gt;"MMM dd, yyyy"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)%&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(204, 102, 0);"&gt;&lt;span class="ForumNormalText"&gt;&lt;span style="font-size:180%;"&gt;Parsing Date  At .CS page&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;string dt=DateTime.Parse(appdate).ToString("MM/dd/yyyy");&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style="color: rgb(204, 102, 0); font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Some DateTime Conversion in SP&lt;/span&gt;&lt;/p&gt;   &lt;table class="ct2" id="Table1" border="0" cols="2" width="571"&gt;&lt;tbody&gt;&lt;tr valign="top"&gt; &lt;th style="color: rgb(0, 102, 0);" width="21%"&gt; &lt;p align="left"&gt;Style ID&lt;/p&gt;&lt;/th&gt; &lt;th style="color: rgb(0, 102, 0);" width="29%"&gt; &lt;p align="left"&gt;Style Type&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;0 or 100 &lt;/td&gt; &lt;td width="29%"&gt;mon dd yyyy hh:miAM (or PM)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;101&lt;/td&gt; &lt;td width="29%"&gt;mm/dd/yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;102&lt;/td&gt; &lt;td width="29%"&gt;yy.mm.dd&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;103&lt;/td&gt; &lt;td width="29%"&gt;dd/mm/yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;104&lt;/td&gt; &lt;td width="29%"&gt;dd.mm.yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;105&lt;/td&gt; &lt;td width="29%"&gt;dd-mm-yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;106&lt;/td&gt; &lt;td width="29%"&gt;dd mon yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;107&lt;/td&gt; &lt;td width="29%"&gt;Mon dd, yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;108&lt;/td&gt; &lt;td width="29%"&gt;hh:mm:ss&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;9 or 109 &lt;/td&gt; &lt;td width="29%"&gt;mon dd yyyy hh:mi:ss:mmmAM (or PM)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;110&lt;/td&gt; &lt;td width="29%"&gt;mm-dd-yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;111&lt;/td&gt; &lt;td width="29%"&gt;yy/mm/dd&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;112&lt;/td&gt; &lt;td width="29%"&gt;yymmdd&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;13 or 113 &lt;/td&gt; &lt;td width="29%"&gt;dd mon yyyy hh:mm:ss:mmm(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;114&lt;/td&gt; &lt;td width="29%"&gt;hh:mi:ss:mmm(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;20 or 120 &lt;/td&gt; &lt;td width="29%"&gt;yyyy-mm-dd hh:mi:ss(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;21 or 121 &lt;/td&gt; &lt;td width="29%"&gt;yyyy-mm-dd hh:mi:ss.mmm(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;126&lt;/td&gt; &lt;td width="29%"&gt;yyyy-mm-dd Thh:mm:ss.mmm(no spaces)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;130&lt;/td&gt; &lt;td width="29%"&gt;dd mon yyyy hh:mi:ss:mmmAM&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top"&gt; &lt;td width="21%"&gt;131&lt;/td&gt; &lt;td width="29%"&gt;dd/mm/yy hh:mi:ss:mmmAM&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-8764198944116923671?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/8764198944116923671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=8764198944116923671' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8764198944116923671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8764198944116923671'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/12/c-datetime-formats.html' title='C# DateTime Formats'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-8792976173344414297</id><published>2009-11-18T06:14:00.000-08:00</published><updated>2009-11-18T06:32:53.913-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Examples'/><title type='text'>SQL Server : Query XML</title><content type='html'>create function dbo.myAppDateTest(@ReqID nvarchar(30))&lt;br /&gt;RETURNS varchar(30)&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;DECLARE @FileContents XML&lt;br /&gt;   BEGIN&lt;br /&gt;       SELECT @FileContents = flags from tblapptrequest WHERE REQUESTID=@ReqID&lt;br /&gt;   END&lt;br /&gt;return(&lt;br /&gt;SELECT&lt;br /&gt;  x.item.value('appdate[1]','CHAR(10)')&lt;br /&gt;FROM&lt;br /&gt;@FileContents.nodes('SampleXML') AS x(item))&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;--------------------&lt;br /&gt;&lt;br /&gt;select cast(flags as xml).query('appdate').value('appdate[1]','char(10)') as appdate from tblapptrequest where requestid='439'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-8792976173344414297?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/8792976173344414297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=8792976173344414297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8792976173344414297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8792976173344414297'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/11/sql-server-query-xml.html' title='SQL Server : Query XML'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-3760680789654178879</id><published>2009-10-28T06:18:00.001-07:00</published><updated>2009-10-28T06:19:58.901-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Time Formats'/><category scheme='http://www.blogger.com/atom/ns#' term='C#  DateTime'/><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><title type='text'>Date Validation in C# .NET 1.1</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_JqOazdtw43M/SuhEzedi3SI/AAAAAAAABe0/y2tLRN9idsY/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 246px;" src="http://2.bp.blogspot.com/_JqOazdtw43M/SuhEzedi3SI/AAAAAAAABe0/y2tLRN9idsY/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5397639804544539938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=10976309"&gt;&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-3760680789654178879?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/3760680789654178879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=3760680789654178879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3760680789654178879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3760680789654178879'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/10/date-validation-in-c-net-11.html' title='Date Validation in C# .NET 1.1'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_JqOazdtw43M/SuhEzedi3SI/AAAAAAAABe0/y2tLRN9idsY/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7040175958538170</id><published>2009-10-06T06:42:00.000-07:00</published><updated>2009-10-06T06:46:51.434-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Time Formats'/><category scheme='http://www.blogger.com/atom/ns#' term='C#  DateTime'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>DateTime.ToString() Patterns, DateTime.ToString() Examples</title><content type='html'>&lt;div style="text-align: center; color: rgb(204, 102, 0);"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;DateTime.ToString() Examples&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style="color: rgb(204, 102, 0);"&gt;All the patterns:  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;1&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;2&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; HH:mm Tuesday, 22 August 2006 06:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;3&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; hh:mm tt Tuesday, 22 August 2006 06:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;4&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; H:mm Tuesday, 22 August 2006 6:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;5&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; h:mm tt Tuesday, 22 August 2006 6:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;6&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy HH:mm:ss&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;7&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy HH:mm&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 06:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;8&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy hh:mm tt&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 06:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;9&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy H:mm&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 6:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;10&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy h:mm tt&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 6:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;10&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy h:mm tt&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 6:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;10&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy h:mm tt&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 6:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;11&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy HH:mm:ss&lt;/td&gt; &lt;td class="TableCell"&gt;08/22/2006 06:30:07&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;12&lt;/td&gt; &lt;td class="TableCell"&gt; MMMM dd&lt;/td&gt; &lt;td class="TableCell"&gt; August 22 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;13&lt;/td&gt; &lt;td class="TableCell"&gt; MMMM dd&lt;/td&gt; &lt;td class="TableCell"&gt; August 22 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;14&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK&lt;/td&gt; &lt;td class="TableCell"&gt; 2006-08-22T06:30:07.7199222-04:00 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;15&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK&lt;/td&gt; &lt;td class="TableCell"&gt; 2006-08-22T06:30:07.7199222-04:00 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;16&lt;/td&gt; &lt;td class="TableCell"&gt; ddd, dd MMM yyyy HH':'mm':'ss 'GMT'&lt;/td&gt; &lt;td class="TableCell"&gt; Tue, 22 Aug 2006 06:30:07 GMT &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;17&lt;/td&gt; &lt;td class="TableCell"&gt; ddd, dd MMM yyyy HH':'mm':'ss 'GMT'&lt;/td&gt; &lt;td class="TableCell"&gt; Tue, 22 Aug 2006 06:30:07 GMT &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;18&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy'-'MM'-'dd'T'HH':'mm':'ss&lt;/td&gt; &lt;td class="TableCell"&gt; 2006-08-22T06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;19&lt;/td&gt; &lt;td class="TableCell"&gt; HH:mm&lt;/td&gt; &lt;td class="TableCell"&gt; 06:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;20&lt;/td&gt; &lt;td class="TableCell"&gt; hh:mm tt&lt;/td&gt; &lt;td class="TableCell"&gt; 06:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;21&lt;/td&gt; &lt;td class="TableCell"&gt; H:mm&lt;/td&gt; &lt;td class="TableCell"&gt; 6:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;22&lt;/td&gt; &lt;td class="TableCell"&gt; h:mm tt&lt;/td&gt; &lt;td class="TableCell"&gt; 6:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;23&lt;/td&gt; &lt;td class="TableCell"&gt; HH:mm:ss&lt;/td&gt; &lt;td class="TableCell"&gt; 06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;24&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy'-'MM'-'dd HH':'mm':'ss'Z'&lt;/td&gt; &lt;td class="TableCell"&gt; 2006-08-22 06:30:07Z &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;25&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy HH:mm:ss&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;26&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy MMMM&lt;/td&gt; &lt;td class="TableCell"&gt; 2006 August &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;27&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy MMMM&lt;/td&gt; &lt;td class="TableCell"&gt; 2006 August &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'd' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'D' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'f' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy HH:mm&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 06:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;1&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy hh:mm&lt;/td&gt; &lt;td class="TableCell"&gt; tt Tuesday, 22 August 2006 06:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;2&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy H:mm&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 6:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;3&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy h:mm&lt;/td&gt; &lt;td class="TableCell"&gt; tt Tuesday, 22 August 2006 6:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'F' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy HH:mm:ss&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'g' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy HH:mm&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 06:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;1&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy hh:mm&lt;/td&gt; &lt;td class="TableCell"&gt; tt 08/22/2006 06:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;2&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy H:mm&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 6:30 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;3&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy h:mm tt&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 6:30 AM &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'G' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; MM/dd/yyyy HH:mm:ss&lt;/td&gt; &lt;td class="TableCell"&gt; 08/22/2006 06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'm' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; MMMM dd&lt;/td&gt; &lt;td class="TableCell"&gt; August 22 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'r' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; ddd, dd MMM yyyy HH':'mm':'ss 'GMT'&lt;/td&gt; &lt;td class="TableCell"&gt; Tue, 22 Aug 2006 06:30:07 GMT &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 's' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy'-'MM'-'dd'T'HH':'mm':'ss&lt;/td&gt; &lt;td class="TableCell"&gt; 2006-08-22T06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'u' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy'-'MM'-'dd HH':'mm':'ss'Z'&lt;/td&gt; &lt;td class="TableCell"&gt; 2006-08-22 06:30:07Z &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'U' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; dddd, dd MMMM yyyy HH:mm:ss&lt;/td&gt; &lt;td class="TableCell"&gt; Tuesday, 22 August 2006 06:30:07 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;h2&gt;The patterns for DateTime.ToString ( 'y' ) :  &lt;/h2&gt;  &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;0&lt;/td&gt; &lt;td class="TableCell"&gt; yyyy MMMM 2006 August &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;     &lt;h2 style="color: rgb(204, 102, 0);"&gt;Building a custom DateTime.ToString Patterns &lt;/h2&gt;  &lt;p&gt;The following details the meaning of each pattern character. Not the &lt;strong&gt;K&lt;/strong&gt; and &lt;strong&gt;z&lt;/strong&gt; character. &lt;/p&gt;   &lt;table class="TableClass" cellpadding="2" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;d&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the day of the month as a number from 1 through 31. A single-digit day is formatted without a leading zero&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;dd&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the day of the month as a number from 01 through 31. A single-digit day is formatted with a leading zero&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;ddd&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the abbreviated name of the day of the week (Mon, Tues, Wed etc)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;dddd&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the full name of the day of the week (Monday, Tuesday etc)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;h&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;12-hour clock hour (e.g. 7)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;hh&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;12-hour clock, with a leading 0  (e.g. 07)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;H&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;24-hour clock hour  (e.g. 19)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;HH&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;24-hour clock hour, with a leading 0  (e.g. 19)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;m&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Minutes&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;mm&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Minutes with a leading zero&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;M&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Month number&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;MM&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Month number with leading zero&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;MMM&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Abbreviated Month Name (e.g. Dec)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;MMMM&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Full month name (e.g. December)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;s&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Seconds&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;ss&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Seconds with leading zero&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;t&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Abbreviated AM / PM (e.g. A  or P)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;tt&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;AM / PM (e.g. AM  or PM&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;y&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Year, no leading zero (e.g. 2001 would be 1)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;yy&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Year, leadin zero (e.g. 2001 would be 01)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;yyy&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Year, (e.g. 2001 would be 2001)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;yyyy&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Year, (e.g. 2001 would be 2001)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;K&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the time zone information of a date and time value (e.g. +05:00)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;z&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;With &lt;a href="http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm"&gt;DateTime&lt;/a&gt; values, represents the signed offset of the local operating system's time zone from Coordinated Universal Time (UTC), measured in hours. (e.g. +6)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;zz&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;As z but with leadin zero (e.g. +06)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;zzz&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;With &lt;a href="http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm"&gt;DateTime&lt;/a&gt; values, represents the signed offset of the local operating system's time zone from UTC, measured in hours and minutes. (e.g. +06:00)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;f&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the most significant digit of the seconds fraction; that is, it represents the tenths of a second in a date and time value. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;ff&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the two most significant digits of the seconds fraction; that is, it represents the hundredths of a second in a date and time value.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;fff&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the three most significant digits of the seconds fraction; that is, it represents the milliseconds in a date and time value.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;ffff&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the four most significant digits of the seconds fraction; that is, it represents the ten thousandths of a second in a date and time value. While it is possible to display the ten thousandths of a second component of a time value, that value may not be meaningful. The precision of date and time values depends on the resolution of the system clock. On Windows NT 3.5 and later, and Windows Vista operating systems, the clock's resolution is approximately 10-15 milliseconds. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;fffff&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the five most significant digits of the seconds fraction; that is, it represents the hundred thousandths of a second in a date and time value. While it is possible to display the hundred thousandths of a second component of a time value, that value may not be meaningful. The precision of date and time values depends on the resolution of the system clock. On Windows NT 3.5 and later, and Windows Vista operating systems, the clock's resolution is approximately 10-15 milliseconds. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;ffffff&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the six most significant digits of the seconds fraction; that is, it represents the millionths of a second in a date and time value. While it is possible to display the millionths of a second component of a time value, that value may not be meaningful. The precision of date and time values depends on the resolution of the system clock. On Windows NT 3.5 and later, and Windows Vista operating systems, the clock's resolution is approximately 10-15 milliseconds. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;fffffff&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the seven most significant digits of the seconds fraction; that is, it represents the ten millionths of a second in a date and time value. While it is possible to display the ten millionths of a second component of a time value, that value may not be meaningful. The precision of date and time values depends on the resolution of the system clock. On Windows NT 3.5 and later, and Windows Vista operating systems, the clock's resolution is approximately 10-15 milliseconds. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the most significant digit of the seconds fraction; that is, it represents the tenths of a second in a date and time value. Nothing is displayed if the digit is zero. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/td&gt; &lt;td class="TableCell"&gt;Represents the time separator defined in the current DateTimeFormatInfo..::.TimeSeparator property. This separator is used to differentiate hours, minutes, and seconds. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;/&lt;/strong&gt; &lt;/td&gt; &lt;td class="TableCell"&gt; Represents the date separator defined in the current DateTimeFormatInfo..::.DateSeparator property. This separator is used to differentiate years, months, and days. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;"&lt;/strong&gt; &lt;/td&gt; &lt;td class="TableCell"&gt; Represents a quoted string (quotation mark). Displays the literal value of any string between two quotation marks ("). Your application should precede each quotation mark with an escape character (\). &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;&lt;/strong&gt;'&lt;/td&gt; &lt;td class="TableCell"&gt; Represents a quoted string (apostrophe). Displays the literal value of any string between two apostrophe (') characters. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="TableCell"&gt;&lt;strong&gt;%c&lt;/strong&gt; &lt;/td&gt; &lt;td class="TableCell"&gt;Represents the result associated with a c custom format specifier, when the custom date and time format string consists solely of that custom format specifier. That is, to use the d, f, F, h, m, s, t, y, z, H, or M custom format specifier by itself, the application should specify %d, %f, %F, %h, %m, %s, %t, %y, %z, %H, or %M. For more information about using a single format specifier, see Using Single Custom Format Specifiers. &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;pre&gt;        &lt;/pre&gt;&lt;blockquote&gt;&lt;a style="color: rgb(0, 0, 153);" href="http://www.longhorncorner.com/Forums/ShowMessages.aspx?ThreadID=43605"&gt;http://www.longhorncorner.com/Forums/ShowMessages.aspx?ThreadID=43605&lt;/a&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7040175958538170?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7040175958538170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7040175958538170' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7040175958538170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7040175958538170'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/10/datetimetostring-patterns.html' title='DateTime.ToString() Patterns, DateTime.ToString() Examples'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5133116505203827679</id><published>2009-10-06T05:42:00.000-07:00</published><updated>2009-10-06T06:17:31.263-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Time Formats'/><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Examples'/><title type='text'>SQL Server Time Formats, SQL Server Time Format Examples</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_JqOazdtw43M/SstDYItxR6I/AAAAAAAABdY/XkkK6XOKbOQ/s1600-h/time.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 268px; height: 400px;" src="http://3.bp.blogspot.com/_JqOazdtw43M/SstDYItxR6I/AAAAAAAABdY/XkkK6XOKbOQ/s400/time.JPG" alt="" id="BLOGGER_PHOTO_ID_5389475461014308770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:fuchsia;"&gt;cast&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;datediff&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;mi&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:red;"&gt;'11:00 AM'&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:red;"&gt;'7:10 PM'&lt;/span&gt;&lt;span style="color:gray;"&gt;)/&lt;/span&gt;60 &lt;span style="color:blue;"&gt;as&lt;/span&gt; &lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;10&lt;span style="color:gray;"&gt;))+&lt;/span&gt;&lt;span style="color:red;"&gt;':'&lt;/span&gt;&lt;span style="color:gray;"&gt;+&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;cast&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;datediff&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;mi&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:red;"&gt;'11:00 AM'&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:red;"&gt;'7:10 PM'&lt;/span&gt;&lt;span style="color:gray;"&gt;)%&lt;/span&gt;60 &lt;span style="color:blue;"&gt;as&lt;/span&gt; &lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;10&lt;span style="color:gray;"&gt;))+&lt;/span&gt;&lt;span style="color:red;"&gt;':00'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:red;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:fuchsia;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;8&lt;span style="color:gray;"&gt;),&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;108&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;span style="color:blue;"&gt;AS&lt;/span&gt; HourMinute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:fuchsia;"&gt;convert&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;10&lt;span style="color:gray;"&gt;),&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;getdate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;114&lt;span style="color:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:gray;"&gt;right(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt; &lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;getDate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 100&lt;span style="color:gray;"&gt;),&lt;/span&gt;7&lt;span style="color:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:gray;"&gt;RIGHT(&lt;/span&gt;&lt;span style="color:red;"&gt;'0'&lt;/span&gt;&lt;span style="color:gray;"&gt;+&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;LTRIM&lt;/span&gt;&lt;span style="color:gray;"&gt;(RIGHT(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;getDate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;100&lt;span style="color:gray;"&gt;),&lt;/span&gt;8&lt;span style="color:gray;"&gt;)),&lt;/span&gt;7&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:fuchsia;"&gt;REPLACE&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;REPLACE&lt;/span&gt;&lt;span style="color:gray;"&gt;(RIGHT(&lt;/span&gt;&lt;span style="color:red;"&gt;'0'&lt;/span&gt;&lt;span style="color:gray;"&gt;+&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;LTRIM&lt;/span&gt;&lt;span style="color:gray;"&gt;(RIGHT(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;getDate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;100&lt;span style="color:gray;"&gt;),&lt;/span&gt;7&lt;span style="color:gray;"&gt;)),&lt;/span&gt;7&lt;span style="color:gray;"&gt;),&lt;/span&gt;&lt;span style="color:red;"&gt;'AM'&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:red;"&gt;' AM'&lt;/span&gt;&lt;span style="color:gray;"&gt;),&lt;/span&gt;&lt;span style="color:red;"&gt;'PM'&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:red;"&gt;' PM'&lt;/span&gt;&lt;span style="color:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:gray;"&gt;RIGHT(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;20&lt;span style="color:gray;"&gt;),&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 100&lt;span style="color:gray;"&gt;),&lt;/span&gt;7&lt;span style="color:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:fuchsia;"&gt;stuff&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt; &lt;span style="color:gray;"&gt;right(&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;convert&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt; &lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;26&lt;span style="color:gray;"&gt;),&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;getDate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 109 &lt;span style="color:gray;"&gt;),&lt;/span&gt; 15 &lt;span style="color:gray;"&gt;),&lt;/span&gt; 7&lt;span style="color:gray;"&gt;,&lt;/span&gt; 7&lt;span style="color:gray;"&gt;,&lt;/span&gt; &lt;span style="color:red;"&gt;' '&lt;/span&gt; &lt;span style="color:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:gray;"&gt;RIGHT(&lt;/span&gt;&lt;span style="color:red;"&gt;'0'&lt;/span&gt;&lt;span style="color:gray;"&gt;+&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;LTRIM&lt;/span&gt;&lt;span style="color:gray;"&gt;(RIGHT(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;getDate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;100&lt;span style="color:gray;"&gt;),&lt;/span&gt;8&lt;span style="color:gray;"&gt;)),&lt;/span&gt;7&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style="color:fuchsia;"&gt;substring&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;convert&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;20&lt;span style="color:gray;"&gt;),&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;GetDate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 9&lt;span style="color:gray;"&gt;),&lt;/span&gt; 13&lt;span style="color:gray;"&gt;,&lt;/span&gt; 5&lt;span style="color:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;+&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:red;"&gt;' '&lt;/span&gt; &lt;span style="color:gray;"&gt;+&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;substring&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;convert&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;varchar&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;30&lt;span style="color:gray;"&gt;),&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;GetDate&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 9&lt;span style="color:gray;"&gt;),&lt;/span&gt; 25&lt;span style="color:gray;"&gt;,&lt;/span&gt; 2&lt;span style="color:gray;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;SELECT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:fuchsia;"   &gt;GETDATE&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;()&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:blue;"&gt;AS&lt;/span&gt; CurrentDate&lt;span style="color:gray;"&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;RIGHT(&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:fuchsia;"   &gt;CONVERT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;VARCHAR&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;,&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;span style="color:fuchsia;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 100&lt;span style="color:gray;"&gt;),&lt;/span&gt;7&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;span style="color:blue;"&gt;AS&lt;/span&gt; CurrentTime&lt;span style="color:gray;"&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:&amp;quot;;font-size:10pt;color:fuchsia;"   &gt;CONVERT&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:blue;"   &gt;VARCHAR&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:gray;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;10&lt;span style="color:gray;"&gt;),&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 101&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;span style="color:gray;"&gt;+&lt;/span&gt; &lt;span style="color:red;"&gt;' '&lt;/span&gt; &lt;span style="color:gray;"&gt;+&lt;/span&gt; &lt;span style="color:gray;"&gt;RIGHT(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt; 100&lt;span style="color:gray;"&gt;),&lt;/span&gt;7&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;span style="color:blue;"&gt;AS&lt;/span&gt; CurrentDateTime&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5133116505203827679?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5133116505203827679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5133116505203827679' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5133116505203827679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5133116505203827679'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/10/sql-server-time-formats-sql-server-time.html' title='SQL Server Time Formats, SQL Server Time Format Examples'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_JqOazdtw43M/SstDYItxR6I/AAAAAAAABdY/XkkK6XOKbOQ/s72-c/time.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-151417915080502032</id><published>2009-10-01T02:34:00.000-07:00</published><updated>2009-10-01T04:41:20.821-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Disabling an ASP.NET Button when Clicked'/><title type='text'>Disabling an ASP.NET Button when Clicked</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;span style="color: rgb(204, 102, 0);"&gt;Disabling an ASP.NET Button when Clicked or On Mouse click&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;tried this...&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&amp;lt;asp:Button runat="server" Text="My Button" OnClientClick="this.disabled=true;" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;it failed but.  Why? because if you disable a button in the onclick it doesn't post back. the button gets disabled before the form posts back.&lt;br /&gt;&lt;br /&gt;Instead of disabling the button when you click it, set the onclick event to fire a function that returns false.  So it looks something like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&amp;lt;asp:Button runat="server" Text="My Button" OnClientClick="this.onclick=new Function('return false;');" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or you can disable an ASP.NET Button, in the following way&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&amp;lt;a href="#"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&amp;lt;img id="btnSubmit" height="39" alt="Next Page" src="Media/Global/nextpage-off.GIF"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;width="132" border="0" name="btnSubmit" onclick="ConfirmVisittype();&lt;span style="color: rgb(0, 0, 153);"&gt;new Function('return false;');&lt;/span&gt;"&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or you can disable an ASP.NET Button, in the following way&lt;br /&gt;&lt;br /&gt;&lt;div style="color: rgb(51, 51, 255);" class="msg 1st"&gt;&amp;lt;a href="#"&amp;gt;&lt;br /&gt;&amp;lt;img id="btnSubmit" height="39" alt="Next Page" src="Media/Global/nextpage-off.GIF"&lt;br /&gt;width="132" border="0" name="btnSubmit" onclick="ConfirmVisittype();" onmousedown=fndis();&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt; &lt;div class="msg Nth"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;function  fndis()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;document.getElementById('btnSubmit').onmousedown=function(){};&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;function beginRequest(sender, eventArgs)&lt;br /&gt; {&lt;br /&gt;     // Get the button&lt;br /&gt;     var Button1 = $get('&lt;%=Button1.ClientID %&gt;')&lt;br /&gt;     // Set its text to Loading&lt;br /&gt;     Button1.value = 'Loading';&lt;br /&gt;     // Disable the Button&lt;br /&gt;     Button1.disabled = true&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-151417915080502032?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/151417915080502032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=151417915080502032' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/151417915080502032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/151417915080502032'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/10/disabling-aspnet-button-when-clicked.html' title='Disabling an ASP.NET Button when Clicked'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2115607027704576797</id><published>2009-09-01T06:44:00.000-07:00</published><updated>2009-09-01T07:06:30.988-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Examples'/><title type='text'>SQLServer Find nth lowest salary from Employee</title><content type='html'>SELECT TOP 1 salary&lt;br /&gt;FROM (&lt;br /&gt;SELECT DISTINCT TOP 8 salary&lt;br /&gt;FROM tblemployee&lt;br /&gt;ORDER BY salary) a&lt;br /&gt;ORDER BY salary DESC&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can change and use it for getting nth highest salary from Employee table as follows&lt;br /&gt;&lt;br /&gt;SELECT TOP 1 salary&lt;br /&gt;FROM (&lt;br /&gt;SELECT DISTINCT TOP n salary&lt;br /&gt;FROM employee&lt;br /&gt;ORDER BY salary DESC) a&lt;br /&gt;ORDER BY salary&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;Query to Find the Second/Nth Highest Column Value in a Table&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SELECT TOP 1 Salary FROM (SELECT TOP 2 Salary FROM Employee ORDER BY Salary DESC) AS E ORDER BY Salary ASC&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);font-size:100%;" &gt;Note that if we had to get the fourth highest Salary, we could do so by simply changing the subquery from TOP 2 to TOP 4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Query to Find the Second Lowest Column Value in a Table&lt;/span&gt;&lt;br /&gt;SELECT TOP 1 Salary FROM (SELECT TOP 2 Salary FROM Employee ORDER BY Salary ASC) AS E ORDER BY Salary DESC&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2115607027704576797?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2115607027704576797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2115607027704576797' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2115607027704576797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2115607027704576797'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/09/sqlserver-find-nth-lowest-salary-from.html' title='SQLServer Find nth lowest salary from Employee'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2317622134333355717</id><published>2009-09-01T05:50:00.000-07:00</published><updated>2009-09-01T05:54:23.538-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Examples'/><title type='text'>SQL SERVER – Find Nth Highest Salary of Employee</title><content type='html'>&lt;h2 style="font-weight: bold; text-align: center; color: rgb(204, 102, 0);"&gt;&lt;span style="font-size:180%;"&gt;SQL SERVER – Find Nth Highest Salary of Employee&lt;/span&gt;&lt;/h2&gt;The following solution is for getting  6th highest salary from Employee table ,&lt;br /&gt;&lt;br /&gt;&lt;code style="font-size: 12px;"&gt;&lt;span style="color: blue;"&gt;SELECT TOP &lt;/span&gt;&lt;span style="color: black;"&gt;1 salary&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM &lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;SELECT DISTINCT TOP &lt;/span&gt;&lt;span style="color: black;"&gt;6 salary&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM &lt;/span&gt;&lt;span style="color: black;"&gt;employee&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;ORDER BY &lt;/span&gt;&lt;span style="color: black;"&gt;salary &lt;/span&gt;&lt;span style="color: blue;"&gt;DESC&lt;/span&gt;&lt;span style="color: gray;"&gt;) &lt;/span&gt;&lt;span style="color: black;"&gt;a&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;ORDER BY &lt;/span&gt;&lt;span style="color: black;"&gt;salary&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You can change and use it for getting  nth highest salary from Employee table as follows&lt;br /&gt;&lt;br /&gt;&lt;code style="font-size: 12px;"&gt;&lt;span style="color: blue;"&gt;SELECT TOP &lt;/span&gt;&lt;span style="color: black;"&gt;1 salary&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM &lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;SELECT DISTINCT TOP &lt;/span&gt;&lt;span style="color: black;"&gt;n salary&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM &lt;/span&gt;&lt;span style="color: black;"&gt;employee&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;ORDER BY &lt;/span&gt;&lt;span style="color: black;"&gt;salary &lt;/span&gt;&lt;span style="color: blue;"&gt;DESC&lt;/span&gt;&lt;span style="color: gray;"&gt;) &lt;/span&gt;&lt;span style="color: black;"&gt;a&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;ORDER BY &lt;/span&gt;&lt;span style="color: black;"&gt;salary&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;where n &gt; 1 (n  is always greater than one)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2317622134333355717?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2317622134333355717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2317622134333355717' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2317622134333355717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2317622134333355717'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/09/sql-server-find-nth-highest-salary-of.html' title='SQL SERVER – Find Nth Highest Salary of Employee'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2797648743741303905</id><published>2009-09-01T05:33:00.000-07:00</published><updated>2009-09-01T05:46:47.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Examples'/><title type='text'>SQLServer useful SQL Server DateTime functions.</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;SQLServer useful SQL Server DateTime functions.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;—-Today&lt;br /&gt;SELECT GETDATE() ‘Today’&lt;br /&gt;—-Yesterday&lt;br /&gt;SELECT DATEADD(d,-1,GETDATE()) ‘Yesterday’&lt;br /&gt;—-First Day of Current Week&lt;br /&gt;SELECT DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0) ‘First Day of Current Week’&lt;br /&gt;—-Last Day of Current Week&lt;br /&gt;SELECT DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6) ‘Last Day of Current Week’&lt;br /&gt;—-First Day of Last Week&lt;br /&gt;SELECT DATEADD(wk,DATEDIFF(wk,7,GETDATE()),0) ‘First Day of Last Week’&lt;br /&gt;—-Last Day of Last Week&lt;br /&gt;SELECT DATEADD(wk,DATEDIFF(wk,7,GETDATE()),6) ‘Last Day of Last Week’&lt;br /&gt;—-First Day of Current Month&lt;br /&gt;SELECT DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0) ‘First Day of Current Month’&lt;br /&gt;—-Last Day of Current Month&lt;br /&gt;SELECT DATEADD(ms,- 3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE())+1,0))) ‘Last Day of Current Month’&lt;br /&gt;—-First Day of Last Month&lt;br /&gt;SELECT DATEADD(mm,-1,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)) ‘First Day of Last Month’&lt;br /&gt;—-Last Day of Last Month&lt;br /&gt;SELECT DATEADD(ms,-3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0))) ‘Last Day of Last Month’&lt;br /&gt;—-First Day of Current Year&lt;br /&gt;SELECT DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0) ‘First Day of Current Year’&lt;br /&gt;—-Last Day of Current Year&lt;br /&gt;SELECT DATEADD(ms,-3,DATEADD(yy,0,DATEADD(yy,DATEDIFF(yy,0,GETDATE())+1,0))) ‘Last Day of Current Year’&lt;br /&gt;—-First Day of Last Year&lt;br /&gt;SELECT DATEADD(yy,-1,DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0)) ‘First Day of Last Year’&lt;br /&gt;—-Last Day of Last Year&lt;br /&gt;SELECT DATEADD(ms,-3,DATEADD(yy,0,DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0))) ‘Last Day of Last Year’&lt;br /&gt;&lt;h2 style="color: rgb(204, 102, 0);"&gt;&lt;span style="font-size:180%;"&gt;SQL SERVER – Get Time in Hour:Minute Format from a Datetime&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;&lt;p style="text-align: justify;"&gt;&lt;strong&gt;SQL Server 2000/2005&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&lt;code  style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;SELECT&lt;br /&gt;&lt;/span&gt;&lt;span style="color:magenta;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;8&lt;/span&gt;&lt;span style="color:gray;"&gt;),&lt;/span&gt;&lt;span style="color:magenta;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;&lt;span style="color:black;"&gt;108&lt;/span&gt;&lt;span style="color:gray;"&gt;) &lt;/span&gt;&lt;span style="color:blue;"&gt;AS &lt;/span&gt;&lt;span style="color:black;"&gt;HourMinuteSecond&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style="color:magenta;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;8&lt;/span&gt;&lt;span style="color:gray;"&gt;),&lt;/span&gt;&lt;span style="color:magenta;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;&lt;span style="color:black;"&gt;101&lt;/span&gt;&lt;span style="color:gray;"&gt;) &lt;/span&gt;&lt;span style="color:blue;"&gt;AS &lt;/span&gt;&lt;span style="color:black;"&gt;DateOnly&lt;br /&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;strong&gt;SQL Server 2008&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&lt;code  style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;SELECT&lt;br /&gt;&lt;/span&gt;&lt;span style="color:magenta;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;TIME&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:magenta;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;()) &lt;/span&gt;&lt;span style="color:blue;"&gt;AS &lt;/span&gt;&lt;span style="color:black;"&gt;HourMinuteSecond&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style="color:magenta;"&gt;CONVERT&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;DATE&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt;&lt;span style="color:magenta;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;(),&lt;/span&gt;&lt;span style="color:black;"&gt;101&lt;/span&gt;&lt;span style="color:gray;"&gt;) &lt;/span&gt;&lt;span style="color:blue;"&gt;AS &lt;/span&gt;&lt;span style="color:black;"&gt;DateOnly&lt;br /&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;h2 style="color: rgb(153, 51, 0);"&gt;&lt;span style="font-size:180%;"&gt;SQL SERVER – 2008 – Get Current System Date Time&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;&lt;p style="text-align: justify;"&gt;&lt;code  style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color:magenta;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;() &lt;/span&gt;&lt;span style="color:blue;"&gt;AS &lt;/span&gt;&lt;span style="color:black;"&gt;CurrentDateTime&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;code  style="font-size:12px;"&gt;&lt;span style="color:blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color:red;"&gt;'SYSDATETIME' &lt;/span&gt;&lt;span style="color:blue;"&gt;AS &lt;/span&gt;&lt;span style="color:black;"&gt;FunctionName&lt;/span&gt;&lt;span style="color:gray;"&gt;, &lt;/span&gt;&lt;span style="color:black;"&gt;SYSDATETIME&lt;/span&gt;&lt;span style="color:gray;"&gt;() &lt;/span&gt;&lt;span style="color:blue;"&gt;AS &lt;/span&gt;&lt;span style="color:black;"&gt;DateTimeFormat&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;UNION &lt;/span&gt;&lt;span style="color:gray;"&gt;ALL&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color:red;"&gt;'SYSDATETIMEOFFSET'&lt;/span&gt;&lt;span style="color:gray;"&gt;, &lt;/span&gt;&lt;span style="color:black;"&gt;SYSDATETIMEOFFSET&lt;/span&gt;&lt;span style="color:gray;"&gt;()&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;UNION &lt;/span&gt;&lt;span style="color:gray;"&gt;ALL&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color:red;"&gt;'SYSUTCDATETIME'&lt;/span&gt;&lt;span style="color:gray;"&gt;, &lt;/span&gt;&lt;span style="color:black;"&gt;SYSUTCDATETIME&lt;/span&gt;&lt;span style="color:gray;"&gt;()&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;UNION &lt;/span&gt;&lt;span style="color:gray;"&gt;ALL&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color:red;"&gt;'CURRENT_TIMESTAMP'&lt;/span&gt;&lt;span style="color:gray;"&gt;, &lt;/span&gt;&lt;span style="color:magenta;"&gt;CURRENT_TIMESTAMP&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;UNION &lt;/span&gt;&lt;span style="color:gray;"&gt;ALL&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color:red;"&gt;'GETDATE'&lt;/span&gt;&lt;span style="color:gray;"&gt;, &lt;/span&gt;&lt;span style="color:magenta;"&gt;GETDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;()&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;UNION &lt;/span&gt;&lt;span style="color:gray;"&gt;ALL&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;SELECT &lt;/span&gt;&lt;span style="color:red;"&gt;'GETUTCDATE'&lt;/span&gt;&lt;span style="color:gray;"&gt;, &lt;/span&gt;&lt;span style="color:magenta;"&gt;GETUTCDATE&lt;/span&gt;&lt;span style="color:gray;"&gt;() &lt;/span&gt;&lt;/code&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2797648743741303905?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2797648743741303905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2797648743741303905' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2797648743741303905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2797648743741303905'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/09/sqlserver-useful-sql-server-datetime.html' title='SQLServer useful SQL Server DateTime functions.'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7001905057424189806</id><published>2009-08-25T00:20:00.000-07:00</published><updated>2009-08-25T00:21:41.646-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Client Host Name'/><category scheme='http://www.blogger.com/atom/ns#' term='Client IP address'/><title type='text'>ASP.NET Client IP address, Client Host Name, visitor's browser type etc.</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;ASP.NET Client IP address, Client Host Name, visitor's browser type etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;This example demonstrates how to find out the visitor's browser type, IP address, and more:&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;b&amp;gt;You are browsing this site with:&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;%Response.Write(Request.ServerVariables("http_user_agent"))%&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;b&amp;gt;Your IP address is:&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;%Response.Write(Request.ServerVariables("remote_addr"))%&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;b&amp;gt;The DNS lookup of the IP address is:&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;%Response.Write(Request.ServerVariables("remote_host"))%&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;b&amp;gt;The method used to call the page:&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;%Response.Write(Request.ServerVariables("request_method"))%&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;b&amp;gt;The server's domain name:&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;%Response.Write(Request.ServerVariables("server_name"))%&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;b&amp;gt;The server's port:&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;%Response.Write(Request.ServerVariables("server_port"))%&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;b&amp;gt;The server's software:&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;%Response.Write(Request.ServerVariables("server_software"))%&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7001905057424189806?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7001905057424189806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7001905057424189806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7001905057424189806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7001905057424189806'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/08/aspnet-client-ip-address-client-host.html' title='ASP.NET Client IP address, Client Host Name, visitor&apos;s browser type etc.'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-553687628119344412</id><published>2009-07-01T23:39:00.000-07:00</published><updated>2009-07-01T23:40:23.782-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='silvernight.wordpress.com'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Examples'/><title type='text'>SQL Examples</title><content type='html'>&lt;a href="http://www.blogger.com/post-create.g?blogID=10976309"&gt;&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:180%;"&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://silvernight.wordpress.com/"&gt;http://silvernight.wordpress.com/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-553687628119344412?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/553687628119344412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=553687628119344412' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/553687628119344412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/553687628119344412'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/07/sql-examples.html' title='SQL Examples'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2242468135070722376</id><published>2009-07-01T23:30:00.000-07:00</published><updated>2009-07-01T23:35:48.297-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><title type='text'>DateTime Formats in C#</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;DateTime Formats in C#&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;string appdate =  System.DateTime.Now.ToString("M/d/yyyy");&lt;br /&gt;string time=DateTime.Now.ToString("hhmmtt");&lt;br /&gt;&lt;br /&gt;string fileName = DateTime.Now.ToShortDateString().Replace("/","-") ;&lt;br /&gt;&lt;br /&gt;string appdate=DateTime.ParseExact(&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;txtAppDate.Text&lt;/span&gt;, "M/d/yyyy", new System.Globalization.DateTimeFormatInfo()).ToString("M/d/yyyy");&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2242468135070722376?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2242468135070722376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2242468135070722376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2242468135070722376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2242468135070722376'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/07/datetime-formats-in-c.html' title='DateTime Formats in C#'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-6802858669236978442</id><published>2009-03-09T13:38:00.000-07:00</published><updated>2009-03-09T13:57:14.770-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><category scheme='http://www.blogger.com/atom/ns#' term='Dates'/><title type='text'>StartDate and Endate of the Month in C# and SQL Server</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(204, 102, 0);font-family:verdana;font-size:130%;"  &gt;StartDate and Endate of the Month in C#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DateTime startDate= new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);&lt;br /&gt;DateTime endDate = startDate.AddMonths(1).AddDays(-1);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);font-family:verdana;font-size:130%;"  &gt;StartDate and Endate of the Month  in SQL Server&lt;/span&gt;&lt;br /&gt;select convert(nvarchar(8),dateadd(mm, datediff(mm, 0, '3/4/2009'), 0), 112)&lt;br /&gt;select convert(nvarchar(8),dateadd( dd, -1, dateadd( mm, 1, dateadd( dd, -day('2/2/2009')+1, '2/2/2009'))),112)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;Example in C#:: To get First day of the Month and Last day of the Month Using C#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;            DateTime givenDate=DateTime.Parse(TxtAppDate.Text);&lt;br /&gt;&lt;br /&gt;            int year=givenDate.Year;&lt;br /&gt;            int month=givenDate.Month;&lt;br /&gt;&lt;br /&gt;            DateTime startDate= new DateTime(year, month, 1);&lt;br /&gt;            DateTime endDate = startDate.AddMonths(1).AddDays(-1);&lt;br /&gt;&lt;br /&gt;            while(startDate &amp;lt;= endDate)&lt;br /&gt;            {&lt;br /&gt;                string appdate=startDate.ToShortDateString();&lt;br /&gt;                GetDetails(appdate);           &lt;br /&gt;                startDate=startDate.AddDays(1);&lt;br /&gt;            }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-6802858669236978442?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/6802858669236978442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=6802858669236978442' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6802858669236978442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6802858669236978442'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/03/startdate-and-endate-of-month-in-c-and.html' title='StartDate and Endate of the Month in C# and SQL Server'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-218215547837867619</id><published>2009-01-22T03:07:00.000-08:00</published><updated>2009-01-22T03:08:27.759-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Image Resize'/><title type='text'>Image resize using GetThumbnailImage Function</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Image resize using .GetThumbnailImage Function&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Collections;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Drawing.Imaging;&lt;br /&gt;using System.IO.Compression;&lt;br /&gt;using System.Drawing.Drawing2D;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public partial class ImageResize : System.Web.UI.Page&lt;br /&gt;{&lt;br /&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;        Image thumbnailImage;&lt;br /&gt;        Bitmap originalImage;&lt;br /&gt;&lt;br /&gt;        originalImage = new Bitmap("E:\\Retreat.jpg");&lt;br /&gt;        int imgHeight = originalImage.Height;&lt;br /&gt;        int imgWidht = originalImage.Width;&lt;br /&gt;        string format = Convert.ToString(originalImage.RawFormat);&lt;br /&gt;        ImageFormat imageFormat;&lt;br /&gt;&lt;br /&gt;        switch (format)&lt;br /&gt;        {&lt;br /&gt;            case ("gif"):&lt;br /&gt;                imageFormat = ImageFormat.Gif;&lt;br /&gt;                break;&lt;br /&gt;            default:&lt;br /&gt;                imageFormat = ImageFormat.Jpeg;&lt;br /&gt;                format = "jpg";&lt;br /&gt;                break;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        if (imgWidht == 0)&lt;br /&gt;        { imgWidht = 100; }&lt;br /&gt;&lt;br /&gt;        if (imgHeight == 0)&lt;br /&gt;        { imgHeight = imgWidht; }&lt;br /&gt;&lt;br /&gt;        string ImageSavePath = "E:\\jj1234.jpg";&lt;br /&gt;        thumbnailImage = originalImage.GetThumbnailImage(imgWidht, imgHeight, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailImageAbortDelegate), IntPtr.Zero);&lt;br /&gt;        thumbnailImage.Save(ImageSavePath, imageFormat);&lt;br /&gt;        originalImage.Dispose();&lt;br /&gt;    }&lt;br /&gt;    protected static bool ThumbnailImageAbortDelegate() { return false; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-218215547837867619?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/218215547837867619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=218215547837867619' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/218215547837867619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/218215547837867619'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/01/image-resize-using-getthumbnailimage.html' title='Image resize using GetThumbnailImage Function'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7298842413416642737</id><published>2009-01-22T01:35:00.000-08:00</published><updated>2009-01-22T01:38:36.539-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Image Resize'/><title type='text'>ASP.NET Resize images proportionately</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(153, 102, 51);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;ASP.NET Resize images proportionately &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Collections;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Drawing.Imaging;&lt;br /&gt;using System.IO.Compression;&lt;br /&gt;using System.Drawing.Drawing2D;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public partial class ImageResize : System.Web.UI.Page&lt;br /&gt;{&lt;br /&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        string ImageSavePath = "E:\\jj1.jpg";&lt;br /&gt;        string BasePath = Server.MapPath(".");&lt;br /&gt;        Bitmap Img, ImgTemp;&lt;br /&gt;&lt;br /&gt;        ImgTemp = new Bitmap("E:\\Retreat.jpg");&lt;br /&gt;        int imgHeight = ImgTemp.Height;&lt;br /&gt;        int imgWidht = ImgTemp.Width;&lt;br /&gt;&lt;br /&gt;      &lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;  Img = new Bitmap(ImgTemp,imgWidht*40/100, imgHeight*30/100);&lt;/span&gt;&lt;br /&gt;        Img.Save(ImageSavePath, ImageFormat.Jpeg);&lt;br /&gt;&lt;br /&gt;        ImgTemp.Dispose();&lt;br /&gt;        Img.Dispose();&lt;br /&gt;&lt;br /&gt;        //Graphics Graph;&lt;br /&gt;        //Graph = Graphics.FromImage(Img);&lt;br /&gt;        //Graph.DrawImage(Img, 100, 100);&lt;br /&gt;       &lt;br /&gt;    }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7298842413416642737?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7298842413416642737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7298842413416642737' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7298842413416642737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7298842413416642737'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/01/aspnet-resize-images-proportionately.html' title='ASP.NET Resize images proportionately'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-1736537059175844639</id><published>2009-01-12T05:27:00.000-08:00</published><updated>2009-01-12T05:32:47.561-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Session Variables'/><title type='text'>ASP.NET C# Using Session variables in a class files .cs app_code</title><content type='html'>&lt;div style="text-align: center; font-weight: bold; color: rgb(204, 153, 51);"&gt;&lt;span style="color: rgb(204, 153, 51);"&gt;ASP.NET C# Using Session variables in a class files .cs app_code&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Use HttpContext.Current.Session&lt;br /&gt;&lt;br /&gt;&lt;table style="border-collapse: collapse; font-weight: bold;" id="AutoNumber2" width="630" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td&gt;&lt;p align="justify"&gt;  VB.NET &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table width="630" border="0" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td valign="top" width="630" bgcolor="#dce4f6"&gt;HttpContext.Current.Session("Value1") = "1"&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table style="border-collapse: collapse; font-weight: bold;" id="AutoNumber2" width="630" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td&gt;&lt;p align="justify"&gt;  C# &lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;HttpContext.Current.Session["Value1"] = "1";&lt;br /&gt;&lt;br /&gt;&lt;p&gt;HttpSession session = HttpContext.Current.Session;&lt;/p&gt; &lt;p&gt;session["key"] = "test";&lt;/p&gt; &lt;p&gt;HttpSession doesn't exist , i think we must use  HttpSessionState&lt;/p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;System.Web.SessionState.&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;HttpSessionState &lt;/span&gt;session = HttpContext.Current.Session;&lt;/p&gt; &lt;p&gt;session["key"] = "test";&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;More on Session :: &lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;http://www.syncfusion.com/faq/aspnet/web_c9c.aspx#q179q&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-1736537059175844639?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/1736537059175844639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=1736537059175844639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1736537059175844639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1736537059175844639'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/01/aspnet-c-using-session-variables-in.html' title='ASP.NET C# Using Session variables in a class files .cs app_code'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-4119172169573535976</id><published>2009-01-01T20:22:00.000-08:00</published><updated>2009-01-01T20:40:46.471-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Calendar Control'/><title type='text'>ASP.NET: Calendar Control DayRender</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;ASP.NET: Calendar Control DayRender &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;Sample &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;Code &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana; color: rgb(51, 51, 255); font-weight: bold;"&gt;Method 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_JqOazdtw43M/SV2YWKqwToI/AAAAAAAABL8/RIvQaYyNcVI/s1600-h/Calendar1.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 390px;" src="http://4.bp.blogspot.com/_JqOazdtw43M/SV2YWKqwToI/AAAAAAAABL8/RIvQaYyNcVI/s400/Calendar1.gif" alt="" id="BLOGGER_PHOTO_ID_5286549044191055490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana; color: rgb(51, 51, 255); font-weight: bold;"&gt;Method 2&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_JqOazdtw43M/SV2YgjA35YI/AAAAAAAABME/XsSd514uIzE/s1600-h/Calendar2.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 393px;" src="http://1.bp.blogspot.com/_JqOazdtw43M/SV2YgjA35YI/AAAAAAAABME/XsSd514uIzE/s400/Calendar2.gif" alt="" id="BLOGGER_PHOTO_ID_5286549222524970370" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana; color: rgb(51, 51, 255); font-weight: bold;"&gt;Code Sample&lt;/span&gt;&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;.cs page&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;DataSet ds = new DataSet();&lt;br /&gt;        protected void Page_Load(object sender, System.EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            OleDbConnection myConnection = new OleDbConnection(ConfigurationSettings.AppSettings["DBConnStr"]);&lt;br /&gt;            string sql = "select eventid,eventdt,title1 from calendar";&lt;br /&gt;            OleDbDataAdapter da = new OleDbDataAdapter(sql, myConnection);&lt;br /&gt;            da.Fill(ds, "events");&lt;br /&gt;        }&lt;br /&gt; protected void eventscalendar_DayRender(Object Src, DayRenderEventArgs E)&lt;br /&gt;        {&lt;br /&gt;            int i = 0;&lt;br /&gt;            StringBuilder strEvents = new StringBuilder();&lt;br /&gt;            strEvents.Append("&lt;span style="\"&gt;");&lt;br /&gt;            foreach (DataRow row in ds.Tables["events"].Rows)&lt;br /&gt;            {&lt;br /&gt;                DateTime eventdate = (DateTime)row["eventdt"];&lt;br /&gt;                if (eventdate.Equals(E.Day.Date))&lt;br /&gt;                {&lt;br /&gt;                    i++;&lt;br /&gt;                    strEvents.Append("&lt;br /&gt;" + row["title1"]);&lt;br /&gt;                    strEvents.Append("&lt;/span&gt;");&lt;br /&gt;                }  &lt;br /&gt;            }&lt;br /&gt;            if (i &gt; 0)&lt;br /&gt;            {&lt;br /&gt;                if (E.Day.Date != DateTime.Now.Date)&lt;br /&gt;                {&lt;br /&gt;                    E.Cell.BackColor = Color.AliceBlue;&lt;br /&gt;                }&lt;br /&gt;              //  strEvents.Append("&lt;br /&gt;Events: " + i + "&lt;/span&gt;");  &lt;br /&gt;            }&lt;br /&gt;            E.Cell.Controls.Add(new LiteralControl(strEvents.ToString()));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        protected void eventcalendar_SelectionChanged(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            DataSet ds1 = new DataSet();&lt;br /&gt;            DateTime dt = eventcalendar.SelectedDate.Date;&lt;br /&gt;            OleDbConnection myConnection = new OleDbConnection(ConfigurationSettings.AppSettings["DBConnStr"]);&lt;br /&gt;            string sql = "select starttime,endtime,title1,description from calendar where eventdt='" + dt + "'";&lt;br /&gt;&lt;br /&gt;            OleDbDataAdapter da = new OleDbDataAdapter(sql, myConnection);&lt;br /&gt;            da.Fill(ds1, "events");&lt;br /&gt;            GridView1.DataSource = ds1;&lt;br /&gt;            GridView1.DataBind();&lt;br /&gt;        }&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;.aspx page:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    &lt;/span&gt;&amp;lt;asp:calendar id="eventcalendar" TitleStyle-BackColor="#d18c25" NextPrevStyle-ForeColor="#ffffff" TitleStyle-Height="30px" ShowGridLines="true" runat="server" backcolor="white"&lt;br /&gt;width="400px" height="400px" font-size="12px"&lt;br /&gt;nextprevformat="ShortMonth" daynameformat="FirstTwoLetters"&lt;br /&gt;firstdayofweek="Sunday" OnDayRender="eventscalendar_DayRender" OnSelectionChanged="eventcalendar_SelectionChanged"&gt;&lt;br /&gt;&amp;lt;DayStyle Font-Names="TimesRoman" /&gt;&lt;br /&gt;&amp;lt;SelectedDayStyle Font-Names="TimesRoman" Height="20px" Width="20px" Font-Size="11px" ForeColor="#680000" BackColor="#fff0ad" /&gt;&lt;br /&gt;                &amp;lt;titlestyle Font-Names="TimesRoman" ForeColor="#680000" font-size="20px" font-bold="true" borderwidth="2px" /&gt;&lt;br /&gt;                &amp;lt;dayheaderstyle Font-Names="TimesRoman"  font-size="12px" font-bold="true" /&gt;&lt;br /&gt;                &amp;lt;todaydaystyle Font-Names="TimesRoman" backcolor="#fff282" forecolor="#680000" /&gt;&lt;br /&gt;                  &amp;lt;WeekendDayStyle Font-Names="TimesRoman" BackColor="#fafad2" ForeColor="#ff0000" /&gt;&lt;br /&gt;                 &lt;br /&gt;                &amp;lt;othermonthdaystyle Font-Names="TimesRoman" forecolor="#cccccc" /&gt;                       &lt;br /&gt;            &amp;lt;/asp:calendar&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=10976309"&gt;&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-4119172169573535976?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/4119172169573535976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=4119172169573535976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4119172169573535976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4119172169573535976'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/01/aspnet-calendar-control-dayrender.html' title='ASP.NET: Calendar Control DayRender'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_JqOazdtw43M/SV2YWKqwToI/AAAAAAAABL8/RIvQaYyNcVI/s72-c/Calendar1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-6014143787560454019</id><published>2009-01-01T20:01:00.000-08:00</published><updated>2009-01-01T20:03:27.848-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UrlRewriting'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>ASP.Net Paths</title><content type='html'>&lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Here's a list of the Path related properties on the Request object (and the Page object):&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt; &lt;table style="border: medium none ; border-collapse: collapse;" class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr style=""&gt; &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;Request Property&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(236, 233, 216); border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;Function and Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;ApplicationPath&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Returns the a Web server relative path to your application root&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;/WestwindWebStore/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;PhysicalApplicationPath&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Returns a local file system path to your application root&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;D:\inetpub\wwwroot\WestWindWebStore\&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;PhysicalPath&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Returns the full file system path to the currently executing script&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;D:\inetpub\wwwroot\WestWindWebStore\Item.aspx&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;CurrentExecutionFilePath&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;FilePath&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Path&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;In most situations all of these return the virtual path to the currently executing script relative to the Web Server root.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;/WestwindWebStore/item.aspx&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;PathInfo&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Returns any extra path following the script name. Rarely used – this value is usually blank.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;/WestwindWebStore/item.aspx&lt;span style="color: red;"&gt;/ExtraPathInfo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;RawUrl&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Returns the application relative URL including querystring or pathinfo&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;/WestwindWebStore/item.aspx?sku=WWHELP30&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Url&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Returns the fully qualified URL including domain and protocol&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;http://www.west-wind.com/Webstore/item.aspx?sku=WWHELP30 &lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none solid solid; border-color: rgb(236, 233, 216) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 137.2pt; background-color: transparent;" valign="top" width="183"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Page.TemplateSourceDirectory&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Control.TemplateSourceDirectory&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none solid solid none; border-color: rgb(236, 233, 216) windowtext windowtext rgb(236, 233, 216); border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 431.6pt; background-color: transparent;" valign="top" width="575"&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Returns the virtual path of the currently executing control (or page). Very useful if you need to know the location of your ASCX control instead of the location of the page.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;/WestwindWebStore/admin&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p style="margin: 0in 0in 0pt;" class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;for more info. http://www.west-wind.com/weblog/posts/269.aspx&lt;br /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-6014143787560454019?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/6014143787560454019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=6014143787560454019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6014143787560454019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6014143787560454019'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/01/aspnet-paths.html' title='ASP.Net Paths'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7789545178959211048</id><published>2009-01-01T03:04:00.000-08:00</published><updated>2009-11-13T05:24:30.228-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UrlRewriting'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><category scheme='http://www.blogger.com/atom/ns#' term='Request.PathInfo'/><title type='text'>ASP.NET, C# UrlRewriting - PathInfo</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(204, 153, 51);font-family:verdana;font-size:180%;"  &gt;&lt;span style="font-weight: bold;"&gt;ASP.NET, C# UrlRewriting - PathInfo&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Change your URLs from&lt;br /&gt;http://mysite.com/items.aspx?id=20&amp;amp;pname=TV&lt;br /&gt;http://mysite.com/items.aspx?id=21&amp;amp;pname=DVD&lt;br /&gt;http://mysite.com/items.aspx?id=22&amp;amp;pname=LCD ...&lt;br /&gt;to&lt;br /&gt;http://mysite.com/items.aspx/20/TV&lt;br /&gt;http://mysite.com/items.aspx/21/DVD&lt;br /&gt;http://mysite.com/items.aspx/22/LCD ...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;its simple&lt;br /&gt;&lt;br /&gt;in &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Page1.aspx&lt;/span&gt;&lt;br /&gt;   &amp;lt;ul&gt;&lt;br /&gt;           &amp;lt;li&gt;&amp;lt;a href="http://mysite.com/items.aspx/20/TV"&gt;TV&amp;lt;/a&gt;&amp;lt;/li&gt;&lt;br /&gt;           &amp;lt;li&gt;&amp;lt;a href="http://mysite.com/items.aspx/21/DVD"&gt;DVD&amp;lt;/a&gt;&amp;lt;&lt;br /&gt;           &amp;lt;li&gt;&amp;lt;a href="http://mysite.com/items.aspx/22/LCD"&gt;LCD&amp;lt;/a&gt;&amp;lt;/li&gt;&lt;br /&gt;       &amp;lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;in &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;items.aspx page&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;pl&lt;/span&gt;ace this code&lt;br /&gt;&lt;br /&gt;if (&lt;span style="font-weight: bold;"&gt;Request.PathInfo.Length&lt;/span&gt; == 0)&lt;br /&gt;       { b1 = ""; b2 = ""; }&lt;br /&gt;       else&lt;br /&gt;       {&lt;br /&gt;           string pathinfo;&lt;br /&gt;           pathinfo = Request.PathInfo.Substring(1);&lt;br /&gt;&lt;br /&gt;           b1 = pathinfo.TrimEnd('/').Split('/')[0].ToString();&lt;br /&gt;           b2 = pathinfo.TrimEnd('/').Split('/')[1].ToString();&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;Use this kind of urls for beater search engine ranking. hope it helps ................. ;)&lt;br /&gt;&lt;br /&gt;more info...&lt;br /&gt;http://sharpertutorials.com/clean-url-structure-in-aspnet/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7789545178959211048?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7789545178959211048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7789545178959211048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7789545178959211048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7789545178959211048'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2009/01/aspnet-c-urlrewriting-pathinfo.html' title='ASP.NET, C# UrlRewriting - PathInfo'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7999079770946045617</id><published>2008-12-22T03:29:00.001-08:00</published><updated>2008-12-22T03:33:29.231-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Regular Expressions'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>ASP.NET Regular Expression For Replacing Invalid Characters</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;ASP.NET Regular Expression For Replacing Invalid Characters&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;em&gt;&lt;span style="font-size: 85%; color: rgb(153, 153, 0);"&gt;&lt;span style="font-weight: bold;"&gt;Method 1&lt;/span&gt;&lt;br /&gt;Names = Regex.Replace(txtName.Text, "[^A-Za-z0-9]+", "");&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 85%; color: rgb(153, 153, 0);"&gt;&lt;span style="font-weight: bold;"&gt;Method 2&lt;/span&gt;&lt;br /&gt;Names = Regex.Replace(txtName.Text, "[\w", "");&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;These Regular Expressions can be used for Replacing Invalid Characters in a string.&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7999079770946045617?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7999079770946045617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7999079770946045617' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7999079770946045617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7999079770946045617'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/12/aspnet-regular-expression-for-replacing.html' title='ASP.NET Regular Expression For Replacing Invalid Characters'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-8591623733841002722</id><published>2008-12-22T03:20:00.000-08:00</published><updated>2008-12-22T03:42:47.396-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Query'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>SQL Querys examples Date-Time Difference</title><content type='html'>&lt;span style="color: rgb(204, 102, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;SQL Query examples Date-Time Difference&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SQL example 1:&lt;/span&gt;&lt;br /&gt;select checkindate, isnull(sum(lessthan2), 0) as lessthan2, isnull(sum(Gt2Lt5), 0) as Gt2Lt5, isnull(sum(Gt5Lt10), 0) as Gt5Lt10, isnull(sum(Gt10Lt15), 0) as Gt10Lt15, isnull(sum(Gt15), 0) as Gt15, sum(mins),sum(mins)/(isnull(sum(lessthan2), 0)+isnull(sum(Gt2Lt5), 0)+isnull(sum(Gt5Lt10), 0)+isnull(sum(Gt10Lt15), 0)+isnull(sum(Gt15), 0)) as Mins&lt;br /&gt;from&lt;br /&gt;(&lt;br /&gt;select checkindate, mins,&lt;br /&gt;'lessthan2'=&lt;br /&gt;CASE&lt;br /&gt;    WHEN mins &gt;= 0 and mins &lt;&gt;= 2 and mins &lt;&gt;= 5 and mins &lt;&gt;= 10 and mins &lt;&gt;= 15 THEN gt15+1&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;from&lt;br /&gt;   (&lt;br /&gt;   select lt2=0,lt5=0,lt10=0,lt15=0,gt15=0,checkindate,mins = cast(replace(datediff(mi,logintime,checkintime)%60,'-','') as Int) from tblactivity  where (logintime&lt;&gt;'' and checkintime&lt;&gt;'' and checkindate between cast('01/01/2006' as datetime) and cast('07/01/2006' as datetime))&lt;br /&gt;   )a&lt;br /&gt;&lt;br /&gt;)b group by checkindate&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;SQL example 2:&lt;/span&gt; Time difference calculation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;select cast(datediff(mi,'11:00 AM','7:10 PM')/60 as varchar(10))+':'+cast(datediff(mi,'11:00 AM','7:10 PM')%60 as varchar(10))+':00'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;SQL example 3:&lt;/span&gt;&lt;span style="color: rgb(204, 102, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Time difference calculation&lt;/span&gt;&lt;br /&gt;select CT,ST,&lt;br /&gt;Mins =cast(replace(datediff(mi,CT,ST)%60,'-','') as varchar(10)),'Hours'=&lt;br /&gt;&lt;br /&gt;CASE&lt;br /&gt;        WHEN cast(replace(datediff(mi,CT,ST)/60,'-','')as int) &lt; st="substring(flags,charindex('calledforservicetime_flag'," ct="checkintime"&gt;''&lt;br /&gt;&lt;br /&gt;More SQL Server Examples @: &lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;http://silvernight.wordpress.com/&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-8591623733841002722?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/8591623733841002722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=8591623733841002722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8591623733841002722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8591623733841002722'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/12/sql-querys-examples-date-time.html' title='SQL Querys examples Date-Time Difference'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-3721788615844838798</id><published>2008-11-05T06:18:00.000-08:00</published><updated>2008-11-05T06:35:12.093-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Calling Javascript from C#, Calling Javascript from Codebehind ASP.NET</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Calling Javascript from C#, Calling Javascript from Codebehind&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We can use the following two methods to access &lt;span style="font-weight: bold;"&gt;Java Script&lt;/span&gt; from C#&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa479390.aspx#javawasp2_topic6"&gt;Page.ClientScript.RegisterStartupScript() Method&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa479390.aspx#javawasp2_topic7"&gt;Page.ClientScript.RegisterClientScriptBlock() Method&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;    string script = "&amp;lt; LANGUAGE='JavaScript'&amp;gt; ";&lt;br /&gt;           script += "ApptConfirm()";&lt;br /&gt;           script += "&amp;lt;/SCRIPT&amp;gt;";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// We use RegisterStartupScript, so that this script is executed after all form elements are rendered.&lt;/span&gt;&lt;br /&gt;          &lt;span style="font-weight: bold;"&gt;Page.RegisterStartupScript("ClientScript", script);&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-3721788615844838798?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/3721788615844838798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=3721788615844838798' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3721788615844838798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3721788615844838798'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/11/calling-javascript-from-c-calling.html' title='Calling Javascript from C#, Calling Javascript from Codebehind ASP.NET'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-8566115186468168496</id><published>2008-11-03T04:31:00.000-08:00</published><updated>2008-11-03T04:34:51.932-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSV file reading'/><title type='text'>loading csv file to SQL Server</title><content type='html'>&lt;span style="font-weight: bold;"&gt;loading csv file to SQL Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE CSVTest&lt;br /&gt;    (FirstName VARCHAR(40),&lt;br /&gt;                No1 INT,No2 INT,No3 INT,No4 INT)&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;select * from CSVTest&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BULK&lt;br /&gt;INSERT CSVTest&lt;br /&gt;        FROM 'd:\Tesing.csv'&lt;br /&gt;            WITH&lt;br /&gt;    (&lt;br /&gt;                FIELDTERMINATOR = ',',&lt;br /&gt;                ROWTERMINATOR = '\n'&lt;br /&gt;    )&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select * from CSVTest&lt;br /&gt;&lt;br /&gt;If there is a error in a particular row that row will not be added.&lt;br /&gt;rest of the rows will be loaded into sql server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;.csv file&lt;/span&gt;&lt;br /&gt;vijay,20,19999,90000,8&lt;br /&gt;Jagadeesh,9,111,60000,9&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-8566115186468168496?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/8566115186468168496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=8566115186468168496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8566115186468168496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8566115186468168496'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/11/loading-csv-file-to-sql-server.html' title='loading csv file to SQL Server'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7802379732664832324</id><published>2008-10-21T04:14:00.000-07:00</published><updated>2008-10-21T04:34:42.185-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Using JavaScript to Display messages in ASP.NET pages</title><content type='html'>&amp;lt;script language="javascript" src="script/ReasonForVisit.js"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;or in aspx page&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;function setmessage()&lt;br /&gt;           {&lt;br /&gt;             if(language=='english'){&lt;br /&gt;             document.getElementById('header1').innerHTML="No Records found.";&lt;br /&gt;             document.getElementById('span1').innerHTML="We are unable to find&lt;br /&gt;your records.";&lt;br /&gt;       &lt;br /&gt;             }&lt;br /&gt;             else{&lt;br /&gt;              document.getElementById('header1').innerHTML="No Records found.";&lt;br /&gt;              document.getElementById('span1').innerHTML="We are unable to find&lt;br /&gt;your records."&lt;b&gt;;&lt;br /&gt;             }&lt;br /&gt;         &lt;br /&gt;           }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;.aspx pages&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&amp;lt;table style="width: 100%;" border="0" cellpadding="0" cellspacing="0" id="Table1"&gt;&lt;br /&gt;                     &amp;lt;tr align="center"&gt;&lt;br /&gt;                         &amp;lt;td id="header1"&gt;&lt;br /&gt;                         &lt;br /&gt;                         &amp;lt;/td&gt;&lt;br /&gt;                     &amp;lt;/tr&gt;&lt;br /&gt;                     &amp;lt;tr align="center"&gt;&lt;br /&gt;                         &amp;lt;td id="span1"&gt;&lt;br /&gt;                        &lt;br /&gt;                         &amp;lt;/td&gt;&lt;br /&gt;                     &amp;lt;/tr&gt;                   &lt;br /&gt;                 &amp;lt;/table&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7802379732664832324?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7802379732664832324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7802379732664832324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7802379732664832324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7802379732664832324'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/10/using-javascript-to-display-messages-in.html' title='Using JavaScript to Display messages in ASP.NET pages'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-4817477645549064277</id><published>2008-10-21T04:04:00.000-07:00</published><updated>2008-10-21T04:14:22.391-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Session Variables'/><title type='text'>Using Session Variables in JavaScript - ASP.NET, C#</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Using Session Variables in JavaScript - ASP.NET, C#&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;var apptMultiple ='&lt;%= Session["multipleAppointments"]%&gt;';    &lt;br /&gt;&lt;br /&gt;function SetRelationOnForm(){&lt;br /&gt;          var relation = '&lt;%=Session["consentrelationshipToPatient"] %&gt;';&lt;br /&gt;          var isPat = '&lt;%=Session["consentSelIsPatient"] %&gt;';&lt;br /&gt;          var isPatRep = '&lt;%=Session["consentIsPatientRepresentative"] %&gt;';&lt;br /&gt;      }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-4817477645549064277?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/4817477645549064277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=4817477645549064277' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4817477645549064277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4817477645549064277'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/10/using-session-variables-in-javascript.html' title='Using Session Variables in JavaScript - ASP.NET, C#'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-1651027671104862544</id><published>2008-07-11T01:24:00.000-07:00</published><updated>2008-07-11T01:28:34.562-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Client Host Name'/><category scheme='http://www.blogger.com/atom/ns#' term='Client IP address'/><title type='text'>Getting Client Host name using Java Script/C#</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Getting Client Host name using Java Script&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;function GetComputerName()    &lt;br /&gt;{               &lt;br /&gt;try     &lt;br /&gt;{        &lt;br /&gt;var WshNetwork = new ActiveXObject("WScript.Network");       &lt;br /&gt;var hostname = WshNetwork.ComputerName.toLowerCase();      document.getElementById('HdnMachineId').value = hostname;     &lt;br /&gt;}     &lt;br /&gt;catch(err)     &lt;br /&gt;{     }    &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Getting Client Host name using C#&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;        private string getClientHostName()&lt;br /&gt;        {&lt;br /&gt;            // Get HostName of client computer&lt;br /&gt;            string hostname = HttpContext.Current.Request.ServerVariables["REMOTE_HOST"].ToString().ToLower();&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                System.Net.IPHostEntry host = System.Net.Dns.GetHostByAddress(hostname);&lt;br /&gt;                hostname = host.HostName;&lt;br /&gt;            }&lt;br /&gt;            catch(Exception exp)&lt;br /&gt;            {&lt;br /&gt;          &lt;br /&gt;            }&lt;br /&gt;            return hostname;&lt;br /&gt;        }&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-1651027671104862544?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/1651027671104862544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=1651027671104862544' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1651027671104862544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1651027671104862544'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/07/getting-client-host-name-using-java.html' title='Getting Client Host name using Java Script/C#'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-6632056717702922842</id><published>2008-06-26T07:40:00.000-07:00</published><updated>2008-06-26T07:44:30.081-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Image Resize'/><category scheme='http://www.blogger.com/atom/ns#' term='Image Upload Validation Sizes'/><title type='text'>Previewing image while opening ASP.NET</title><content type='html'>&lt;span style="font-family: verdana; font-weight: bold; color: rgb(204, 102, 0);font-size:180%;" &gt;Previewing image while opening&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: verdana; color: rgb(204, 102, 0); font-weight: bold;font-size:100%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;We can use the following code to preview an image while opening it using ASP.NET, C#, Java script&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: verdana; font-weight: bold; color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;SCRIPT&lt;/span&gt;&gt;&lt;br /&gt;var lastfieldname = ''&lt;br /&gt;function preview(i)&lt;br /&gt;{&lt;br /&gt;var file = i.value&lt;br /&gt;if (file.length&lt;&lt;span class="tag"&gt;=0)&lt;/span&gt; return;&lt;br /&gt;var ipreview = document.all('ipreview')&lt;br /&gt;&lt;span class="attr"&gt;ipreview.src =&lt;/span&gt;&lt;span class="attrv"&gt;'file://'&lt;/span&gt; + file&lt;br /&gt;}&lt;br /&gt;&lt;span class="tag"&gt;img&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;"ipreview"&lt;/span&gt;&lt;span class="attr"&gt; border=&lt;/span&gt;&lt;span class="attrv"&gt;"1"&lt;/span&gt;&lt;span class="attr"&gt; height=&lt;/span&gt;&lt;span class="attrv"&gt;"120"&lt;/span&gt;&lt;span class="attr"&gt; src=&lt;/span&gt;&lt;span class="attrv"&gt;"images/spacer.gif"&lt;/span&gt; /&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&gt;&lt;br /&gt;adjust image:&lt;br /&gt;&amp;lt;&lt;span class="tag"&gt;input&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;"fotofp"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;span class="attr"&gt; name=&lt;/span&gt;&lt;span class="attrv"&gt;"file1"&lt;/span&gt;&lt;span class="attr"&gt; onchange=&lt;/span&gt;&lt;span class="attrv"&gt;"preview(this)"&lt;/span&gt;&lt;span class="attr"&gt; onfocus=&lt;/span&gt;&lt;span class="attrv"&gt;"preview(this)"&lt;/span&gt;&lt;span class="attr"&gt; size=&lt;/span&gt;&lt;span class="attrv"&gt;"25"&lt;/span&gt;&lt;span class="attr"&gt; type=&lt;/span&gt;&lt;span class="attrv"&gt;"file"&lt;/span&gt; /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-6632056717702922842?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/6632056717702922842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=6632056717702922842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6632056717702922842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6632056717702922842'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/previewing-image-while-opening-aspnet.html' title='Previewing image while opening ASP.NET'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2770714066254104385</id><published>2008-06-17T07:42:00.000-07:00</published><updated>2008-06-17T08:01:10.477-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Firefox Sets Guinness World Record'/><title type='text'>Firefox 3.0 Sets Guinness World Record for Most Software Downloaded in 24 Hours</title><content type='html'>&lt;span style="color: rgb(204, 153, 51);font-family:verdana;font-size:180%;"  &gt;&lt;span style="font-weight: bold;"&gt;Firefox 3.0 Sets Guinness World Record for Most Software Downloaded in 24 Hours&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Today&lt;/span&gt;&lt;b style="font-family: verdana;"&gt; 17 June, 2008&lt;/b&gt;&lt;span style="font-family:verdana;"&gt; the most popular web browser Firefox Version 3 is released.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;At present Firefox share in web browsing is 15% of Internet users. The release of&lt;/span&gt;&lt;b style="font-family: verdana;"&gt; &lt;/b&gt;&lt;span style="font-family:verdana;"&gt;Firefox 3.0 would further boost its market share.&lt;/span&gt;&lt;br /&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;New features in Firefox Version 3&lt;/span&gt; include automatic warnings when users stray onto webpages booby-trapped with malicious code.  &lt;/p&gt;&lt;p style="font-family: verdana;"&gt;Also in Firefox 3.0 will be "Smart Location Bar" that lets people return to places they have visited even if they have not bookmarked them or cannot remember the full web address. &lt;/p&gt;&lt;p style="font-family: verdana;"&gt;Firefox 3.0 will work with Windows 2000, XP and Vista and some non-Windows operating systems including Linux.&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_JqOazdtw43M/SFfReWUiR_I/AAAAAAAAAWo/gQ_QzbD_ApI/s1600-h/Firefox+Download.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_JqOazdtw43M/SFfReWUiR_I/AAAAAAAAAWo/gQ_QzbD_ApI/s400/Firefox+Download.jpg" alt="" id="BLOGGER_PHOTO_ID_5212865413022631922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Download Firefox 3.0 Now &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://www.mozilla.com/en-US/firefox/"&gt;http://www.mozilla.com/en-US/firefox/&lt;/a&gt;&lt;br /&gt;or here&lt;br /&gt;&lt;a href="http://www.spreadfirefox.com/en-US/worldrecord"&gt;http://www.spreadfirefox.com/en-US/worldrecord&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The count down started ;)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2770714066254104385?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2770714066254104385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2770714066254104385' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2770714066254104385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2770714066254104385'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/firefox-30-sets-guinness-world-record.html' title='Firefox 3.0 Sets Guinness World Record for Most Software Downloaded in 24 Hours'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_JqOazdtw43M/SFfReWUiR_I/AAAAAAAAAWo/gQ_QzbD_ApI/s72-c/Firefox+Download.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5123293118797240729</id><published>2008-06-17T06:30:00.000-07:00</published><updated>2008-06-17T06:41:53.913-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Updating Access Database'/><title type='text'>AccessDataSource UpdateCommand Gridview Asp.Net AccessDatabase</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(204, 153, 51);font-size:180%;" &gt;&lt;span style="font-family: verdana;"&gt;Updating Access Database using Asp.Net Gridview - AccessDataSource, UpdateCommand&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;We can use the following code to update Access Database using Asp.Net Gridview...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 153, 51);font-size:180%;" &gt;&lt;span style="font-family: verdana;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"&lt;br /&gt;            DataKeyNames="ID" DataSourceID="AccessDataSource1" AutoGenerateDeleteButton="true" AutoGenerateEditButton="true" ForeColor="#333333" GridLines="None"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;Columns&gt;&lt;br /&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"&lt;br /&gt;                    SortExpression="ID" /&gt;&lt;br /&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" /&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;/Columns&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;RowStyle BackColor="#FFFBD6" ForeColor="#333333" /&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /&gt;&lt;br /&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;AlternatingRowStyle BackColor="White" /&gt;&lt;br /&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;/asp:GridView&gt;&lt;br /&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/mReachTV_DB.mdb"&lt;br /&gt;            SelectCommand="SELECT [ID], [Country] FROM [TV_Streams]"&lt;br /&gt;             UpdateCommand="UPDATE [TV_Streams] SET [Country] = @Country WHERE [ID] = @ID"&gt;&lt;br /&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-family: verdana;"&gt;/asp:AccessDataSource&gt;&lt;br /&gt;&lt;br /&gt;Is it Looking similar to the code you had written??&lt;br /&gt;&lt;br /&gt;Thats where the trick is... The number of parameters in &lt;span style="font-weight: bold;"&gt;Select and Update command&lt;/span&gt; should be equal.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5123293118797240729?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5123293118797240729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5123293118797240729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5123293118797240729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5123293118797240729'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/accessdatasource-updatecommand-gridview.html' title='AccessDataSource UpdateCommand Gridview Asp.Net AccessDatabase'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-1737640577618638272</id><published>2008-06-09T06:57:00.000-07:00</published><updated>2008-06-19T06:28:31.802-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Message Boxes Popup'/><title type='text'>Message Boxes, Popup  in ASP.NET</title><content type='html'>&lt;blockquote&gt;&lt;/blockquote&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(204, 153, 51); font-weight: bold;font-size:180%;" &gt;Displaying Message Boxes, &lt;/span&gt;&lt;span style="color: rgb(204, 153, 51); font-weight: bold;font-size:180%;" &gt;Popup in ASP.NET using Java Script&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The following code samples can be used to display message boxes in ASP.NET webpages.&lt;br /&gt;&lt;br /&gt;mes = chpwd.updat(txtrpwd.Text, txtuname.Text);&lt;br /&gt; if (mes)&lt;br /&gt; {&lt;br /&gt;&lt;br /&gt;     string script = "alert('New Password is Created');\n";&lt;br /&gt;     script += "var f='" + Session["flag"].ToString() + "';\n";&lt;br /&gt;     script += "if (f == 'L')\n";&lt;br /&gt;     script += "location.href='loginpage.aspx';\n";&lt;br /&gt;&lt;br /&gt;     Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", script, true);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;----------------------------------------------------------------------------------------&lt;br /&gt;Response.Write("&amp;lt;script&gt;alert('New Password is created')&amp;lt;/script&gt;");&lt;br /&gt;----------------------------------------------------------------------------------------&lt;br /&gt;&lt;span class="kwd"&gt;if&lt;/span&gt; (mes)&lt;br /&gt;&lt;pre class="coloredcode"&gt;{&lt;br /&gt;StringBuilder sb = &lt;span class="kwd"&gt;new&lt;/span&gt; StringBuilder();&lt;br /&gt;sb.Append(&lt;span class="st"&gt;"&lt;/span&gt;&amp;lt;&lt;span class="st"&gt;script type='text/javascript'&gt;"&lt;/span&gt;);&lt;br /&gt;sb.Append(&lt;span class="st"&gt;"alert('New Password is Create');"&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;&lt;span class="kwd"&gt;if&lt;/span&gt; (Session[&lt;span class="st"&gt;"flag"&lt;/span&gt;].ToString() == &lt;span class="st"&gt;"L"&lt;/span&gt;)&lt;br /&gt;{&lt;br /&gt;sb.Append(&lt;span class="st"&gt;"window.location = 'loginpage.aspx';"&lt;/span&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sb.Append(&lt;span class="st"&gt;""&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;Page.RegisterClientScriptBlock(&lt;span class="st"&gt;"mes"&lt;/span&gt;, sb.ToString());&lt;br /&gt;}&lt;/pre&gt;----------------------------------------------------------------------------------------&lt;br /&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;Page.ClientScript.RegisterStartupScript(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;this&lt;/span&gt;&lt;span style="font-size:100%;"&gt;.GetType(), &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:100%;" &gt;"myAlertBox"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:100%;" &gt;"alert('New Password is Created'); window.location = 'loginpage.aspx';"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;true&lt;/span&gt;&lt;span style="font-size:100%;"&gt;);&lt;/span&gt;&lt;/p&gt; &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt; or &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;"&gt; &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;ClientScript.RegisterClientScriptBlock(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;this&lt;/span&gt;&lt;span style="font-size:100%;"&gt;.GetType(), &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:100%;" &gt;"myAlertBox"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;, &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:100%;" &gt;"alert('New Password is Created'); &lt;strong&gt;&lt;u&gt;window.location = 'loginpage.aspx';"&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;u&gt;,&lt;/u&gt;&lt;/strong&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;true&lt;/span&gt;&lt;span style="font-size:100%;"&gt;);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------------------------------&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;For POP Ups:&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;We can use Javascript function &lt;b&gt;window.Open&lt;/b&gt; or &lt;b&gt;target="_blank" for popups.&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;If we want to open a popup in form another popup window? we can use Java script function &lt;b&gt;window.location.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;------------------------------------------------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Another Method to Display Message boxes in ASP.NET&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;protected&lt;/span&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;void&lt;/span&gt;&lt;span style="font-size:100%;"&gt; btnSubmit_Click(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;object&lt;/span&gt;&lt;span style="font-size:100%;"&gt; sender, &lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:100%;" &gt;EventArgs&lt;/span&gt;&lt;span style="font-size:100%;"&gt; e)&lt;/span&gt;&lt;span style="font-size:100%;"&gt;  &lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;  &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;string&lt;/span&gt;&lt;span style="font-size:100%;"&gt; script = &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:100%;" &gt;"alert('Are U sure? ');"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;System.Web.UI.&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:100%;" &gt;ScriptManager&lt;/span&gt;&lt;span style="font-size:100%;"&gt;.RegisterClientScriptBlock(&lt;b&gt;this&lt;/b&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;this&lt;/span&gt;&lt;span style="font-size:100%;"&gt;.GetType(), &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:100%;" &gt;"Test"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;, script, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:100%;" &gt;true&lt;/span&gt;&lt;span style="font-size:100%;"&gt;);&lt;/span&gt;&lt;span style="font-size:100%;"&gt;  &lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;------------------------------------------------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Another Method to Display Message boxes in ASP.NET&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;asp:Button&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;"button1"&lt;/span&gt;&lt;span class="attr"&gt; OnClientClick=&lt;/span&gt;&lt;span class="attrv"&gt;"return confirm('Are you sure?');"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;or&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:LinkButton&lt;/span&gt;&lt;br /&gt;&lt;span class="attr"&gt;ID=&lt;/span&gt;&lt;span class="attrv"&gt;"ibtnDelete"&lt;/span&gt;&lt;br /&gt;&lt;span class="attr"&gt;runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;br /&gt;&lt;span class="attr"&gt;Text=&lt;/span&gt;&lt;span class="attrv"&gt;"Delete"&lt;/span&gt;&lt;br /&gt;&lt;span class="attr"&gt;CommandName=&lt;/span&gt;&lt;span class="attrv"&gt;"Delete"&lt;/span&gt;&lt;br /&gt;&lt;span class="attr"&gt;OnClientClick=&lt;/span&gt;&lt;span class="attrv"&gt;"javascript:return confirm('Are you sure you want to delete this class?');"&lt;/span&gt;&gt;&lt;br /&gt;&amp;lt;/&lt;span class="tag"&gt;asp:LinkButton&lt;/span&gt;&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-1737640577618638272?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/1737640577618638272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=1737640577618638272' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1737640577618638272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1737640577618638272'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/sdfg.html' title='Message Boxes, Popup  in ASP.NET'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-1279810784410368350</id><published>2008-06-09T06:38:00.000-07:00</published><updated>2008-06-17T07:25:21.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Image Resize'/><category scheme='http://www.blogger.com/atom/ns#' term='Restricting File Upload size'/><category scheme='http://www.blogger.com/atom/ns#' term='Image Upload Validation Sizes'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Restricting File Upload size using ASP.NET C#</title><content type='html'>&lt;p&gt;We can use the following code to restrict the File upload size using Asp.Net, C#.&lt;/p&gt;&lt;br /&gt;We can set the maximum upload limit for the file, using  &lt;span style="font-weight: bold;"&gt;maxRequestLength&lt;/span&gt; in web.config of your ASP.NET web application.&lt;br /&gt;&lt;br /&gt;Here is the sample code for this...&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; protected void btnUpload_Click(object sender, System.EventArgs e)&lt;br /&gt;       {&lt;br /&gt;       string fileName = FileSelector.PostedFile.FileName;&lt;br /&gt;           int fN = fileName.LastIndexOf("\\");&lt;br /&gt;           string newFileName = fileName.Substring(fN).ToLower();&lt;/p&gt; &lt;p&gt;            if (newFileName.EndsWith(".m4v") || newFileName.EndsWith(".mp3") || newFileName.EndsWith(".mp4") || newFileName.EndsWith(".mov"))&lt;br /&gt;           {&lt;br /&gt;               if (this.FileSelector.PostedFile.ContentLength &amp;lt; 210000)&lt;br /&gt;               {&lt;br /&gt;                   FileSelector.PostedFile.SaveAs(&lt;br /&gt;                       Server.MapPath("../audioFiles/") + newFileName);&lt;/p&gt; &lt;p&gt;                    lblWarn.Text = "File uploaded";&lt;br /&gt;                   lblWarn.ForeColor = System.Drawing.Color.Green;&lt;br /&gt;                   lblWarn.Visible = true;&lt;br /&gt;               }&lt;br /&gt;               else&lt;br /&gt;               {&lt;br /&gt;                   lblWarn.Text = "File cannot exceed 350MB";&lt;br /&gt;                   lblWarn.Visible = true;&lt;br /&gt;                   lblWarn.ForeColor = System.Drawing.Color.Red;&lt;br /&gt;               }&lt;br /&gt;           }&lt;br /&gt;           else&lt;br /&gt;           {&lt;br /&gt;               lblWarn.Text = "Only extensions .m4v, .mp4, mp3, or .mov";&lt;br /&gt;               lblWarn.Visible = true;&lt;br /&gt;               lblWarn.ForeColor = System.Drawing.Color.Red;&lt;br /&gt;           }&lt;br /&gt;       }&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Also default upload limit is 4MB in asp.net. You can change this value in ur web.config file.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: verdana;font-size:100%;" &gt;&amp;lt;httpRuntime maxRequestLength="210000"/&gt;&lt;/span&gt;&lt;p style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt; &lt;p&gt;Include this in your webconfig file in the system.web section&lt;/p&gt;&lt;p&gt;You can also use &lt;span style="font-weight: bold;"&gt;FileUpload1.PostedFile.ContentLength &lt;/span&gt;to calculate the length of the file after it is uploaded to server.&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-1279810784410368350?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/1279810784410368350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=1279810784410368350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1279810784410368350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1279810784410368350'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/restricting-file-upload-size-using.html' title='Restricting File Upload size using ASP.NET C#'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-4686174862638155247</id><published>2008-06-09T06:26:00.000-07:00</published><updated>2008-06-09T06:36:45.658-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Image Resize'/><category scheme='http://www.blogger.com/atom/ns#' term='Image Upload Validation Sizes'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Image size, type Upload Validation</title><content type='html'>protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;   {&lt;br /&gt;       string fileFullname = this.File1.PostedFile.FileName; &lt;p&gt;&lt;br /&gt;       if (File1.PostedFile.ContentType.ToUpper().IndexOf("IMAGE") &gt; -1)&lt;br /&gt;       {&lt;br /&gt;           System.Drawing.Image img = System.Drawing.Image.FromStream(File1.PostedFile.InputStream);&lt;br /&gt;           int Width = img.Width;&lt;br /&gt;           int Height = img.Height;&lt;/p&gt; &lt;p&gt;            if (Width &gt; 200 || Height &gt; 200 || File1.PostedFile.ContentLength &gt; 1024 * 1024 * 200)&lt;br /&gt;           {&lt;br /&gt;               Response.Write("&amp;lt;script language='javascript'&gt;alert('your image don not confirm the with and height.!');&amp;lt;/script&gt;");&lt;br /&gt;           }&lt;br /&gt;           else&lt;br /&gt;           {&lt;br /&gt;               if (type == "jpg" || type == "gif" || type == "bmp" || type == "JPG" || type == "GIF")&lt;br /&gt;               {&lt;/p&gt; &lt;p&gt;                    string sPath = Server.MapPath("images/") + dataName + fileName;&lt;/p&gt; &lt;p&gt;                    string imgPath = "pic/" + dataName + fileName;&lt;/p&gt; &lt;p&gt;                    this.File1.PostedFile.SaveAs(sPath);&lt;/p&gt; &lt;p&gt;                    Response.Write("&amp;lt;script language='javascript'&gt;alert('suceed!!!');&amp;lt;/script&gt;");&lt;/p&gt; &lt;p&gt;&lt;br /&gt;                   this.Image1.ImageUrl = imgPath;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;                   this.Button1.Enabled = false;&lt;br /&gt;                   this.Button1.Text = "suceed!";&lt;br /&gt;                   this.Button1.Enabled = true;&lt;/p&gt; &lt;p&gt;                }&lt;br /&gt;               else&lt;br /&gt;               {&lt;br /&gt;                   Response.Write("&amp;lt;script language='javascript'&gt;alert('your file type wrong!');&amp;lt;/script&gt;");&lt;br /&gt;               }&lt;br /&gt;           }&lt;br /&gt;       }&lt;br /&gt;       else&lt;br /&gt;       {&lt;/p&gt; &lt;p&gt;            Response.Write("&amp;lt;script language='javascript'&gt;alert('please choice the image to upload!');&amp;lt;/script&gt;");&lt;br /&gt;       }&lt;br /&gt;   }&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;Validations::&lt;/span&gt;&lt;br /&gt;We can also use &lt;b&gt;RegularExpressionValidator&lt;/b&gt; to validate the file (extensions) which you are uploading. The RE will look like this ^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.jpg|.JPG)$&lt;br /&gt;&lt;br /&gt;and now you have to set  &lt;b&gt;RequiredFieldValidator &lt;/b&gt;for fileUpload. It stops you from proceeding further if you do not upload a file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-4686174862638155247?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/4686174862638155247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=4686174862638155247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4686174862638155247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4686174862638155247'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/image-size-upload-validation.html' title='Image size, type Upload Validation'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-6887725451735044347</id><published>2008-06-09T04:56:00.000-07:00</published><updated>2008-06-09T04:59:22.133-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Geographic Location of internet user'/><category scheme='http://www.blogger.com/atom/ns#' term='Client IP address'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Getting Geographic Location(country) of internet user ASP.NET C#</title><content type='html'>&lt;p&gt;Here is a FREE web service that will give you Country information from IP address.&lt;br /&gt;&lt;a href="http://www.webservicex.net/WS/WSDetails.aspx?WSID=64&amp;amp;CATID=12"&gt;http://www.webservicex.net/WS/WSDetails.aspx?WSID=64&amp;amp;CATID=12&lt;/a&gt;&lt;/p&gt;But if you want to pay and get more featured service, then you may check here&lt;br /&gt;&lt;a href="http://www.ip2country.net/ip2country/lookup.html"&gt;http://www.ip2country.net/ip2country/lookup.html&lt;/a&gt;&lt;br /&gt;This website does not sell Web Service, rather they sell lookup DataBase. You will need to purchase a database from them and then use your ASP.NET look up query to get county information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-6887725451735044347?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/6887725451735044347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=6887725451735044347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6887725451735044347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6887725451735044347'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/getting-geographic-locationcountry-of.html' title='Getting Geographic Location(country) of internet user ASP.NET C#'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-804655641296487099</id><published>2008-06-09T04:52:00.000-07:00</published><updated>2008-06-09T04:56:25.662-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Client IP address'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Getting Client IP address using ASP.NET C#</title><content type='html'>You can use the following three ways  to get the client IP address  using C#&lt;br /&gt;&lt;p&gt;        string test = Request.UserHostAddress.ToString();&lt;br /&gt;        string test2 = Request.ServerVariables["REMOTE_ADDR"].ToString();&lt;br /&gt;        string test3 = Context.Request.UserHostAddress.ToString();&lt;/p&gt;All are returning the same values...&lt;br /&gt;&lt;br /&gt;Some times client can mask their IP behind a router/nat and it's spoofable.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-804655641296487099?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/804655641296487099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=804655641296487099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/804655641296487099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/804655641296487099'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/getting-client-ip-address-using-aspnet.html' title='Getting Client IP address using ASP.NET C#'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5116649371585489838</id><published>2008-06-06T06:42:00.000-07:00</published><updated>2008-06-06T06:46:31.199-07:00</updated><title type='text'>Menu Control (Tab View) Placing  TabContainer inside another TabContainer</title><content type='html'>&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;form&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;"form1"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:Menu&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;ID=&lt;/span&gt;&lt;span class="attrv"&gt;"Menu1"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;Width=&lt;/span&gt;&lt;span class="attrv"&gt;"168px"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;Orientation=&lt;/span&gt;&lt;span class="attrv"&gt;"Horizontal"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;StaticEnableDefaultPopOutImage=&lt;/span&gt;&lt;span class="attrv"&gt;"False"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;OnMenuItemClick=&lt;/span&gt;&lt;span class="attrv"&gt;"Menu1_MenuItemClick"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;Items&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&lt;span class="attr"&gt; ImageUrl=&lt;/span&gt;&lt;span class="attrv"&gt;"~/selectedtab.gif"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;                      &lt;/span&gt;Text=&lt;/span&gt;&lt;span class="attrv"&gt;" "&lt;/span&gt;&lt;span class="attr"&gt; Value=&lt;/span&gt;&lt;span class="attrv"&gt;"0"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&lt;span class="attr"&gt; ImageUrl=&lt;/span&gt;&lt;span class="attrv"&gt;"~/unselectedtab.gif"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;                      &lt;/span&gt;Text=&lt;/span&gt;&lt;span class="attrv"&gt;" "&lt;/span&gt;&lt;span class="attr"&gt; Value=&lt;/span&gt;&lt;span class="attrv"&gt;"1"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&lt;span class="attr"&gt; ImageUrl=&lt;/span&gt;&lt;span class="attrv"&gt;"~/unselectedtab.gif"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;                      &lt;/span&gt;Text=&lt;/span&gt;&lt;span class="attrv"&gt;" "&lt;/span&gt;&lt;span class="attr"&gt; Value=&lt;/span&gt;&lt;span class="attrv"&gt;"2"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;Items&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/&lt;span class="tag"&gt;asp:Menu&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;div&lt;/span&gt;&amp;gt;&amp;lt;&lt;span class="tag"&gt;PRE&lt;/span&gt;&lt;span class="attr"&gt; lang=html id=pre1 style=&lt;/span&gt;&lt;span class="attrv"&gt;"MARGIN-TOP: 0px"&lt;/span&gt;&lt;span class="attr"&gt; nd=&lt;/span&gt;&lt;span class="attrv"&gt;"35"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;&lt;span class="tag"&gt;asp:MultiView&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;    &lt;/span&gt;ID=&lt;/span&gt;&lt;span class="attrv"&gt;"MultiView1"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;    &lt;/span&gt;runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;    &lt;/span&gt;ActiveViewIndex=&lt;/span&gt;&lt;span class="attrv"&gt;"0"&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&amp;gt;&amp;lt;&lt;span class="tag"&gt;asp:View&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;"Tab1"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&amp;gt;&amp;lt;&lt;span class="tag"&gt;table&lt;/span&gt;&lt;span class="attr"&gt; width=&lt;/span&gt;&lt;span class="attrv"&gt;"600"&lt;/span&gt;&lt;span class="attr"&gt; height=&lt;/span&gt;&lt;span class="attrv"&gt;"400"&lt;/span&gt; cellpadding=0 cellspacing=0&amp;gt;&amp;lt;&lt;span class="tag"&gt;tr&lt;/span&gt;&lt;span class="attr"&gt; valign=&lt;/span&gt;&lt;span class="attrv"&gt;"top"&lt;/span&gt;&amp;gt;&amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&lt;span class="attr"&gt; class=&lt;/span&gt;&lt;span class="attrv"&gt;"TabArea"&lt;/span&gt;&lt;span class="attr"&gt; style=&lt;/span&gt;&lt;span class="attrv"&gt;"width: 600px"&lt;/span&gt;&amp;gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;TAB VIEW 1 INSERT YOUR CONENT IN HERE CHANGE SELECTED IMAGE URL AS NECESSARY &amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;table&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:View&lt;/span&gt;&amp;gt; &amp;lt;&lt;span class="tag"&gt;asp:View&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;"Tab2"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;table&lt;/span&gt;&lt;span class="attr"&gt; width=&lt;/span&gt;&lt;span class="attrv"&gt;"600px"&lt;/span&gt;&lt;span class="attr"&gt; height=&lt;/span&gt;&lt;span class="attrv"&gt;"400px"&lt;/span&gt; cellpadding=0 cellspacing=0&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;tr&lt;/span&gt;&lt;span class="attr"&gt; valign=&lt;/span&gt;&lt;span class="attrv"&gt;"top"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&lt;span class="attr"&gt; class=&lt;/span&gt;&lt;span class="attrv"&gt;"TabArea"&lt;/span&gt;&lt;span class="attr"&gt; style=&lt;/span&gt;&lt;span class="attrv"&gt;"width: 600px"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;TAB VIEW 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;INSERT YOUR CONENT IN HERE&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;CHANGE SELECTED IMAGE URL AS NECESSARY&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;table&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;asp:View&lt;/span&gt;&amp;gt; &amp;lt;&lt;span class="tag"&gt;asp:View&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;"Tab3"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;table&lt;/span&gt;&lt;span class="attr"&gt; width=&lt;/span&gt;&lt;span class="attrv"&gt;"600px"&lt;/span&gt;&lt;span class="attr"&gt; height=&lt;/span&gt;&lt;span class="attrv"&gt;"400px"&lt;/span&gt; cellpadding=0 cellspacing=0&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;tr&lt;/span&gt;&lt;span class="attr"&gt; valign=&lt;/span&gt;&lt;span class="attrv"&gt;"top"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&lt;span class="attr"&gt; class=&lt;/span&gt;&lt;span class="attrv"&gt;"TabArea"&lt;/span&gt;&lt;span class="attr"&gt; style=&lt;/span&gt;&lt;span class="attrv"&gt;"width: 600px"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                 &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:Menu&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;ID=&lt;/span&gt;&lt;span class="attrv"&gt;"Menu2"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;Width=&lt;/span&gt;&lt;span class="attrv"&gt;"168px"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;Orientation=&lt;/span&gt;&lt;span class="attrv"&gt;"Horizontal"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;StaticEnableDefaultPopOutImage=&lt;/span&gt;&lt;span class="attrv"&gt;"False"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;        &lt;/span&gt;OnMenuItemClick=&lt;/span&gt;&lt;span class="attrv"&gt;"Menu2_MenuItemClick"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;Items&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&lt;span class="attr"&gt; ImageUrl=&lt;/span&gt;&lt;span class="attrv"&gt;"~/selectedtab.gif"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;Text=&lt;/span&gt;&lt;span class="attrv"&gt;" "&lt;/span&gt;&lt;span class="attr"&gt; Value=&lt;/span&gt;&lt;span class="attrv"&gt;"0"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&lt;span class="attr"&gt; ImageUrl=&lt;/span&gt;&lt;span class="attrv"&gt;"~/unselectedtab.gif"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;                      &lt;/span&gt;Text=&lt;/span&gt;&lt;span class="attrv"&gt;" "&lt;/span&gt;&lt;span class="attr"&gt; Value=&lt;/span&gt;&lt;span class="attrv"&gt;"1"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&lt;span class="attr"&gt; ImageUrl=&lt;/span&gt;&lt;span class="attrv"&gt;"~/unselectedtab.gif"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;                      &lt;/span&gt;Text=&lt;/span&gt;&lt;span class="attrv"&gt;" "&lt;/span&gt;&lt;span class="attr"&gt; Value=&lt;/span&gt;&lt;span class="attrv"&gt;"2"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:MenuItem&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;Items&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/&lt;span class="tag"&gt;asp:Menu&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;div&lt;/span&gt;&amp;gt;&amp;lt;&lt;span class="tag"&gt;PRE&lt;/span&gt;&lt;span class="attr"&gt; lang=html id=pre2 style=&lt;/span&gt;&lt;span class="attrv"&gt;"MARGIN-TOP: 0px"&lt;/span&gt;&lt;span class="attr"&gt; nd=&lt;/span&gt;&lt;span class="attrv"&gt;"35"&lt;/span&gt;&amp;gt;&amp;lt;&lt;span class="tag"&gt;asp:MultiView&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;    &lt;/span&gt;ID=&lt;/span&gt;&lt;span class="attrv"&gt;"MultiView2"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;    &lt;/span&gt;runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="attr"&gt;&lt;span style=""&gt;    &lt;/span&gt;ActiveViewIndex=&lt;/span&gt;&lt;span class="attrv"&gt;"0"&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:View&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;"View1"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;table&lt;/span&gt;&lt;span class="attr"&gt; width=&lt;/span&gt;&lt;span class="attrv"&gt;"600"&lt;/span&gt;&lt;span class="attr"&gt; height=&lt;/span&gt;&lt;span class="attrv"&gt;"400"&lt;/span&gt; cellpadding=0 cellspacing=0&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;tr&lt;/span&gt;&lt;span class="attr"&gt; valign=&lt;/span&gt;&lt;span class="attrv"&gt;"top"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&lt;span class="attr"&gt; class=&lt;/span&gt;&lt;span class="attrv"&gt;"TabArea"&lt;/span&gt;&lt;span class="attr"&gt; style=&lt;/span&gt;&lt;span class="attrv"&gt;"width: 600px"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;TAB VIEW 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;INSERT YOUR CONENT IN HERE&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;CHANGE SELECTED IMAGE URL AS NECESSARY&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;table&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;     &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;asp:View&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:View&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;"View2"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;table&lt;/span&gt;&lt;span class="attr"&gt; width=&lt;/span&gt;&lt;span class="attrv"&gt;"600px"&lt;/span&gt;&lt;span class="attr"&gt; height=&lt;/span&gt;&lt;span class="attrv"&gt;"400px"&lt;/span&gt; cellpadding=0 cellspacing=0&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;tr&lt;/span&gt;&lt;span class="attr"&gt; valign=&lt;/span&gt;&lt;span class="attrv"&gt;"top"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&lt;span class="attr"&gt; class=&lt;/span&gt;&lt;span class="attrv"&gt;"TabArea"&lt;/span&gt;&lt;span class="attr"&gt; style=&lt;/span&gt;&lt;span class="attrv"&gt;"width: 600px"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;TAB VIEW 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;INSERT YOUR CONENT IN HERE&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                    &lt;/span&gt;CHANGE SELECTED IMAGE URL AS NECESSARY&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;table&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;asp:View&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;asp:View&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;"View3"&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;"server"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;table&lt;/span&gt;&lt;span class="attr"&gt; width=&lt;/span&gt;&lt;span class="attrv"&gt;"600px"&lt;/span&gt;&lt;span class="attr"&gt; height=&lt;/span&gt;&lt;span class="attrv"&gt;"400px"&lt;/span&gt; cellpadding=0 cellspacing=0&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;tr&lt;/span&gt;&lt;span class="attr"&gt; valign=&lt;/span&gt;&lt;span class="attrv"&gt;"top"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&lt;span class="attr"&gt; class=&lt;/span&gt;&lt;span class="attrv"&gt;"TabArea"&lt;/span&gt;&lt;span class="attr"&gt; style=&lt;/span&gt;&lt;span class="attrv"&gt;"width: 600px"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                  &lt;/span&gt;TAB VIEW 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                  &lt;/span&gt;INSERT YOUR CONENT IN HERE&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                  &lt;/span&gt;CHANGE SELECTED IMAGE URL AS NECESSARY&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;table&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;asp:View&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/&lt;span class="tag"&gt;asp:MultiView&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt; &amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;table&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;asp:View&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:MultiView&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;PRE&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;div&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/&lt;span class="tag"&gt;form&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;    &lt;p&gt;&lt;span style="font-weight: bold;"&gt;In C#&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span class="kwd"&gt;protected void&lt;/span&gt; Menu1_MenuItemClick(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, MenuEventArgs e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;MultiView1.ActiveViewIndex = Int32.Parse(e.Item.Value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span class="kwd"&gt;int&lt;/span&gt; i;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span class="cmt"&gt;// Make the selected menu item reflect the correct imageurl&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span class="kwd"&gt;for&lt;/span&gt; (i = 0; (i &amp;lt;= (Menu1.Items.Count - 1)); i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span class="kwd"&gt;if&lt;/span&gt; (e.Item.Value.Equals(i+&lt;span class="st"&gt;""&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;Menu1.Items[i].ImageUrl = &lt;span class="st"&gt;"selectedtab.gif"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span class="kwd"&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;Menu1.Items[i].ImageUrl = &lt;span class="st"&gt;"unselectedtab.gif"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span class="kwd"&gt;protected void&lt;/span&gt; Menu2_MenuItemClick(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, MenuEventArgs e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;MultiView2.ActiveViewIndex = Int32.Parse(e.Item.Value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span class="kwd"&gt;int&lt;/span&gt; i;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span class="cmt"&gt;// Make the selected menu item reflect the correct imageurl&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span class="kwd"&gt;for&lt;/span&gt; (i = 0; (i &amp;lt;= (Menu1.Items.Count - 1)); i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span class="kwd"&gt;if&lt;/span&gt; (e.Item.Value.Equals(i + &lt;span class="st"&gt;""&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;Menu2.Items[i].ImageUrl = &lt;span class="st"&gt;"selectedtab.gif"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span class="kwd"&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;                &lt;/span&gt;Menu2.Items[i].ImageUrl = &lt;span class="st"&gt;"unselectedtab.gif"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5116649371585489838?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5116649371585489838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5116649371585489838' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5116649371585489838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5116649371585489838'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/menu-control-tab-view-placing.html' title='Menu Control (Tab View) Placing  TabContainer inside another TabContainer'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2307156861205178313</id><published>2008-06-06T06:37:00.000-07:00</published><updated>2008-06-06T06:41:09.526-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports asks for Username and Password'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Crystal Reports asks for Username and Password while loading - ASP.NET 2.0</title><content type='html'>&lt;p style="color: rgb(204, 102, 0); font-weight: bold;"&gt;Here is the code for that in VB.NET:&lt;/p&gt;&lt;p&gt;On the page load or button click or whatever you want to run the report on you need to add the following: configureCRYSTALREPORT() &lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;Private Sub&lt;/span&gt; configureCRYSTALREPORT()&lt;br /&gt; &lt;span class="kwd"&gt;Dim&lt;/span&gt; myConnectionInfo &lt;span class="kwd"&gt;As New&lt;/span&gt; ConnectionInfo()&lt;br /&gt; myConnectionInfo.DatabaseName = &lt;span class="st"&gt;"DatabserName"&lt;/span&gt;&lt;br /&gt; myConnectionInfo.UserID = &lt;span class="st"&gt;"UID"&lt;/span&gt;&lt;br /&gt; myConnectionInfo.Password = &lt;span class="st"&gt;"PWD"&lt;/span&gt;&lt;br /&gt; setDBLOGONforREPORT(myConnectionInfo)&lt;br /&gt;&lt;span class="kwd"&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub&lt;/span&gt; setDBLOGONforREPORT(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; myconnectioninfo &lt;span class="kwd"&gt;As&lt;/span&gt; ConnectionInfo)&lt;br /&gt; &lt;span class="kwd"&gt;Dim&lt;/span&gt; mytableloginfos &lt;span class="kwd"&gt;As New&lt;/span&gt; TableLogOnInfos()&lt;br /&gt; mytableloginfos = CrystalReportViewer1.LogOnInfo&lt;br /&gt; &lt;span class="kwd"&gt;For Each&lt;/span&gt; myTableLogOnInfo &lt;span class="kwd"&gt;As&lt;/span&gt; TableLogOnInfo &lt;span class="kwd"&gt;In&lt;/span&gt; mytableloginfos&lt;br /&gt;  myTableLogOnInfo.ConnectionInfo = myconnectioninfo&lt;br /&gt; &lt;span class="kwd"&gt;Next&lt;br /&gt;&lt;br /&gt;End Sub&lt;/span&gt; &lt;/pre&gt;&lt;p&gt; -------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Here is the code for that in C#:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    private void setDBLOGONforREPORT(ConnectionInfo myconnectioninfo)&lt;br /&gt;    {&lt;br /&gt;        TableLogOnInfos mytableloginfos = new TableLogOnInfos();&lt;br /&gt;        mytableloginfos = CrystalReportViewer1.LogOnInfo;&lt;br /&gt;        foreach (TableLogOnInfo myTableLogOnInfo in mytableloginfos)&lt;br /&gt;        {&lt;br /&gt;            myTableLogOnInfo.ConnectionInfo = myconnectioninfo;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;In Page Load....&lt;br /&gt;        ConnectionInfo myConnectionInfo = new ConnectionInfo();&lt;br /&gt;        myConnectionInfo.ServerName = "serverName";&lt;br /&gt;        myConnectionInfo.DatabaseName = "DatabaseName";&lt;br /&gt;        myConnectionInfo.UserID = "sa";&lt;br /&gt;        myConnectionInfo.Password = "pwd";&lt;br /&gt;        setDBLOGONforREPORT(myConnectionInfo);&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2307156861205178313?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2307156861205178313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2307156861205178313' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2307156861205178313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2307156861205178313'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/crystal-reports-asks-for-username-and.html' title='Crystal Reports asks for Username and Password while loading - ASP.NET 2.0'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7218126454509002073</id><published>2008-06-06T06:33:00.000-07:00</published><updated>2008-06-06T06:37:09.341-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Go back to previous page'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Go back to previous page without Loosing Data ASP.NET</title><content type='html'>We can use client-side script (JS) for this purpose...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;input&lt;/span&gt;&lt;span class="attr"&gt; type=&lt;/span&gt;&lt;span class="attrv"&gt;"button"&lt;/span&gt;&lt;span class="attr"&gt; value=&lt;/span&gt;&lt;span class="attrv"&gt;"Click here to go back"&lt;/span&gt;&lt;span class="attr"&gt; onclick=&lt;/span&gt;&lt;span class="attrv"&gt;"javascript: return history.back();"&lt;/span&gt; /&gt; &lt;/pre&gt; or&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;pre class="coloredcode"&gt;&lt;span&gt;&lt;span style="font-size:100%;"&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;input&lt;/span&gt;&lt;span class="attr"&gt; type=&lt;/span&gt;&lt;span class="attrv"&gt;"button"&lt;/span&gt;&lt;span class="attr"&gt; value=&lt;/span&gt;&lt;span class="attrv"&gt;"Click here to go back"&lt;/span&gt;&lt;span class="attr"&gt; onclick=&lt;/span&gt;&lt;span class="attrv"&gt;"javascript: return history.go(-1);"&lt;/span&gt; /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;or&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-size:-1;"&gt;&lt;pre class="coloredcode"&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="attrv"&gt;javascript: return history.go(-1);&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;http://www.aspdotnetfaq.com/Faq/How-to-make-Cross-Page-Postback-in-ASP-Net.aspx &lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7218126454509002073?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7218126454509002073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7218126454509002073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7218126454509002073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7218126454509002073'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/go-back-to-previous-page-without.html' title='Go back to previous page without Loosing Data ASP.NET'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2200554080327367083</id><published>2008-06-06T05:44:00.000-07:00</published><updated>2008-06-19T05:46:27.199-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sending HTML Email'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><category scheme='http://www.blogger.com/atom/ns#' term='Useing HTML tags in codebehind'/><title type='text'>Useing HTML tags in C# or VB.Net codebehind</title><content type='html'>Its simple to use HTML tags in Code behind and display in ASP.NET web pages....&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Method 1:&lt;/span&gt;&lt;br /&gt;&lt;p&gt;in .cs page&lt;/p&gt;&lt;p&gt;        string t = txtBody.Text;&lt;br /&gt;      MyEmailBody.InnerHtml = Server.HtmlDecode(t);&lt;/p&gt;&lt;p&gt;in .aspx page&lt;/p&gt;&lt;p&gt;&amp;lt;div id="MyEmailBody" runat="server"&gt;&amp;lt;/div&gt; &lt;/p&gt;&lt;div id="MyEmailBody" runat="server"&gt;&lt;/div&gt;                    &lt;p&gt;&lt;/p&gt;&lt;p&gt;It may some times require to change the ValidateRequest="false".&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Method 2:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;we can use Literal controls, to view HTML tags in .aspx pages from code behind.&lt;/p&gt;&lt;p&gt;in . aspx page&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &amp;lt;asp:Literal runat="server"&gt;&amp;lt;/asp:Literal&gt;&lt;/p&gt;&lt;p&gt;in .cs page&lt;/p&gt;&lt;p&gt;this.Controls.Add(new LiteralControl("&amp;lt;b&gt;This is  Bold&amp;lt;/b&gt;"));&lt;/p&gt;&lt;p&gt;Hope this helps you in using HTML tags in codebehind.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2200554080327367083?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2200554080327367083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2200554080327367083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2200554080327367083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2200554080327367083'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/useing-html-tags-in-c-or-vbnet.html' title='Useing HTML tags in C# or VB.Net codebehind'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5427699604604931501</id><published>2008-06-06T05:36:00.000-07:00</published><updated>2008-06-06T05:44:31.032-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sending HTML Email'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><category scheme='http://www.blogger.com/atom/ns#' term='Sending emails'/><title type='text'>Sending HTML Emails using ASP.NET, C# with embedded images</title><content type='html'>Today I found these useful links that helps us to embed the images in the HTML emails we are sending using ASP.NET &amp;amp; C#.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Simple HTML Format emails::&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;  private void SendClick() {&lt;br /&gt;        MailMessage mailMsg = new MailMessage();&lt;br /&gt;        try {&lt;br /&gt;            mailMsg.To = "&lt;tomailid&gt;";&lt;br /&gt;            mailMsg.From = "&lt;frommailid&gt;";&lt;br /&gt;            mailMsg.BodyFormat = MailFormat.Html;&lt;br /&gt;            mailMsg.Subject = "Statistics Report";&lt;br /&gt;            mailMsg.Body ="content";&lt;br /&gt;            SmtpMail.SmtpServer ="serverHost";&lt;br /&gt;            SmtpMail.Send(mailMsg);&lt;br /&gt;        }&lt;br /&gt;        catch (Exception ex) {&lt;br /&gt;            Response.Write(ex.Message);&lt;br /&gt;        }&lt;br /&gt;    }  &lt;p style="font-weight: bold; color: rgb(204, 102, 0);"&gt;You can download the example code of sending HTML emails using ASP.NET here...&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.asp101.com/Samples/email_html_aspx.asp"&gt;http://www.asp101.com/Samples/email_html_aspx.asp&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip"&gt;http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip&lt;/a&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;Links to Embed Images in HTML Emails Using ASP.NET &amp;amp; C#&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;To have a basic idea of mailing with an embedded image or object from ASP.NET 2.0 using SMTP Client. You can visit the following links...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.8" title="http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.8" target="_blank"&gt;http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.8&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/kb/IP/EmailByjebarson.aspx"&gt;http://www.codeproject.com/kb/IP/EmailByjebarson.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/inkrajesh.aspx"&gt;http://www.codeproject.com/KB/aspnet/inkrajesh.aspx&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5427699604604931501?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5427699604604931501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5427699604604931501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5427699604604931501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5427699604604931501'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/sending-html-emails-using-aspnet-c-with.html' title='Sending HTML Emails using ASP.NET, C# with embedded images'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5997560349059653899</id><published>2008-06-06T05:25:00.000-07:00</published><updated>2008-06-06T05:36:10.458-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><category scheme='http://www.blogger.com/atom/ns#' term='Sending emails'/><title type='text'>Sending emails using ASP.NET, C# or VB.NET</title><content type='html'>&lt;span style="font-size:85%;"&gt;For  sending mails from asp.net, C#  Using &lt;/span&gt;&lt;span style="font-size:85%;"&gt;System.Web.Mail name space.&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;using&lt;/span&gt;&lt;span style="font-size:85%;"&gt; System.Web.Mail;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;public&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;static&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; SendMail(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;int&lt;/span&gt;&lt;span style="font-size:85%;"&gt; pintUserID, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; pstrMailTo, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; pstrMailBcc,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; pstrMailCc,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; pstrMailSubject,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; pstrMailBody,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; pstrAttachFilePath)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;try&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt; &lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;MailMessage&lt;/span&gt;&lt;span style="font-size:85%;"&gt; objMail = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;new&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;MailMessage&lt;/span&gt;&lt;span style="font-size:85%;"&gt;();&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;objMail.From = System.Configuration.&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;ConfigurationSettings&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.AppSettings[&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:85%;" &gt;"FromEmailID"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;];&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt;//objMail.From =System.Web.HttpContext.Current.Session["OfficeEmailID"].ToString() ;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt; &lt;p&gt;objMail.To = pstrMailTo;&lt;/p&gt; &lt;p&gt;objMail.Bcc = pstrMailBcc;&lt;/p&gt; &lt;p&gt;objMail.Cc = pstrMailCc;&lt;/p&gt; &lt;p&gt;objMail.Subject = pstrMailSubject;&lt;/p&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;MailAttachment&lt;/span&gt;&lt;span style="font-size:85%;"&gt; Attachment = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;null&lt;/span&gt;&lt;span style="font-size:85%;"&gt;;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;if&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;File&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.Exists(pstrAttachFilePath))&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;p&gt;{&lt;/p&gt;Attachment = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;new&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;MailAttachment&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(pstrAttachFilePath);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;objMail.Attachments.Add(Attachment);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;SmtpMail&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.SmtpServer = &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:85%;" &gt;"localhost"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt;//System.Configuration.ConfigurationSettings.AppSettings["SMTPServerIP"]; &lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;SmtpMail&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.Send(objMail);&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;return&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:85%;" &gt;"TRUE"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;p&gt;}&lt;/p&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;catch&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 128, 128);font-size:85%;" &gt;Exception&lt;/span&gt;&lt;span style="font-size:85%;"&gt; Ex)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;return&lt;/span&gt;&lt;span style="font-size:85%;"&gt; Ex.Message;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;p&gt;}&lt;/p&gt; &lt;p&gt;}&lt;/p&gt;&lt;p&gt;In Config file&lt;/p&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt; &lt;/span&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);font-size:85%;" &gt;add&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt; &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;key&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;=&lt;/span&gt;&lt;span style="font-size:85%;"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;SMTPServerIP&lt;/span&gt;&lt;span style="font-size:85%;"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt; &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;value&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;=&lt;/span&gt;&lt;span style="font-size:85%;"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;192.168.1.11&lt;/span&gt;&lt;span style="font-size:85%;"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&gt; &amp;lt;/&lt;!--&lt;/span--&gt;&lt;span style="color: rgb(128, 0, 0);font-size:85%;" &gt;add&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;Call this function SendMail  &amp;amp; enable your system SMTP server.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Useful links for sending email &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.asp101.com/Samples/email_html_aspx.asp"&gt;http://www.asp101.com/Samples/email_html_aspx.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip"&gt;http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/Email_Sending_Programme.aspx"&gt;http://www.codeproject.com/KB/aspnet/Email_Sending_Programme.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.codersource.net/csharp_sending_emails.aspx"&gt;http://www.codersource.net/csharp_sending_emails.aspx&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5997560349059653899?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5997560349059653899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5997560349059653899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5997560349059653899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5997560349059653899'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/sending-emails-using-aspnet-c-or-vbnet.html' title='Sending emails using ASP.NET, C# or VB.NET'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-450445339508096914</id><published>2008-06-06T00:39:00.000-07:00</published><updated>2008-06-06T01:17:10.768-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Embed Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='Videos in ASP.Net web pages'/><title type='text'>How to Embed Flash, Videos in ASP.Net web pages</title><content type='html'>&lt;span style=";font-family:verdana;font-size:100%;"  &gt;To embed flash and videos we can use simple HTML embed tag for this purpose.&lt;br /&gt;&lt;br /&gt;For example.&lt;br /&gt;&lt;br /&gt;&lt;&lt;span class="start-tag"&gt;embed&lt;/span&gt;&lt;span class="attribute-name"&gt; src&lt;/span&gt;=&lt;span class="attribute-value"&gt;"images/flash02.swf" &lt;/span&gt;&lt;span class="attribute-name"&gt;quality&lt;/span&gt;=&lt;span class="attribute-value"&gt;"high" &lt;/span&gt;&lt;span class="attribute-name"&gt;bgcolor&lt;/span&gt;=&lt;span class="attribute-value"&gt;"#ffffff" &lt;/span&gt;&lt;span class="attribute-name"&gt;width&lt;/span&gt;=&lt;span class="attribute-value"&gt;"775" &lt;/span&gt;&lt;span class="attribute-name"&gt;height&lt;/span&gt;=&lt;span class="attribute-value"&gt;"24" &lt;/span&gt;&lt;span class="attribute-name"&gt;name&lt;/span&gt;=&lt;span class="attribute-value"&gt;"flash" &lt;/span&gt;&lt;span class="attribute-name"&gt;align&lt;/span&gt;=&lt;span class="attribute-value"&gt;"middle" &lt;/span&gt;&lt;span class="attribute-name"&gt;allowScriptAccess&lt;/span&gt;=&lt;span class="attribute-value"&gt;"sameDomain" &lt;/span&gt;&lt;span class="attribute-name"&gt;allowFullScreen&lt;/span&gt;=&lt;span class="attribute-value"&gt;"false" &lt;/span&gt;&lt;span class="attribute-name"&gt;type&lt;/span&gt;=&lt;span class="attribute-value"&gt;"application/x-shockwave-flash" &lt;/span&gt;&lt;span class="attribute-name"&gt;pluginspage&lt;/span&gt;=&lt;span class="attribute-value"&gt;"http://www.macromedia.com/go/getflashplayer" &lt;/span&gt;&lt;span class="error"&gt;&lt;span class="attribute-name"&gt;/&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;&lt;br /&gt;enables us to display flash files in Asp.net web pages.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;Using JavaScript to display flash in Webpages.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre id="line187"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;script type="text/javascript" src="FlashSwfObject.js"&gt;&lt;/script&gt;1. &amp;lt;script type="text/javascript" src="FlashSwfObject.js"&gt;&amp;lt;/script&gt;&lt;span style="font-family: monospace;"&gt;  &lt;/span&gt; &lt;p&gt;Use div tag where you want to display the SWF, use a unique &lt;i&gt;id&lt;/i&gt;:&lt;/p&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;div id="flashbanner"&gt;Your SWF will display here!!.&amp;lt;/div&gt; &lt;/pre&gt;We can instantiate the&lt;span style="font-family:monospace;"&gt; &lt;/span&gt;FlashSwfObject using below code.&lt;pre id="line187"&gt;&lt;span class="entity"&gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&gt;&lt;span class="entity"&gt;&lt;/span&gt;&lt;br /&gt; var so = new SWFObject('MyMedia.swf','mpl','300','250','7');&lt;br /&gt; so.addParam('allowfullscreen','true');&lt;br /&gt; so.addVariable('file','playlist.xml');&lt;br /&gt; so.addVariable('backcolor','0x000000');&lt;br /&gt; so.addVariable('autostart','true');&lt;br /&gt; so.write('flashbanner');&lt;br /&gt;&amp;lt;&lt;span class="entity"&gt;&lt;/span&gt;/script&gt;&lt;/pre&gt;  &lt;script type="text/javascript"&gt;   var so = new SWFObject('mp3player.swf','mpl','300','250','7');   so.addParam('allowfullscreen','true');   so.addVariable('file','playlist.xml');   so.addVariable('backcolor','0x000000');   so.addVariable('autostart','true');   so.write('flashbanner'); &lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-450445339508096914?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/450445339508096914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=450445339508096914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/450445339508096914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/450445339508096914'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/how-to-embed-flash-videos-in-aspnet-web.html' title='How to Embed Flash, Videos in ASP.Net web pages'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-1437068075554323012</id><published>2008-06-06T00:25:00.000-07:00</published><updated>2008-06-06T00:36:34.222-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Image Resize'/><category scheme='http://www.blogger.com/atom/ns#' term='Code Samples'/><title type='text'>Image Resize using ASP.NET C# and displaying as Thumbnails dynamically</title><content type='html'>The following code helps us to &lt;span style="font-weight: bold;"&gt;Resize images&lt;/span&gt; and display them as thumbnails dynamically using ASP.NET C#.&lt;br /&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        string BasePath = Server.MapPath(".");&lt;br /&gt;        Bitmap Img, ImgTemp;&lt;br /&gt;&lt;br /&gt;        ImgTemp = new Bitmap(BasePath + "\\images\\Balaji.jpg");&lt;br /&gt;        Img = new Bitmap(ImgTemp, 200, 300);&lt;br /&gt;&lt;br /&gt;        Graphics Graph;&lt;br /&gt;        Graph = Graphics.FromImage(Img);&lt;br /&gt;&lt;br /&gt;        Img.Save(Response.OutputStream, ImageFormat.Jpeg);&lt;br /&gt;        Graph.DrawImage(Img, 0, 0);&lt;br /&gt;&lt;br /&gt;        ImgTemp.Dispose();&lt;br /&gt;&lt;br /&gt;        Img.Dispose();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;This  function helps us to set the height and width of the new image Bitmap(ImgTemp, 200, 300);&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-1437068075554323012?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/1437068075554323012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=1437068075554323012' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1437068075554323012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1437068075554323012'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/06/image-resize-using-aspnet-c-and.html' title='Image Resize using ASP.NET C# and displaying as Thumbnails dynamically'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-3489847219128828217</id><published>2008-04-01T01:18:00.000-07:00</published><updated>2008-04-01T01:21:07.532-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 14</title><content type='html'>&lt;span style="font-family: verdana;font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Localization/Globalization&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;What      is Unicode and why was it introduced? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Does      .NET support UNICODE and how do you know it supports? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What’s      the difference between localization and globalization?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What      architecture decisions you should consider while planning for      international software’s?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How do      we get the current culture of the environment in windows and ASP.NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Which      are the important namespaces during localization and globalization?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What      are resource files and how do we generate resource files?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Can      resource file be in any other format other than resx extensions?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How is      resource files actually used in project? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How      can we use Culture Auto in project? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What      are satellite assemblies? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How do      we generate Satellite assemblies? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What      is AL.EXE and RESGEN.EXE? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What’s      the use of resource manager class? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What      precautions do we need to take while deploying satellite assemblies?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Can we      get a strongly typed resource class rather than using resource manager?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Explain      fundamentals of “GetGlobalResourceObject” and “GetLocalResourceObject”      functions?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Can we      sign a satellite assembly?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Can      you explain collation sequence in sql server? &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How do      we define collation sequence for database and tables?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Can we      change the order in a select query with a specified collation sequence?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What      are the best practices to be followed while implementing globalization and      localization?&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Why is      the culture set to the current thread?&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-3489847219128828217?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/3489847219128828217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=3489847219128828217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3489847219128828217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3489847219128828217'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-14.html' title='.NET Interview questions and Answers: 14'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5541076678364638673</id><published>2008-04-01T01:17:00.000-07:00</published><updated>2008-04-01T01:18:36.422-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 13</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;XML&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the version information in XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is ROOT element in XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;If XML      does not have closing tag will it work?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Is XML      case sensitive?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between XML and HTML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Is XML      meant to replace HTML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain why your project needed XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is DTD (Document Type definition)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is well formed XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a valid XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is CDATA section in XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is CSS?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is XSL?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Element and attributes in XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Which      are the namespaces in .NET used for XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the standard ways of parsing XML document?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;In      What scenarios will you use a DOM parser and SAX parser?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      was XML handled during COM times?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the main difference between MSML and .NET Framework XML classes?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the core functionalities in XML .NET framework? Can you explain in      detail&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;those      functionalities?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is XSLT?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Define      XPATH?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the concept of XPOINTER?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is an XMLReader Class?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is XMLTextReader?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      we access attributes using “XmlReader”?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Explain      simple Walk through of XmlReader ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      does XmlValidatingReader class do?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5541076678364638673?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5541076678364638673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5541076678364638673' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5541076678364638673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5541076678364638673'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-13.html' title='.NET Interview questions and Answers: 13'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7617520746978843776</id><published>2008-04-01T01:16:00.000-07:00</published><updated>2008-04-01T01:17:23.955-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 12</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;Project Management&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is project management?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Is      spending in IT project’s constant through out the project?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Who is      a stakeholder ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain project life cycle ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- How many phases are there in software project ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Are      risk constant through out the project ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain different software development life cycles ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is triple constraint triangle in project management ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a project baselines ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is effort variance?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How is      normally a project management plan document organized ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you estimate a project?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is CAR (Causal Analysis and Resolution)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is DAR (Decision Analysis and Resolution)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a fish bone diagram ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:-      What is Ishikawa diagram ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is pareto principle ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What is 80/20 principle ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you handle change request?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is internal change request?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is difference between SITP and UTP in testing ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the software you have used for project management?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the metrics followed in project management?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:      - What metrics will you look at in order to see the project is moving      successfully?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;You      have people in your team who do not meet there deadlines or do not perform      what are the actions you will take ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- Two of your resources have conflict’s between them how would you sort      it out ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is black box testing and White box testing?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between Unit Testing, Assembly Testing and Regression      testing?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is V model in testing?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you start a project?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      did you do resource allocations?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you do code reviews ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is CMMI?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the five levels in CMMI?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is continuous and staged representation?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain the process areas?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is SIX sigma?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is DMAIC and DMADV ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the various roles in Six Sigma implementation?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are function points?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:      - Define Elementary process in FPA?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different types of elementary process in FPA?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the different elements in Functions points?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain in GSC and VAF in function points?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are unadjusted function points and how is it calculated?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain steps in function points?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the FP per day in your current company?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What is your company’s productivity factor ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Do you      know Use Case points?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is COCOMO I, COCOMOII and COCOMOIII?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is SMC approach of estimation?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you estimate maintenance project and change requests?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7617520746978843776?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7617520746978843776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7617520746978843776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7617520746978843776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7617520746978843776'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-12.html' title='.NET Interview questions and Answers: 12'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7155021933829480222</id><published>2008-04-01T01:14:00.000-07:00</published><updated>2008-04-01T01:16:04.678-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 11</title><content type='html'>&lt;span style="font-family: verdana;font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;UML&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is UML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      many types of diagrams are there in UML ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- Explain in short all types of diagrams in UML ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are advantages of using UML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:      - What is Modeling and why UML ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the sequence of UML diagrams in project?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:      - How did you implement UML in your project?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Just a      small Twist: - Do I need all UML diagrams in a project?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Give a      small brief explanation of all Elements in activity diagrams?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Explain      Different elements of a collaboration diagram ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Explain      Component diagrams ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Explain      all parts of a deployment diagram?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Describe      various components in sequence diagrams?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the element in State Chart diagrams ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Describe      different elements in Static Chart diagrams ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Explain      different elements of a Use Case ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:      - What’s difference between Activity and sequence diagrams?(I leave this      to the readers)&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;blockquote&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7155021933829480222?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7155021933829480222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7155021933829480222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7155021933829480222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7155021933829480222'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-11.html' title='.NET Interview questions and Answers: 11'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-3820162742429495940</id><published>2008-04-01T01:12:00.000-07:00</published><updated>2008-04-01T01:14:22.394-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 10</title><content type='html'>&lt;span style="font-family: verdana;font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;SQL SERVER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is normalization? What are different type of normalization?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is denormalization ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a candidate key ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different types of joins and whats the difference between them ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are indexes and What is the difference between clustered and nonclustered      indexes?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can you increase SQL performance ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the use of OLAP ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What's      a measure in OLAP ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are dimensions in OLAP ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are levels in dimensions ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are fact tables and dimension tables in OLAP ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- can you explain the star schema for OLAP ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is DTS?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is fillfactor ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- When does plage split occurs ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is RAID and how does it work ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What's      the difference between DELETE TABLE and TRUNCATE TABLE commands?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the problems that can occur if you do not implement locking properly      in SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different transaction levels in SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- what are different types of locks in SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different locks in SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can we      suggest locking hints to SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is LOCK escalation?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the different ways of moving data/databases between servers and      databases in SQL Server?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are advantages of SQL 2000 over SQl 7.0 ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the difference between a HAVING CLAUSE and a WHERE CLAUSE?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is difference between &lt;st1:place st="on"&gt;UNION&lt;/st1:place&gt; and UNION ALL      SQL syntax ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can you raise custom errors from stored procedure ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is ACID fundamental and what are transactions in SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is DBCC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is purpose of Replication ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different type of replication supported by SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is BCP utility in SQL SERVER ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different types of triggers in SQl SERVER 2000 ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;If we      have multiple AFTER Triggers on table how can we define the sequence of      the triggers ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is SQl injection ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between Stored Procedure (SP) and User Defined Function      (UDF)?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;span style="font-family: verdana;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-3820162742429495940?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/3820162742429495940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=3820162742429495940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3820162742429495940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3820162742429495940'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-10.html' title='.NET Interview questions and Answers: 10'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7582103934578162210</id><published>2008-04-01T01:11:00.001-07:00</published><updated>2008-04-01T01:12:49.214-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 9</title><content type='html'>&lt;span style="font-family: verdana;font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;ADO.NET&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the namespace in which .NET has the data functionality classes ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you give a overview of ADO.NET architecture ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the two fundamental objects in ADO.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is difference between dataset and datareader ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are major difference between classic &lt;st1:city st="on"&gt;&lt;st1:place st="on"&gt;ADO&lt;/st1:place&gt;&lt;/st1:City&gt;      and ADO.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the use of connection object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the use of command objects and what are the methods provided by the      command object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the use of dataadapter ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are basic methods of Dataadapter ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Dataset object?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the various objects in Dataset ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we connect to Microsoft Access , Foxpro , Oracle etc ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      we connect to SQL SERVER , which namespace do we use ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      we use stored procedure in ADO.NET and how do we provide parameters to the      stored procedures?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we force the connection object to close after my datareader is closed      ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;I want      to force the datareader to return only schema of the datastore rather than      data ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we fine tune the command object when we are expecting a single row or      a single value ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Which      is the best place to store connectionstring in .NET projects ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are steps involved to fill a dataset ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- How can we use dataadapter to fill a dataset ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the various methods provided by the dataset object to generate XML?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we save all data from dataset ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we check that some changes have been made to dataset since it was      loaded ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- How can we cancel all changes done in dataset ? , How do we get values      which are changed in a dataset ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we add/remove row’s in “DataTable” object of “DataSet” ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      basic use of “DataView” ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between “DataSet” and “DataReader” ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- Why is DataSet slower than DataReader ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we load multiple tables in a DataSet ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we add relation’s between table in a DataSet ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the use of CommandBuilder ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between “Optimistic” and “Pessimistic” locking ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      many way’s are there to implement locking in ADO.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we perform transactions in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between Dataset. clone and Dataset. copy ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain the difference between an ADO.NET Dataset and an ADO      Recordset?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Explain      in detail the fundamental of connection pooling?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Maximum Pool Size in ADO.NET Connection String?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How to      enable and disable connection pooling?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7582103934578162210?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7582103934578162210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7582103934578162210' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7582103934578162210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7582103934578162210'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-9.html' title='.NET Interview questions and Answers: 9'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-3611792223684669557</id><published>2008-04-01T01:09:00.000-07:00</published><updated>2008-04-01T01:11:13.308-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 8</title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;span style="font-family:verdana;"&gt;.NET Architecture&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are design patterns ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between Factory and Abstract Factory Pattern’s?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      MVC pattern?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:      - How can you implement MVC pattern in ASP.NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we implement singleton pattern in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you implement prototype pattern in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist:      - How to implement cloning in .NET ? , What is shallow copy and deep copy      ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the situations you will use a Web Service and Remoting in projects?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you give a practical implementation of FAÇADE patterns?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we implement observer pattern in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is three tier architecture?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Have      you ever worked with Microsoft Application Blocks, if yes then which?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Service Oriented architecture?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different ways you can pass data between tiers?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Windows DNA architecture?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is aspect oriented programming?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-3611792223684669557?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/3611792223684669557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=3611792223684669557' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3611792223684669557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/3611792223684669557'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-8.html' title='.NET Interview questions and Answers: 8'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-6427529308053060989</id><published>2008-04-01T01:06:00.000-07:00</published><updated>2008-04-01T01:09:34.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 7</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;&lt;span style="font-size:130%;"&gt;ASP.NET Interview questions and Answers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the sequence in which ASP.NET events are processed ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;In      which event are the controls fully loaded ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we identify that the Page is PostBack ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      does ASP.NET maintain state in between subsequent request ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is event bubbling ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      we assign page specific attributes ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Administrator      wants to make a security check that no one has tampered with ViewState ,      how can he ensure this ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the use of @ Register directives ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the use of SmartNavigation property ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is AppSetting Section in “Web.Config” file ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Where      is ViewState information stored ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the use of @ OutputCache directive in ASP.NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we create custom controls in ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How many      types of validation controls are provided by ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain what is “AutoPostBack” feature in ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can you enable automatic paging in DataGrid ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the use of “GLOBAL.ASAX” file ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between “Web.config” and “Machine.Config” ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      a SESSION and APPLICATION object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between Server.Transfer and response.Redirect ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between Authentication and authorization?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is impersonation in ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain in brief how the ASP.NET authentication process works?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the various ways of authentication techniques in ASP.NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      does authorization work in ASP.NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between Datagrid , Datalist and repeater ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;From      performance point of view how do they rate ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the method to customize columns in DataGrid?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we format data inside DataGrid?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      will decide the design consideration to take a Datagrid , datalist or      repeater ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Difference      between ASP and ASP.NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are major events in GLOBAL.ASAX file ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      order they are triggered ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Do      session use cookies ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we force all the validation control to run ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we check if all the validation control are valid and proper ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;If you      have client side validation is enabled in your Web page , Does that mean      server side code is not run?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Which      JavaScript file is referenced for validating the validators at the client      side ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How to      disable client side script in validators?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;I want      to show the entire validation error message in a message box on the client      side?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;You      find that one of your validation is very complicated and does not fit in      any of the validators , so what will you do ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Tracing in ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      we enable tracing ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      exactly happens when ASPX page is requested from Browser?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we kill a user session ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you upload a file in ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      I send email message from ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different IIS isolation levels?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;ASP      used STA threading model , whats the threading model used for ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Whats      the use of &lt;%@ page aspcompat=true %&gt; attribute ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Explain      the differences between Server-side and Client-side code?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain Forms authentication in detail ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      I sign out in forms authentication ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;If      cookies are not enabled at browser end does form Authentication work?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How to      use a checkbox in a datagrid?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the steps to create a windows service in VB.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between “Web farms” and “Web garden”?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      we configure “WebGarden”?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the main difference between Gridlayout and FlowLayout ?&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-6427529308053060989?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/6427529308053060989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=6427529308053060989' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6427529308053060989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/6427529308053060989'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-7.html' title='.NET Interview questions and Answers: 7'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-1917439476679120089</id><published>2008-04-01T00:33:00.000-07:00</published><updated>2008-04-01T00:34:22.829-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 6</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;OOPS&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Object Oriented Programming ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      a Class ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      a Object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the relation between Classes and Objects ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different properties provided by Object-oriented systems ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- Can you explain different properties of Object Oriented Systems?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What’s difference between Association , Aggregation and Inheritance      relationships?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we acheive inheritance in VB.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are abstract classes ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      a Interface ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is difference between abstract classes and interfaces?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a delegate ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are event’s ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Do      events have return type ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      event’s have access modifiers ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can we      have shared events ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is shadowing ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between Shadowing and Overriding ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between delegate and events?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;If we      inherit a class do the private variables also get inherited ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different accessibility levels defined in .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you prevent a class from overriding ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the use of “MustInherit” keyword in VB.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Why      can not you specify accessibility modifier in Interface ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are similarities between Class and structure ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between Class and structure’s ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      does virtual keyword mean ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are shared (VB.NET)/Static(C#) variables?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Dispose method in .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Whats      the use of “OverRides” and “Overridable” keywords ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Where      are all .NET Collection classes located ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is ArrayList ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      a HashTable ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What’s difference between HashTable and ArrayList ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are queues and stacks ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is ENUM ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is nested Classes ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      Operator Overloading in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;In      below sample code if we create a object of class2 which constructor will      fire first ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the significance of Finalize method in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Why is      it preferred to not use finalize for clean up?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we suppress a finalize method?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the use of DISPOSE method?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      I force the Dispose method to be called automatically, as clients can      forget to call Dispose method?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;In      what instances you will declare a constructor to be private?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can we      have different access modifiers on get/set methods of a property ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;If we      write a goto or a return statement in try and catch block will the finally      block execute ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Indexer ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can we      have static indexer in C# ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;In a      program there are multiple catch blocks so can it happen that two catch      blocks are executed ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is the difference between System.String and System.StringBuilder classes?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-1917439476679120089?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/1917439476679120089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=1917439476679120089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1917439476679120089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/1917439476679120089'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-6.html' title='.NET Interview questions and Answers: 6'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5567403715558312472</id><published>2008-04-01T00:30:00.000-07:00</published><updated>2008-04-01T00:33:21.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 5</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;Caching Concepts&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is application object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between Cache object and application object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can get access to cache object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are dependencies in cache and types of dependencies ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you show a simple code showing file dependency in cache ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Cache Callback in Cache ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is scavenging ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different types of caching using cache object of ASP.NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can you cache different version of same page using ASP.NET cache object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      will implement Page Fragment Caching ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are ASP.NET session and compare ASP.NET session with classic ASP session      variables?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Which      various modes of storing ASP.NET session ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Is      Session_End event supported in all session modes ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the precautions you will take in order that StateServer Mode work      properly ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the precautions you will take in order that SQLSERVER Mode work      properly ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Where      do you specify session state mode in ASP.NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are the other ways you can maintain state ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are benefits and Limitation of using Hidden fields ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is ViewState ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Do      performance vary for viewstate according to User controls ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are benefits and Limitation of using Viewstate for state management?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How an      you use Hidden frames to cache client data ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are benefits and Limitation of using Hidden frames?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are benefits and Limitation of using Cookies?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Query String and What are benefits and Limitation of using Query      Strings?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5567403715558312472?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5567403715558312472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5567403715558312472' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5567403715558312472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5567403715558312472'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-5.html' title='.NET Interview questions and Answers: 5'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-5056202259067135683</id><published>2008-04-01T00:26:00.000-07:00</published><updated>2008-04-01T00:30:03.491-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 4</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;Remoting and Webservices&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in;" start="1" type="1"&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is a application domain?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is .NET Remoting ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Which      class does the remote object has to inherit ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      are two different types of remote object creation mode in .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Describe      in detail Basic of SAO architecture of Remoting?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      are the situations you will use singleton architecture in remoting ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is fundamental of published or precreated objects in Remoting ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      are the ways client can create object on server in CAO model ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Are      CAO stateful in nature ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;In CAO      model when we want client objects to be created by “NEW” keyword is there&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;any      precautions to be taken ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Is it      a good design practice to distribute the implementation to Remoting Client      ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is LeaseTime,SponsorshipTime ,RenewonCallTime and LeaseManagerPollTime?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Which      config file has all the supported channels/protocol ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;How      can you specify remoting parameters using Config files ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Can      Non-Default constructors be used with Single Call SAO?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What are the limitation of constructors for Single call SAO ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;How      can we call methods in remoting Asynchronously ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is Asynchronous One-Way Calls ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is marshalling and what are different kinds of marshalling ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is ObjRef object in remoting ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is a WebService ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is UDDI ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is DISCO ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is WSDL?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      the different phase/steps of acquiring a proxy object in Webservice ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      is file extension of Webservices ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;Which      attribute is used in order that the method can be used as WebService?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;What      are the steps to create a webservice and consume it ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: verdana;"&gt;Do webservice      have state ?&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-5056202259067135683?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/5056202259067135683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=5056202259067135683' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5056202259067135683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/5056202259067135683'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-4.html' title='.NET Interview questions and Answers: 4'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-7639427768022407736</id><published>2008-04-01T00:25:00.000-07:00</published><updated>2008-04-01T00:35:34.582-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 3</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Threading&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol  style="margin-top: 0in;font-family:verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Multi-tasking ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Multi-threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a Thread ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Did      VB6 support multi-threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can we      have multiple threads in one App domain ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Which      namespace has threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain in brief how can we implement threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we change priority and what the levels of priority are provided by      .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      does Addressof operator do in background ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can you reference current thread of the method ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What's      Thread.Sleep() in threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we make a thread sleep for infinite period ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Suspend and Resume in Threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      the way to stop a long running thread ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      i debug thread ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What's      Thread.Join() in threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are Daemon thread's and how can a thread be created as Daemon?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;When      working with shared data in threading how do you implement synchronization      ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can we      use events with threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we know a state of a thread?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a monitor object?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are wait handles ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What is a mutex object ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;what      is ManualResetEvent and AutoResetEvent ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is ReaderWriter Locks ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can you avoid deadlock in threading ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between thread and process?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-7639427768022407736?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/7639427768022407736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=7639427768022407736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7639427768022407736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/7639427768022407736'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-2_01.html' title='.NET Interview questions and Answers: 3'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-498586262136474773</id><published>2008-04-01T00:23:00.000-07:00</published><updated>2008-04-01T00:25:09.823-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 2</title><content type='html'>&lt;table str="" style="border-collapse: collapse; width: 538pt; font-family: verdana;" border="0" cellpadding="0" cellspacing="0" width="717"&gt;&lt;col style="width: 538pt;" width="717"&gt;&lt;col&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td class="xl24" style="height: 12.75pt; width: 538pt;" height="17" width="717"&gt;.NET   Interoperability&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;tbody&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;.NET Interoperability&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we use COM Components in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      : What is RCW ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Once i      have developed the COM wrapper do i have to still register the COM in      registry?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we use .NET components in COM?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What is CCW (COM callable wrapper) ?, What caution needs to be taken in      order that .NET components is compatible with COM ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      can we make Windows API calls in .NET?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;When      we use windows API in .NET is it managed or unmanaged code ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is COM ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Reference counting in COM ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you describe IUKNOWN interface in short ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can      you explain what is DCOM ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      we create DCOM object in VB6?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How to      implement DTC in .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How      many types of Transactions are there in COM + .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How do      you do object pooling in .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are types of compatibility in VB6?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is equivalent for regsvr32 exe in .NET ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-498586262136474773?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/498586262136474773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=498586262136474773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/498586262136474773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/498586262136474773'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions-and-answers-2.html' title='.NET Interview questions and Answers: 2'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-2563230926990177716</id><published>2008-04-01T00:11:00.000-07:00</published><updated>2008-04-01T00:23:32.375-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Interview questions'/><title type='text'>.NET Interview questions and Answers: 1</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;.NET Interview questions :- Basic .NET Framework&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ol  style="margin-top: 0in;font-family:verdana;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a IL?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal"  style="margin-left: 0.25in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;       &lt;/span&gt;Twist :- What is MSIL or CIL , What is JIT?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol  style="margin-top: 0in;font-family:verdana;" start="2" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a CLR?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a CTS?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a CLS(Common Language Specification)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a Managed Code?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a Assembly ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different types of Assembly?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is NameSpace?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Difference between NameSpace and Assembly?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;If you      want to view a Assembly how to you go about it ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      : What is ILDASM ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Manifest?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Where      is version information stored of a assembly ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Is      versioning applicable to private assemblies?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is GAC ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- What are situations when you register .NET assembly in GAC ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is concept of strong names ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Twist      :- How do we generate strong names or what is the process of generating      strong names , What is use of SN.EXE , How do we apply strong names to      assembly ? , How do you sign an assembly ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How to      add and remove a assembly from GAC?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Delay signing ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is garbage collection?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;Can we      force garbage collector to run ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is reflection?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are different type of JIT ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      are Value types and Reference types ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is concept of Boxing and Unboxing ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between VB.NET and C# ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      difference between System exceptions and Application exceptions?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What is      CODE Access security?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is a satellite assembly?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;How to      prevent my .NET DLL to be decompiled?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What’s      the difference between Convert.toString and .toString() method ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is Native Image Generator (Ngen.exe)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;We      have two version of the same assembly in GAC? I want my client to make      choice of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;which      assembly to choose?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="font-size:100%;"&gt;What      is CodeDom?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-2563230926990177716?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/2563230926990177716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=2563230926990177716' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2563230926990177716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/2563230926990177716'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/04/net-interview-questions.html' title='.NET Interview questions and Answers: 1'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-8637608848836839839</id><published>2008-03-28T00:47:00.000-07:00</published><updated>2008-03-28T00:57:54.188-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Resume'/><title type='text'>Sample Resume</title><content type='html'>&lt;p class="MsoNormal"  style="margin: 0in -1.25in 0.0001pt 4.5in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;your&gt;&lt;/your&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 4.5in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;your&gt;&lt;/your&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 4.5in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;Mail: interviewQuestions@yahoo.com&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 4.5in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;Phones: 9966775533&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Summary:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul  style="margin-top: 0in;font-family:verdana;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Experience of above 7 years experience in IT industry&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Ability to handle independently projects and lead      team in c#, vb.net, vb6, asp, asp.net with Sql server back end.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Software estimation using Function points and Use      Case Points.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Handled Team of 20 people and met project deadlines      according to management needs.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Analysis design, preparing scope document's document,      UML documentation.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Good knowledge in CMM level process was a member of      CMMI steering committee.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Abroad experience of 30 months in US and &lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;UK&lt;/st1:place&gt;&lt;/st1:country-region&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Presently Working in SBI project &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Will join after one month as that's my present      companies leaving period.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Expectations:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul  style="margin-top: 0in;font-family:verdana;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Looking for a post of project leader or project      manager.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Getting four lakhs plus per annum.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Expecting eight lakhs per annum.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Software Skills:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul  style="margin-top: 0in;font-family:verdana;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Languages:-C#,VB.NET,VB/5/6,ASP, ASP.NET, COBOL, C, Vbscript,      JavaScript.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Tools used in Projects: - Code Smith, FXCop, NUnit,      MPP, &lt;st1:city st="on"&gt;&lt;st1:place st="on"&gt;Enterprise&lt;/st1:place&gt;&lt;/st1:city&gt;      architect.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Application Blocks: - Data Application Blocks, Error      handling Application blocks.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Databases:-Sql Server 7.0/2000/DB2/IMS/ ACCESS&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Server:-BizTalk Server, IIS Server, Java Web server ,      MTS &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Certifications:-MCSD&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Architecture Know How: - Design Patterns, Three tier      architecture and MVC.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Estimation techniques :- Function Points, Use Case      Points,COCOMO-2&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Process Know How: - Was in Steering committee of CMMI      5, Know how of all KPA and implemented project management KPA in project      with help of my project manager.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Operating Systems:- MVS, Windows , OS/ WRAP,NT 4.0,Windows      2000 and 2003 &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Work Experience:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 45pt; text-indent: -0.25in;font-family:verdana;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;        &lt;/span&gt;&lt;/span&gt;Simon technologies (July 2004 till Date)&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 45pt; text-indent: -0.25in;font-family:verdana;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;        &lt;/span&gt;&lt;/span&gt;Onsite London 11 Th October 2001 TO 2 nd Feb 2004.&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 45pt; text-indent: -0.25in;font-family:verdana;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;        &lt;/span&gt;&lt;/span&gt;Raj travels &lt;span style=""&gt; &lt;/span&gt;March 2001 TO 10 Th October 2001&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 45pt; text-indent: -0.25in;font-family:verdana;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;        &lt;/span&gt;&lt;/span&gt;Extra force 2 Jan 2000 TO Feb 2001&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin: 0in -1in 0.0001pt 45pt; text-indent: -0.25in;font-family:verdana;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;        &lt;/span&gt;&lt;/span&gt;Amazing technologies 28th Sept 97 TO 23 rd Dec 1999&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Significant Projects:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul  style="margin-top: 0in;font-family:verdana;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;SBI&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Cadbury Prototype.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Call centre Project (Maersk)&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Travel Product.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Travel Back Office.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Kodak Album.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Instareach&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Accounts Package(In house Project)&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Placement Website.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;R&amp;amp;D Equipments Project.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Sense Stock website.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Ebenshoppe.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Indian Marriage Website.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Zed gateway website&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;ISI bar Furnace simulation project.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Export package for vaishnav export.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Project Details:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;NOTE: (In order to keep the CV short I have described only past 7 projects)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid"  style="border: medium none ; width: 477pt; margin-left: 23.4pt; border-collapse: collapse;font-family:verdana;" border="1" cellpadding="0" cellspacing="0" width="636"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td colspan="2" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 477pt;" valign="top" width="636"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;State Bank of &lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;India&lt;/st1:place&gt;&lt;/st1:country-region&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Role&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Leader&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Platform&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Asp.NET,C#,SQL SERVER 2000&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Size&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;3&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 49.9pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in; height: 49.9pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Description&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt; height: 49.9pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;ul style="margin-top: 0in;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Atomization of leave process through proper defined        hierarchy of &lt;st1:place st="on"&gt;Normal&lt;/st1:place&gt; user, SA and RA        roles among members.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Migrating old application database to new        application database.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Authorization and authentification happens through        NDS.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Maintain Audit History of leave application.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Integration of the leave work flow with group wise        task list and calendar&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Incorporating custom rules for the following leave        type &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Improving scalability of the old application.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid"  style="border: medium none ; width: 477pt; margin-left: 23.4pt; border-collapse: collapse;font-family:verdana;" border="1" cellpadding="0" cellspacing="0" width="636"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td colspan="2" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 477pt;" valign="top" width="636"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;Cadbury project prototype&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Role&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Leader&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Platform&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Asp.NET,C#,SQL SERVER 2000&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Size&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;5&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 49.9pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1in; height: 49.9pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="96"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Description&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 405pt; height: 49.9pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="540"&gt;   &lt;ul style="margin-top: 0in;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Application Record’s Downtime and uptime of the        plant and machinery.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Drawing reports from the downtime and uptime        gathered data.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Graphical and Non-graphical representation of        report.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid"  style="border: medium none ; width: 477pt; margin-left: 23.4pt; border-collapse: collapse;font-family:verdana;" border="1" cellpadding="0" cellspacing="0" width="636"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td colspan="2" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 477pt;" valign="top" width="636"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;Maersk Call Centre&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Role&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Project Leader&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Platform&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;VB.NET,SQL SERVER 2000&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Other Tools&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Fxcop,Code Smith&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;External Tools&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Alcatel Switches&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Size&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;10&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 67.9pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt; height: 67.9pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Description&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 67.9pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;ul style="margin-top: 0in;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Customer Management database for call centre.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;TAPI integration using Tele tools OCX.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;MSMQ server database integration.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Integration of old application with the current new        project.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid"  style="border: medium none ; width: 477pt; margin-left: 23.4pt; border-collapse: collapse;font-family:verdana;" border="1" cellpadding="0" cellspacing="0" width="636"&gt;  &lt;tbody&gt;&lt;tr style="height: 11.3pt;"&gt;   &lt;td colspan="2" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 477pt; height: 11.3pt;" valign="top" width="636"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;Travel Product&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.55pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt; height: 13.55pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Role&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 13.55pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Group leader&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.55pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt; height: 13.55pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Platform&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 13.55pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;CSHARP,SQL SERVER 2000, 3 TIER   ARCHITECTURE&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.55pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt; height: 13.55pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Other Tools&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 13.55pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Fxcop,Code Smith&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.55pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt; height: 13.55pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Size&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 13.55pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;40&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.7pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 81pt; height: 89.7pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="108"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Description&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 89.7pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in; page-break-after: avoid;"&gt;&lt;span style="font-size:100%;"&gt;This is   ongoing project. This product is made for travel domain &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in; page-break-after: avoid;"&gt;&lt;span style="font-size:100%;"&gt;(Airline   industry, Car, Hotels, Excursions). I am involved in planning of&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in; page-break-after: avoid;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt; &lt;/span&gt;scope document, Estimation, domain study and   then in to implementation&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in; page-break-after: avoid;"&gt;&lt;span style="font-size:100%;"&gt;study.   Integration with Amadeus, Galileo external third party software.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in; page-break-after: avoid;"&gt;&lt;span style="font-size:100%;"&gt;Software   has capabilities like Booking online, hotel bookings, car bookings,&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in; page-break-after: avoid;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt; &lt;/span&gt;reports, financial capture of data.   Integration with external &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in; page-break-after: avoid;"&gt;&lt;span style="font-size:100%;"&gt;Accounting   software like quick books, ARC,BSP&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;         &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;  &lt;/p&gt;&lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Educational Qualification:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul  style="margin-top: 0in;font-family:verdana;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;BE ELECT 1997 IIT&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;DIP EPS 1994 KPK&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;SSC 1990 KKK&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"  style="margin-right: -1in;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Other technical Achievements:-&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="verdana" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Regular author on popular websites and here are some of my tutorials.&lt;/span&gt;&lt;/p&gt;  &lt;ul  style="margin-top: 0in;font-family:verdana;" type="disc"&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;MCSD.NET&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Diploma in computer science&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Written white papers in estimation&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;    &lt;p class="MsoNormal" style="margin-right: -1in; font-family: verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid"  style="border: medium none ; width: 6.7in; border-collapse: collapse; margin-left: 6.75pt; margin-right: 6.75pt;font-family:verdana;" align="left" border="1" cellpadding="0" cellspacing="0" width="643"&gt;  &lt;tbody&gt;&lt;tr style="height: 10.85pt;"&gt;   &lt;td colspan="2" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.7in; height: 10.85pt;" valign="top" width="643"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;Griffin&lt;/span&gt;&lt;/b&gt;&lt;/st1:city&gt;&lt;/st1:place&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt; Back   Office&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.05pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1.2in; height: 13.05pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="115"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Role&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 13.05pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Leader&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.05pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1.2in; height: 13.05pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="115"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Platform&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 13.05pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;VB6,C#,SQL SERVER 2000,COM, 3 TIER   ARCHITECTURE&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.05pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1.2in; height: 13.05pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="115"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Team Size&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 13.05pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;3&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 117.4pt;"&gt;   &lt;td  style="border-style: none solid solid; padding: 0in 5.4pt; width: 1.2in; height: 117.4pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="115"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Description&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td  style="border-style: none solid solid none; padding: 0in 5.4pt; width: 5.5in; height: 117.4pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="528"&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;This product was made for 18 countries of &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;GRIFFIN&lt;/st1:city&gt;&lt;/st1:place&gt; marine travel   office. &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;The project was built with 3 tier architecture   fundamentals.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt; &lt;/span&gt;It had   accounting, invoicing, cash, BSP support, Galileo and Amadeus Booking &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;systems, Customer reports, Supplier   statements, Trial Balance, Multi currency &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;support, Multi user support.Sucessfully closed   accounting statements for two &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;Countries. Printing support for both windows   printer and dot matrix printer.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-right: -1in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt; &lt;/span&gt;It has   server based programs and client based programs&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-8637608848836839839?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/8637608848836839839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=8637608848836839839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8637608848836839839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/8637608848836839839'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/03/sample-resume.html' title='Sample Resume'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-4698945207132904951</id><published>2008-03-03T00:05:00.000-08:00</published><updated>2008-03-03T01:58:49.753-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net Framework'/><title type='text'>.Net Framework -1</title><content type='html'>&lt;div&gt;&lt;a href="http://www.blogger.com/"&gt;&lt;/a&gt;&lt;span style="color:#cc6600;"&gt;1. What is .NET?&lt;/span&gt;&lt;br /&gt;.NET - is the Microsoft Web services strategy to connect information, people, systems, and devices through software. Integrated across the Microsoft platform, .NET technology provides the ability to quickly build, deploy, manage, and use connected, security-enhanced solutions with Web services. .NET-connected solutions enable businesses to integrate their systems more rapidly and in a more agile manner and help them realize the promise of information anytime, anywhere, on any device. &lt;a id="ctl00_ContentPlaceHolder1_hl1" href="http://www.microsoft.com/net/Basics.mspx" target="_blank"&gt;Reference&lt;/a&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;2. Which versions of .NET have been released so far?&lt;/span&gt;  &lt;p class="a"&gt; The final version of the &lt;b&gt;.NET 1.0&lt;/b&gt; SDK &amp;amp; runtime were made publically available on 15 - Jan -2002.  At the same time, the final version of Visual Studio.NET was made available to MSDN subscribers. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;.NET 1.1&lt;/b&gt; was released in April 2003, with bugs fixed. &lt;b&gt;Visual Studio 2003&lt;/b&gt; supports development of applications in version 1.1.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;.NET 2.0&lt;/b&gt; was launched in October 2005 for MSDN subscribers, and officially released in  Nov 2005.&lt;br /&gt;&lt;br /&gt; On - Jun - 2006, &lt;b&gt;.NET 3.0&lt;/b&gt; was launched. This version was earlier called WinFX.   &lt;b&gt;Visual Studio 2005&lt;/b&gt; supports development of .NET 2.0 and .NET 3.0 applications.   .NET 3 is comprised of the following:&lt;br /&gt; &lt;b&gt; &lt;br /&gt;Windows Communication Foundation &lt;br /&gt;Windows Presentation Foundation &lt;br /&gt;Windows Workflow Foundation &lt;br /&gt;Windows Cardspace &lt;br /&gt;&lt;br /&gt;&lt;/b&gt;  The next version of Visual Studio, code named &lt;b&gt;Orcas, Beta 1&lt;/b&gt; has been released as a Beta Version.   The &lt;b&gt;.NET Framework 3.5 Beta&lt;/b&gt; is also available as a download.&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(204, 102, 0);" class="q"&gt;&lt;span style="font-weight: bold;"&gt;3. Which versions of .NET have been released so far?&lt;/span&gt; &lt;/p&gt; &lt;p class="a"&gt; The final version of the &lt;b&gt;.NET 1.0&lt;/b&gt; SDK &amp;amp; runtime were made publically available on 15 - Jan -2002.  At the same time, the final version of Visual Studio.NET was made available to MSDN subscribers. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;.NET 1.1&lt;/b&gt; was released in April 2003, with bugs fixed. &lt;b&gt;Visual Studio 2003&lt;/b&gt; supports development of applications in version 1.1.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;.NET 2.0&lt;/b&gt; was launched in October 2005 for MSDN subscribers, and officially released in  Nov 2005.&lt;br /&gt;&lt;br /&gt; On - Jun - 2006, &lt;b&gt;.NET 3.0&lt;/b&gt; was launched. This version was earlier called WinFX.   &lt;b&gt;Visual Studio 2005&lt;/b&gt; supports development of .NET 2.0 and .NET 3.0 applications.   .NET 3 is comprised of the following:&lt;br /&gt; &lt;b&gt; &lt;br /&gt;Windows Communication Foundation &lt;br /&gt;Windows Presentation Foundation &lt;br /&gt;Windows Workflow Foundation &lt;br /&gt;Windows Cardspace &lt;br /&gt;&lt;br /&gt;&lt;/b&gt;  The next version of Visual Studio, code named &lt;b&gt;Orcas, Beta 1&lt;/b&gt; has been released as a Beta Version.   The &lt;b&gt;.NET Framework 3.5 Beta&lt;/b&gt; is also available as a download.&lt;/p&gt;&lt;p style="color: rgb(204, 102, 0);" class="q"&gt;&lt;span style="font-weight: bold;"&gt;4. Which tools can be used for .NET Development?&lt;/span&gt; &lt;/p&gt; &lt;p class="a"&gt; The &lt;b&gt;.NET Framework SDK&lt;/b&gt; is free and includes command-line compilers for C++, C#, and VB.NET and various  other utilities to aid development.&lt;br /&gt;&lt;br /&gt;SharpDevelop is a free IDE for C# and VB.NET.&lt;br /&gt;&lt;br /&gt;Microsoft Visual Studio Express editions are cut-down versions of Visual Studio, for hobbyist or novice  developers and are available for FREE Download at Microsoft site. Note that .NET 2.0 Framework gets downloaded along with Visual Studio Express &amp;amp; All versions above Visual Studio Express. &lt;a id="ctl00_ContentPlaceHolder1_hl2" href="http://msdn.microsoft.com/vstudio/express" target="_blank"&gt;Download Visual Studio Express&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;    There are different versions for C#, VB, web development etc.  Microsoft Visual Studio Standard 2005 is around $300, or $200 for the upgrade.&lt;br /&gt;&lt;br /&gt;Microsoft VIsual Studio Professional 2005 is around $800, or $550 for the upgrade. At the top end of the  price range are the Microsoft Visual Studio Team Edition for Software Developers 2005 with MSDN Premium  and Team Suite editions. Visual Web Developer Express is available as a free download.&lt;br /&gt;&lt;br /&gt;The next version of Visual Studio, code named Orcas, Beta 1 has been released as a Beta Version and is available for download. &lt;a id="ctl00_ContentPlaceHolder1_hl1" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=D1336F3E-E677-426B-925C-C84A54654414&amp;amp;displaylang=en" target="_blank"&gt;Download Orcas&lt;/a&gt;&lt;/p&gt;&lt;p class="a"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(204, 102, 0);" class="q"&gt;5. Explain CLI, CIL, CTS, Metadata, CLS, IL and VES in .NET&lt;/p&gt; &lt;p class="a"&gt; &lt;b&gt;CLI&lt;/b&gt; - Common Language Infrastructure. Microsoft has a piece of shared source, its the public implementation of ECMA Common Language Infrastructure. This shared code is code-named  "Rotor". It has around 3 million lines of code. Those who are interesed in development of  a language that targets the .NET Framework, may extensively make use of this CLI. The following topics  are covered in the &lt;b&gt;Shared Source CLI&lt;/b&gt; :&lt;br /&gt;&lt;br /&gt; * The CLI type system&lt;br /&gt;* Component packing &amp;amp; assemblies&lt;br /&gt;* Type Loading &amp;amp; JIT Compilatino&lt;br /&gt;* Managed code &amp;amp; Execution Engine (CLR)&lt;br /&gt;* Description of Garbage Collection process &amp;amp; memory management&lt;br /&gt;* The Platform Adaptation Layer (PAL): a portability layer for Win32®, Mac OS® X, and FreeBSD &lt;br /&gt;&lt;br /&gt;Its been written by the Microsoft Team that has developed the .NET Framework.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; A compiled managed assembly is comprised of IL, Metadata and Manifest.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;CIL&lt;/b&gt; Stands for Common Intermediate Language. Its actually a low level human readable language  implementation of CLI. All .NET-aware languages compile the source oode to an intermediate language called Common Intermediate Language using the language specific compiler. It is also possible to build .NET assemblies direclty using CIL using the &lt;b&gt;ilasm.exe&lt;/b&gt; compiler. This compiler is shipped along with the .NET Framework 2.0 SDK. CIL is the only language that allows access to each aspect of the &lt;b&gt;CTS&lt;/b&gt;. CIL  is the definition of the fundamentals of the .NET framework.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;CTS&lt;/b&gt; - stands for Common Type Specification. It is at the core of .NET Framework's cross-language  integration, type safety, and high-performance code execution. It defines a common set of types that  can be used with many different language syntaxes. Each language (C#, VB.NET, Managed C++, and so on)  is free to define any syntax it wishes, but if that language is built on the CLR, it will use at least  some of the types defined by the CTS.&lt;br /&gt;&lt;br /&gt;   &lt;b&gt;Metadata&lt;/b&gt; - is code that describes the compiled IL. A .NET language compiler will generate the   metadata and store this in the assembly containing the CIL. Metadata describes all class members and classes  that are defined in the assembly, and the classes and class members that the current assembly will call   from another assembly. The metadata for a method contains the complete description of the method, including   the class (and the assembly that contains the class), the return type and all of the method parameters.   When the CLR executes CIL it will check to make sure that the metadata of the called method is the same as the   metadata that is stored in the calling method. This ensures that a method can only be called with exactly   the correct number of parameters and exactly the correct parameter types.&lt;br /&gt;&lt;br /&gt;   &lt;b&gt;CLS&lt;/b&gt; -  Common Language Specification. A type that is CLS compliant, may be used across any .NET   language. CLS is a set of language rules that defines language standards for a .NET language and types  declared in it. While declaring a new type, if we make use of the &lt;b&gt;[CLSCompliant]&lt;/b&gt; attribute, the  type is forced to conform to the rules of CLS. &lt;br /&gt;&lt;br /&gt; &lt;b&gt;IL&lt;/b&gt; - Intermediate Language, is the compiled form of the .NET language source code. When .NET source  code is compiled by the language specific compiler (say we compile C# code using csc.exe), it is compiled to  a .NET binary, which is platform independent, and is called Intermediate Language code. The .NET binary   also comprises of metadata.&lt;br /&gt;&lt;br /&gt; Its important to note here that &lt;b&gt;metadata describes the IL&lt;/b&gt;, whereas &lt;b&gt;manifest&lt;/b&gt; describes  the assembly.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;VES&lt;/b&gt; - Virtual Execution System.  The Virtual Execution System(VES) provides an environment for executing managed code. It provides direct support  for a set of built-in data types, defines a hypothetical machine with an associated machine model and state, a  set of control flow constructs, and an exception handling model.To a large extent, the purpose of the VES is  to provide the support required to execute the Common Intermediate Language instruction set.   &lt;/p&gt;&lt;p class="a"&gt; &lt;/p&gt;&lt;p class="a"&gt;    &lt;/p&gt;&lt;br /&gt;&lt;p class="q"&gt;&lt;span style="font-weight: bold;"&gt;6. What is CLR in .NET?&lt;/span&gt; &lt;/p&gt; &lt;p class="a"&gt;  &lt;b&gt;Common Language Runtime&lt;/b&gt; -  It is the implementation of CLI. The core runtime engine in the Microsoft .NET   Framework for executing applications. The common language runtime supplies managed code with services such   as cross-language integration, code access security, object lifetime management, resouce management, type   safety,   pre-emptive threading, metadata services (type reflection), and debugging and profiling support.   The ASP.NET   Framework and Internet Explorer are examples of hosting CLR. &lt;br /&gt;&lt;br /&gt;The CLR is a multi-language execution environment. There are currently over 15 compilers being built by Microsoft  and other companies that produce code that will execute in the CLR. &lt;br /&gt;&lt;br /&gt;The CLR is described as the "execution engine" of .NET. It's this CLR that manages the execution of  programs. It provides the environment within which the programs run. The software version of .NET is  actually the CLR version.&lt;br /&gt;&lt;br /&gt; When the .NET program is compiled, the output of the compiler is not an executable file but a file that contains  a special type of code called  the &lt;b&gt;Microsoft Intermediate Language (MSIL, now called CIL, Common Intermediate  Language)&lt;/b&gt;.  This MSIL defines a set of portable  instructions that are independent of any specific CPU. It's the job of the CLR to translate this Intermediate  code into a executable code when the program is executed making the program to run in any environment for which  the CLR is  implemented. And that's how the .NET Framework achieves Portability. This MSIL is turned into  executable code using a JIT (Just In Time) complier. The process goes like this, when .NET programs are executed,  the CLR        activates the JIT complier. The JIT complier converts MSIL into native code on a demand basis as  each part of the program is needed. Thus the program executes as a native code even though it is compiled into  MSIL making the   program to run as fast as it would if it is compiled to native code but achieves the portability  benefits of MSIL.&lt;/p&gt;&lt;p style="color: rgb(204, 102, 0);" class="q"&gt;&lt;span style="font-weight: bold;"&gt;7. What is a Class Library in .NET?&lt;/span&gt; &lt;/p&gt; &lt;p class="a"&gt; &lt;b&gt;Class library&lt;/b&gt; is the another major entity of the .NET Framework. This library gives the program  access to runtime environment. The class library consists of lots of prewritten code that all the applications  created in .NET aware languages and Visual Studio .NET will use. The code for all the elements like forms,  controls and the rest in VB .NET applications actually comes from the class library. &lt;br /&gt;&lt;br /&gt;Code in class libraries may be shared &amp;amp; reused. One of the core . NET libraries is &lt;b&gt;mscorlib.dll&lt;/b&gt;. .NET language compilers reference this library  automatically as it contains core types. A class library, contains types, that may be used by external applications. A class library may be a DLL or an EXE. Note that the .NET class libraries, even though have a same extension as the old COM Win32 binaries, yet they are very different internally.   &lt;/p&gt;&lt;p class="a"&gt;    &lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(204, 102, 0);" class="q"&gt;&lt;span style="font-weight: bold;"&gt;8. Explain Managed code, managed class and managed data in .NET&lt;/span&gt; &lt;/p&gt; &lt;p class="a"&gt; &lt;b&gt;Managed Code&lt;/b&gt; - The .NET framework provides lots of core runtime services to  the programs that run within it. For example - security &amp;amp; exception handling. Such  a code has a minimum level of information. It has metadata associated with it. Such  a code is called Managed Code. VB.NET, C#, JS.NET code is managed by default. In  order to make C++ code managed, we make use of managed extensions, which is nothing  but a postfix _gc after the class name. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Managed Data&lt;/b&gt; - Data that is allocated &amp;amp; freed by the .NET runtime's Garbage  collecter.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Managed Class&lt;/b&gt; - A class whose objects are managed by the CLR's garbage collector.  In VC++.NET, classes are not managed. However, they can be managed using managed extentions.  This is done using an _gc postfix. A managed    C++ class can inherit from VB.NET classes,  C# classes, JS.NET classes. A managed class can inherit from only one class. .NET does'nt  allow multiple inheritance in managed classes.&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(204, 102, 0);" class="q"&gt;&lt;span style="font-weight: bold;"&gt;9. What is an assembly in .NET? What is ILDASM?&lt;/span&gt; &lt;/p&gt;  &lt;b&gt;Assembly&lt;/b&gt; -  An assembly may be an exe, a dll, an application having an entry point,  or a library. It may consist of one or more files. It represents a group of resources, type definitions, and implementation of these types. They may contain references to other assemblies.  These resources, types &amp;amp; references are compacted in a block of data called manifest. The manifest is a part  of the assembly, which makes it self-describing. Assemblies also increase security of code in .NET.  An assembly maybe shared(public) or private.  The assembly, overall comprises of 3 entities: &lt;b&gt;IL, Manifest, Metadata&lt;/b&gt;. Metadata describes IL, whereas Manifest describes the assembly.&lt;br /&gt;&lt;br /&gt;An assembly may be created by building the class(the .vb or .cs file), thereby producing its DLL. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;ILDASM&lt;/b&gt; - The contents of an assembly may be viewed using the ILDASM tool, that comes with  the .NET SDK or the Visual Studio.NET. The ildasm.exe tool may also be used in the command line compiler.&lt;br /&gt;&lt;p class="a"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 102, 0);" class="q"&gt;&lt;span style="font-weight: bold;"&gt;10. What is Reflection in .NET?&lt;/span&gt; &lt;/p&gt; &lt;p class="a"&gt; &lt;b&gt;Reflection&lt;/b&gt; - The process of getting the metadata from modules/assemblies. When .NET  code is compiled, metadata about the types defined in the modules is produced. These modules  are in turn packaged as assemblied. The process   of accessing this metadata in called Reflection. &lt;br /&gt;&lt;br /&gt;The namespace System.Reflection contains classes that can be used for interrogating the types for a  module/assembly. We use reflection for examining data type sizes for marshalling across process &amp;amp;  machine boundaries.&lt;br /&gt;&lt;br /&gt;Reflection is also used for:&lt;br /&gt;&lt;br /&gt; 1) To dynamically invoke methods (using System.Type.InvokeMember) &lt;br /&gt;2) To dynamically create types at runtime (using System.Reflection.Emit.TypeBuilder).&lt;/p&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;11. What are the different types of assemblies in .NET?&lt;/span&gt;  &lt;p class="a"&gt; An assembly may be &lt;b&gt;Public or Private&lt;/b&gt;. A public assembly is also called a &lt;b&gt;Shared Assembly&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;Satellite Assembly&lt;/b&gt; - is an assembly that contains only resources, and no code. The resources are location specific. A satellite assembly is associated with a main assembly, the one that actually contains the code.&lt;/p&gt;&lt;p style="color: rgb(204, 102, 0);" class="q"&gt;&lt;span style="font-weight: bold;"&gt;11a. What is the difference between a Public Assembly and a Private Assembly?&lt;/span&gt; &lt;/p&gt; &lt;p class="a"&gt; An assembly is the basic building block in .NET. It is the compiled format of a class, that contains Metadata, Manisfest &amp;amp; Intermediate Language code.&lt;br /&gt;&lt;br /&gt;An assembly may be either &lt;b&gt;Public&lt;/b&gt; or &lt;b&gt;Private&lt;/b&gt;. A public assembly means the same as &lt;b&gt;Shared Assembly&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Private Assembly&lt;/b&gt; - This type of assembly is used by a single application. It is stored in  the application's directory or the applications sub-directory. There is no version constraint in  a private assembly.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;Shared Assembly or Public Assembly&lt;/b&gt; - A shared assembly has version constraint.  It is stored in the Global Assembly Cache (GAC). GAC is a repository of shared assemblies  maintained by the .NET runtime. It is located at &lt;b&gt;C:\Windows\Assembly OR C:\Winnt\Assembly&lt;/b&gt;. The shared assemblies may be used by many applications. To make an assembly a shared assembly, it  has to be &lt;b&gt;strongly named&lt;/b&gt;. In order to share an assembly with many applications, it must have a  strong name.&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;Strong Name&lt;/b&gt; assembly is an assembly that has its own identity, through its version and uniqueness.&lt;br /&gt;&lt;br /&gt;In order to convert a private assembly to a shared assembly, i.e. to create a strongly named assembly,  follow the steps below...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1)&lt;/b&gt; Create a strong key using the &lt;b&gt;sn.exe&lt;/b&gt; tool. This is used to created a cryptographic  key pair.  The key pair that is generated by the Strong Name tool can be kept in a file or we can store  it our your local machine's &lt;b&gt;Crytographic Service Provider (CSP)&lt;/b&gt;. For this, goto the .NET command  interpreter, and type the following...&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p class="code"&gt;     sn -k C:\samplekey.snk  &lt;/p&gt;  &lt;p class="a"&gt;  This will create a strong key and save it to the location C:\samplekey.snk  &lt;b&gt;2)&lt;/b&gt;  If the key is stored in a file, just like we have done above, we use the attribute  &lt;b&gt;AssemblyKeyFileAttribute&lt;/b&gt;. This belongs to the namespace &lt;b&gt;System.Reflection.AssemblyKeyFileAttribute&lt;/b&gt;. If the key was in the CSP, we would make use of System.Reflection.AssemblyKeyNameAttribute.&lt;br /&gt;&lt;br /&gt;Go to the assemblyinfo.vb file of your project. Open this file. Make the following changes in this file...&lt;br /&gt;&lt;/p&gt;&lt;p class="code"&gt; &lt;assembly:&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;We may write this in our code as well, like this...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Imports System.Reflection&lt;br /&gt;&lt;assembly:&gt;&lt;br /&gt; Namespace StrongName&lt;br /&gt;    Public class Sample&lt;br /&gt;    End Class&lt;br /&gt;End Namespace&lt;br /&gt;&lt;/p&gt; &lt;p class="a"&gt; &lt;b&gt;3)&lt;/b&gt; Build your project. Your assembly is now strongly named. &lt;br /&gt;Installing the Shared assembly in GAC...&lt;br /&gt;Go to .NET command interpreter, use the tool gacutil.exe&lt;br /&gt;Type the following...&lt;br /&gt;&lt;b&gt;gacutil /i sampleclass.dll &lt;/b&gt;&lt;br /&gt;To uninstall it, use... &lt;b&gt;gacutil /u&lt;/b&gt; sampleclass.dll. Visual Studio.NET provides a GUI tool for viewing all shared assemblies in the GAC.   &lt;/p&gt;&lt;p class="a"&gt;  &lt;/p&gt;&lt;p class="a"&gt;    &lt;/p&gt;&lt;p class="a"&gt;   &lt;/p&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-4698945207132904951?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/4698945207132904951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=4698945207132904951' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4698945207132904951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/4698945207132904951'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2008/03/net-framework-1.html' title='.Net Framework -1'/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10976309.post-110897058077809611</id><published>2005-02-20T23:19:00.000-08:00</published><updated>2008-03-19T04:06:38.924-07:00</updated><title type='text'></title><content type='html'>&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;&lt;span style="font-size:16;"&gt;Interview Questions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;&lt;span style="font-size:16;"&gt;.NET Remoting&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;ol type="1"&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What’s a Windows process? &lt;/b&gt;It’s an application that’s running and had been allocated memory. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What’s typical about a Windows process in regards to memory allocation?&lt;/b&gt; Each process is allocated its own block of available RAM space, no process can access another process’ code or data. If the process crashes, it dies alone without taking the entire OS or a bunch of other applications down.&lt;a name="more71"&gt;&lt;/a&gt; &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;Why do you call it a process? What’s different between process and application in .NET, not common computer usage, terminology? &lt;/b&gt;A process is an instance of a running application. An application is an executable on the hard drive or network. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What distributed process frameworks outside .NET do you know?&lt;/b&gt; Distributed Computing Environment/Remote Procedure Calls (DEC/RPC), Microsoft Distributed Component Object Model (DCOM), Common Object Request Broker Architecture (CORBA), and Java Remote Method Invocation (RMI). &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What are possible implementations of distributed applications in .NET?&lt;/b&gt; .NET Remoting and ASP.NET Web Services. If we talk about the Framework Class Library, noteworthy classes are in System.Runtime.Remoting and System.Web.Services. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;When would you use .NET Remoting and when Web services?&lt;/b&gt; Use remoting for more efficient exchange of information when you control both ends of the application. Use Web services for open-protocol-based information exchange when you are just a client or a server with the other end belonging to someone else. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What’s a proxy of the server object in .NET Remoting?&lt;/b&gt; It’s a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as &lt;b&gt;marshaling&lt;/b&gt;. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What are remotable objects in .NET Remoting?&lt;/b&gt; Remotable objects are the objects that can be marshaled across the application domains. You can marshal by value, where a deep copy of the object is created and then passed to the receiver. You can also marshal by reference, where just a reference to an existing object is passed. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What are channels in .NET Remoting?&lt;/b&gt; Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What security measures exist for .NET Remoting in System.Runtime.Remoting?&lt;/b&gt; None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What is a formatter?&lt;/b&gt; A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?&lt;/b&gt; Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What’s SingleCall activation mode used for?&lt;/b&gt; If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;What’s Singleton activation mode?&lt;/b&gt; A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;How do you define the lease of the object? &lt;/b&gt;By implementing ILease interface when writing the class code. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;Can you configure a .NET Remoting object via XML file?&lt;/b&gt; Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config. &lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;How can you automatically generate interface for the remotable object in .NET with Microsoft tools?&lt;/b&gt; Use the Soapsuds tool.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Trading Tips ,&lt;span&gt;Trading Guidance, Stock Prices, Latest News --&gt; &lt;a href="http://nseonlinetrading.blogspot.com/"&gt;&lt;span style="text-decoration: underline;"&gt;NSE Online Trading&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10976309-110897058077809611?l=programmingmaterials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingmaterials.blogspot.com/feeds/110897058077809611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10976309&amp;postID=110897058077809611' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/110897058077809611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10976309/posts/default/110897058077809611'/><link rel='alternate' type='text/html' href='http://programmingmaterials.blogspot.com/2005/02/interview-questions.html' title=''/><author><name>Jagadeesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>20</thr:total></entry></feed>
