<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Software Code Help blogs</title>
  <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/" />
  <link rel="self" href="http://blogs.softwarecodehelp.com/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2008-11-12T20:55:41.25-08:00</updated>
  <author>
    <name>Software Code Help</name>
  </author>
  <subtitle>newtelligence powered</subtitle>
  <id>http://blogs.softwarecodehelp.com/</id>
  <generator uri="http://www.dasblog.net" version="2.0.7180.0">DasBlog</generator>
  <entry>
    <title>Problem: TableAdapter generated by visual studio designer, not saving data in database</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/11/13/ProblemTableAdapterGeneratedByVisualStudioDesignerNotSavingDataInDatabase.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,21339a7a-61c8-43f9-9a78-cb2fd026ad27.aspx</id>
    <published>2008-11-12T20:55:41.25-08:00</published>
    <updated>2008-11-12T20:55:41.25-08:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Hi.
</p>
        <p>
I have created a Typed Data Set using visual studio 2005 designer. I drag-dropped
a table from database and it created a typed data table into it. When I insert data
into this table using TableAdapter generated by Visual sudio designer it does not
insert in physical database. 
</p>
        <p>
I can retrieve it till application is running and lost as the inserted data is in
memory not in physical database.
</p>
        <p>
here is the sample code I wrote:
</p>
        <font size="2">
          <p>
DefectTrackerDataSetTableAdapters.
</p>
        </font>
        <font color="#008080" size="2">tblDefectsTableAdapter</font>
        <font size="2"> ta
= </font>
        <font color="#0000ff" size="2">new</font>
        <font size="2"> DefectTracker.DefectTrackerDataSetTableAdapters.</font>
        <font color="#008080" size="2">tblDefectsTableAdapter</font>
        <font size="2">();
<p>
ta.InsertDefect(
</p></font>
        <font color="#008080" size="2">Convert</font>
        <font size="2">.ToInt32(txtDefectNo.Text), </font>
        <font color="#800000" size="2">"MQC"</font>
        <font size="2">,
dpAssignDate.Value, </font>
        <font color="#800000" size="2">"Open"</font>
        <font size="2">);</font>
        <p>
          <font size="2"> 
</font>
        </p>
      </div>
    </content>
  </entry>
  <entry>
    <title>What is JITCompiler Function?</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/11/06/WhatIsJITCompilerFunction.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,352cb429-fd3c-43a0-9bf2-012954fa9dea.aspx</id>
    <published>2008-11-05T21:25:33.411-08:00</published>
    <updated>2008-11-05T21:25:33.411-08:00</updated>
    <category term="C#" label="C#" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,C%23.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
1. In the assembly that implements the type(Console), look up the method being called
in the metadata.<br />
2. From the metadata, get the IL from this method and verify it.<br />
3. Allocate a block of memory.<br />
4. Compile the IL into native CPU instructions: the native code is saved in the memory
allocated in step#3.<br />
5. Modify the method's entry in the Type's table so that it now points to the memory
block allocated in Step#3.<br />
6. Jump to the native code contained inside the memory block.
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>How to concatenate the field value of table in SQL Server 2000 or 2005?</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/11/06/HowToConcatenateTheFieldValueOfTableInSQLServer2000Or2005.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,5668426e-9cbd-4fe6-b247-55668eae524a.aspx</id>
    <published>2008-11-05T20:56:38.00475-08:00</published>
    <updated>2008-11-05T20:56:38.00475-08:00</updated>
    <category term="SQL" label="SQL" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,SQL.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&lt;font color=#0000ff&gt;Declare&lt;/font&gt; @Var1
nvarchar(800)&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&lt;font color=#0000ff&gt;Set&lt;/font&gt; @Var1=’’&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;o:p&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&lt;font color=#0000ff&gt;Select&lt;/font&gt; @Var1
= @Var1 + ‘,’ + Field1 &lt;font color=#0000ff&gt;from&lt;/font&gt; Table1&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;o:p&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&lt;font color=#0000ff&gt;Select&lt;/font&gt; @Var1 &lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Unable to strat debugging on the web server. The COM+ registry database detected a system error</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/10/13/UnableToStratDebuggingOnTheWebServerTheCOMRegistryDatabaseDetectedASystemError.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,7444f1fb-4b98-4d60-aeda-a9c5558d7c2f.aspx</id>
    <published>2008-10-13T03:28:18.564-07:00</published>
    <updated>2008-10-13T03:28:56.45475-07:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <table class="tblBlogEntry" cellspacing="0" cellpadding="1" width="100%" border="0">
            <tbody>
              <tr class="trBlogEntryContent">
                <td class="tdBlogEntryContent" colspan="2">
                  <div class="pnlBlogContents" id="ctl00_MainContentPlaceHolder_repMainBlogPage_ctl01_pnlBlogContents">
                    <p>
                      <strong>
                        <u>Problem:<br /></u>
                      </strong>
                      <br />
I am getting following error while running the project in Visual Studio 2005 by hitting
F5
</p>
                    <p>
"Unable to strat debugging on the web server.  The COM+ registry database detected
a system error."
</p>
                    <p>
what can be the cause?
</p>
                  </div>
                </td>
              </tr>
              <tr class="trBlogEntryContent">
                <td class="tdBlogEntryContent" colspan="2">
                  <div class="pnlReplies" id="ctl00_MainContentPlaceHolder_repMainBlogPage_ctl01_pnlReplies" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: black; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: black; BORDER-TOP-COLOR: black; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: black">
                    <table>
                      <tbody>
                        <tr>
                          <td class="tdBlogEntriesHolder" style="VERTICAL-ALIGN: top; TEXT-ALIGN: left">
                            <table class="tblBlogEntry" cellspacing="0" cellpadding="1" width="100%" border="0">
                              <tbody>
                                <tr class="trBlogEntryTitle">
                                  <td class="tdBlogEntryBy" width="400">
                                    <p>
 
</p>
                                    <p>
                                      <u>
                                        <strong>Answer</strong>
                                      </u>
                                    </p>
                                  </td>
                                  <td>
 </td>
                                </tr>
                                <tr class="trBlogEntryContent">
                                  <td class="tdBlogEntryContent" colspan="2">
                                    <p>
After searching some internet,<br /><strong>I added the ASPNET user to Local Administrator group and restarted IIS and
it started working.</strong></p>
                                    <p>
However somewhere it is written that even after removing from Administrator group
it kept on working, but not in my case. I removed from the group and restarted IIS
and it stopped working again.<br /></p>
                                  </td>
                                </tr>
                              </tbody>
                            </table>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </p>
      </div>
    </content>
  </entry>
  <entry>
    <title>SFC /Scannow asks for CD always</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/09/17/SFCScannowAsksForCDAlways.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,6de56909-b7bf-4287-97af-f3792517ee24.aspx</id>
    <published>2008-09-17T04:41:06.45875-07:00</published>
    <updated>2008-09-17T04:41:06.45875-07:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p class="pnlBlogContents">
Hi,
</p>
        <p class="pnlBlogContents">
Whenever I run sfc /scannow it asks for a CD. How can i point it to some other path
where my installation source files reside.
</p>
        <h1 class="pnlBlogContents">
          <a href="http://www.net4techies.somee.com/Blogs.aspx?BlogID=84">
            <font color="#000000" size="2">Answer:</font>
          </a>
        </h1>
        <p>
In Registry using regedit locate
</p>
        <p>
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\<br />
CurrentVersion\Setup\SourcePath
</p>
        <p>
Set its value to the location where I386 foler is located. Provide the parent
folder path of I386 and not of I386 itself.
</p>
        <p>
Also update ServicePackSourcePath and add to Installation Sources as well.
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>postback with showModelessDialog</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/09/01/postbackWithShowModelessDialog.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,586228f5-224d-4496-8410-bf869bbfc31a.aspx</id>
    <published>2008-08-31T20:57:27.602125-07:00</published>
    <updated>2008-08-31T20:57:27.602125-07:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <table class="tblBlogEntry" cellspacing="0" cellpadding="1" width="100%" border="0">
            <tbody>
              <tr class="trBlogEntryContent">
                <td class="tdBlogEntryContent" colspan="2">
                  <h1 class="pnlBlogContents">
                    <a href="http://www.net4techies.somee.com/Blogs.aspx?BlogID=71">
                      <font color="#000000" size="3">Question:</font>
                    </a>
                  </h1>
                  <p class="pnlBlogContents">
 
</p>
                  <p class="pnlBlogContents">
HI, 
</p>
                  <p class="pnlBlogContents">
I have got a strange problem. I am opening a webpage using javascript's showModelessDialog
fuction. the page contains a calender.
</p>
                  <p class="pnlBlogContents">
                    <strong>When I click a date on calender</strong> (opened with showModelessDialog) <strong>it
openes a new window showing the javascript function like: javascript:__doPostBack</strong>('MyCalendar','3132')
</p>
                  <p class="pnlBlogContents">
Please provide your valuable comments.
</p>
                </td>
              </tr>
              <tr class="trBlogEntryContent">
                <td class="tdBlogEntryContent" colspan="2">
                  <div class="pnlReplies" id="ctl00_MainContentPlaceHolder_repMainBlogPage_ctl01_pnlReplies" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: black; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: black; BORDER-TOP-COLOR: black; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: black">
                    <table>
                      <tbody>
                        <tr>
                          <td class="tdBlogEntriesHolder" style="VERTICAL-ALIGN: top; TEXT-ALIGN: left">
                            <table class="tblBlogEntry" cellspacing="0" cellpadding="1" width="100%" border="0">
                              <tbody>
                                <tr class="trBlogEntryTitle">
                                  <td class="tdBlogEntryBy" width="400">
                                    <p>
 
</p>
                                    <h1>
                                      <a href="http://www.net4techies.somee.com/Blogs.aspx?BlogID=71">
                                        <font color="#000000" size="3">Answer:</font>
                                      </a>
                                    </h1>
                                    <p>
 
</p>
                                  </td>
                                  <td>
  
</td>
                                </tr>
                                <tr class="trBlogEntryContent">
                                  <td class="tdBlogEntryContent" colspan="2">
                                    <p>
use :
</p>
                                    <p>
&lt;base target="_self"&gt;
</p>
                                    <p>
in the <strong>showModelessDialog</strong> or <strong>showModalDialog</strong> page
in head section.
</p>
                                  </td>
                                </tr>
                              </tbody>
                            </table>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </p>
      </div>
    </content>
  </entry>
  <entry>
    <title>How can I get the selected text from a TextBox?</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/09/01/HowCanIGetTheSelectedTextFromATextBox.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,89f7522a-4c11-4ac0-912c-b9df87da9a72.aspx</id>
    <published>2008-08-31T20:50:18.383375-07:00</published>
    <updated>2008-08-31T20:50:18.383375-07:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
here is the working code:
</p>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;</font>
        <font color="#800000" size="2">form</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">id</font>
        <font color="#0000ff" size="2">="form1"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">runat</font>
        <font color="#0000ff" size="2">="server"&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;</font>
        <font color="#800000" size="2">div</font>
        <font color="#0000ff" size="2">&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;</font>
        <font color="#800000" size="2">asp</font>
        <font color="#0000ff" size="2">:</font>
        <font color="#800000" size="2">TextBox</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">runat</font>
        <font color="#0000ff" size="2">="server"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">ID</font>
        <font color="#0000ff" size="2">="txt1"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">TextMode</font>
        <font color="#0000ff" size="2">="MultiLine"</font>
        <font size="2">
        </font>
        <font color="#0000ff" size="2">/&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;</font>
        <font color="#800000" size="2">asp</font>
        <font color="#0000ff" size="2">:</font>
        <font color="#800000" size="2">HiddenField</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">runat</font>
        <font color="#0000ff" size="2">="server"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">ID</font>
        <font color="#0000ff" size="2">="hidSelectedText"</font>
        <font size="2">
        </font>
        <font color="#0000ff" size="2">/&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;</font>
        <font color="#800000" size="2">asp</font>
        <font color="#0000ff" size="2">:</font>
        <font color="#800000" size="2">Button</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">runat</font>
        <font color="#0000ff" size="2">="server"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">ID</font>
        <font color="#0000ff" size="2">="showselected"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">Text</font>
        <font color="#0000ff" size="2">="Show
selected"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">OnClientClick</font>
        <font color="#0000ff" size="2">="doselection();"</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">OnClick</font>
        <font color="#0000ff" size="2">="showselected_Click"</font>
        <font size="2">
        </font>
        <font color="#0000ff" size="2">/&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;</font>
        <font color="#800000" size="2">script</font>
        <font size="2">
        </font>
        <font color="#ff0000" size="2">type</font>
        <font color="#0000ff" size="2">="text/javascript"&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">function</font>
        <font size="2"> doselection()
<p>
{
</p><p></p></font>
        <font color="#0000ff" size="2">if</font>
        <font size="2"> (window.getSelection)
<p>
{
</p><p>
txt = window.getSelection();
</p><p>
}
</p><p></p></font>
        <font color="#0000ff" size="2">else</font>
        <font size="2">
        </font>
        <font color="#0000ff" size="2">if</font>
        <font size="2"> (document.getSelection)
<p>
{
</p><p>
txt = document.getSelection();
</p><p>
}
</p><p></p></font>
        <font color="#0000ff" size="2">else</font>
        <font size="2">
        </font>
        <font color="#0000ff" size="2">if</font>
        <font size="2"> (document.selection)
<p>
{
</p><p>
txt = document.selection.createRange().text;
</p><p>
}
</p><p></p></font>
        <font color="#0000ff" size="2">else
</font>
        <font size="2">
          <p>
{
</p>
          <p>
alert(
</p>
        </font>
        <font color="#800000" size="2">'selection not supported'</font>
        <font size="2">);
<p>
}
</p><p>
document.getElementById(
</p></font>
        <font color="#800000" size="2">'&lt;%=hidSelectedText.ClientID %&gt;'</font>
        <font size="2">).value
= txt;
<p>
}
</p><p></p></font>
        <font color="#0000ff" size="2">&lt;/</font>
        <font color="#800000" size="2">script</font>
        <font color="#0000ff" size="2">&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;/</font>
        <font color="#800000" size="2">div</font>
        <font color="#0000ff" size="2">&gt;
</font>
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">&lt;/</font>
        <font color="#800000" size="2">form</font>
        <font color="#0000ff" size="2">&gt;</font>
        <p>
          <font color="#0000ff" size="2">
          </font> 
</p>
        <p>
          <font color="#0000ff" size="2">-----------------------------------------------------------------------</font>
        </p>
        <font color="#0000ff" size="2">
          <font size="2">
            <p>
            </p>
          </font>
          <font color="#0000ff" size="2">protected</font>
          <font size="2">
          </font>
          <font color="#0000ff" size="2">void</font>
          <font size="2"> showselected_Click(</font>
          <font color="#0000ff" size="2">object</font>
          <font size="2"> sender, </font>
          <font color="#008080" size="2">EventArgs</font>
          <font size="2"> e)
<p>
{
</p><p>
Response.Write(hidSelectedText.Value);
</p><p>
}
</p></font>
        </font>
      </div>
    </content>
  </entry>
  <entry>
    <title>how to navigate in solution explorer on selecting open file.</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/08/13/howToNavigateInSolutionExplorerOnSelectingOpenFile.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,95273ba0-d212-40a3-959d-a8d454a0fe7c.aspx</id>
    <published>2008-08-12T21:57:41.7867437-07:00</published>
    <updated>2008-08-12T21:57:41.7867437-07:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Go to 
</p>
        <p>
Tools &gt; Options 
</p>
        <p>
Expand "Projects And Solutions" 
</p>
        <p>
Check "Track Active item in Solution Explorer"
</p>
        <p>
 
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>How can I encode a URL in dotnet </title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/08/01/HowCanIEncodeAURLInDotnet.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,59295dc3-23b2-4e25-af39-3dece8cf02d0.aspx</id>
    <published>2008-08-01T06:50:01.3992492-07:00</published>
    <updated>2008-08-01T06:50:01.3992492-07:00</updated>
    <category term="C#" label="C#" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,C%23.aspx" />
    <category term="Interview Question ASP.NET" label="Interview Question ASP.NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2BASP.NET.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Use <font size="2"></font></p>
        <p>
          <strong>Server.UrlEncode</strong>
        </p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Difference between an abstract method &amp; virtual method </title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/08/01/DifferenceBetweenAnAbstractMethodVirtualMethod.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,60a0699e-aa9a-4d93-874f-24a3b16c586a.aspx</id>
    <published>2008-08-01T04:02:21.8367492-07:00</published>
    <updated>2008-08-01T04:02:21.8367492-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;Virtual
method&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt; has
an implementation &amp;amp; provide the derived class with the option of overriding it. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt;Abstract
method&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"&gt; does
not provide an implementation &amp;amp; forces the derived class to override the method.&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>What connections does Microsoft SQL Server support and which one trusted?</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/08/01/WhatConnectionsDoesMicrosoftSQLServerSupportAndWhichOneTrusted.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,0a6fac57-4d0d-48f0-92e1-96157af7be4d.aspx</id>
    <published>2008-08-01T03:53:44.6804992-07:00</published>
    <updated>2008-08-01T03:53:44.6804992-07:00</updated>
    <category term="SQL" label="SQL" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,SQL.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"&gt;Windows Authentication
(via Active Directory) and SQL Server authentication (via Microsoft SQL Server username
and password). 
&lt;br&gt;
&lt;/span&gt;&lt;span style="COLOR: #333333; FONT-FAMILY: Arial"&gt;
&lt;br&gt;
&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;Windows
Authentication is trusted because the username and password are checked with the Active
Directory, 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"&gt;the SQL Server authentication
is untrusted, since SQL Server is the only verifier participating in the transaction.&lt;/span&gt;&lt;span style="FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>What are three test cases you should go through in unit testing? </title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/08/01/WhatAreThreeTestCasesYouShouldGoThroughInUnitTesting.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,bff47561-62ea-45b2-a951-5e555e0cb1f9.aspx</id>
    <published>2008-08-01T03:50:06.4617492-07:00</published>
    <updated>2008-08-01T03:50:06.4617492-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"&gt;1. &lt;b style="mso-bidi-font-weight: normal"&gt;Positive
test cases&lt;/b&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt; (correct
data, correct output).&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="COLOR: #333333; FONT-FAMILY: Arial"&gt;
&lt;br&gt;
&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"&gt;2. &lt;b style="mso-bidi-font-weight: normal"&gt;Negative
test cases&lt;/b&gt; (broken or missing data, proper handling).&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="COLOR: #333333; FONT-FAMILY: Arial"&gt;
&lt;br&gt;
&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"&gt;3. &lt;b style="mso-bidi-font-weight: normal"&gt;Exception
test cases&lt;/b&gt; (exceptions are thrown and caught properly).&lt;/span&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>How to open Excel, Word and HTML file in C#?.</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/08/01/HowToOpenExcelWordAndHTMLFileInC.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,4a007bf6-5b33-47df-8af1-1087db5dcc0c.aspx</id>
    <published>2008-08-01T02:48:11.4773742-07:00</published>
    <updated>2008-08-01T02:48:11.4773742-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <font size="2">
          <p>
System.Diagnostics.
</p>
        </font>
        <font color="#008080" size="2">Process</font>
        <font size="2"> objDocProcess
= </font>
        <font color="#0000ff" size="2">new</font>
        <font size="2"> System.Diagnostics.</font>
        <font color="#008080" size="2">Process</font>
        <font size="2">();
<p>
objDocProcess.EnableRaisingEvents = 
</p></font>
        <font color="#0000ff" size="2">false</font>
        <font size="2">;
<p>
objDocProcess.StartInfo.FileName = 
</p></font>
        <font color="#800000" size="2">@"C:\Excel.xls"</font>
        <font size="2">;
<p>
objDocProcess.Start();
</p></font>
      </div>
    </content>
  </entry>
  <entry>
    <title>What's the difference between String and String Builder?.</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/08/01/WhatsTheDifferenceBetweenStringAndStringBuilder.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,a854d76c-9529-4d2c-8cf1-7c46c987a2fd.aspx</id>
    <published>2008-07-31T23:10:47.3054992-07:00</published>
    <updated>2008-07-31T23:10:47.3054992-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;A
string is a sequential collection of Unicode characters that is used to represent
text. At the other hand the string builder is sealed class(Cannot be inherited)it
represents a mutable string of characters. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;&lt;strong&gt;String&lt;/strong&gt; is
mutable that means that it can't be modified once created, to modify a given string
by appending new characters or so the CLR destroy the first string instance and create
a new string one and this costs in terms of memory and time process.&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;Using
the &lt;strong&gt;string builder&lt;/strong&gt;, you create a mutable object that recieves modification
without having to be destroyed and reinstanciated for each modifiaction&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>What is Polymorphism?.</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/31/WhatIsPolymorphism.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,116ba3bf-564f-4c1c-a0f6-7e2b426d5e1f.aspx</id>
    <published>2008-07-31T07:05:28.9929992-07:00</published>
    <updated>2008-07-31T07:05:28.9929992-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="html">&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;font color=#000000&gt;&lt;em&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Poly means
many and morph means form. Thus, polymorphism refers to being able to use many forms
of a type without regard to the details.&lt;/span&gt;&lt;/em&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt; 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;font color=#000000&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Polymorphism &lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;have
2 types : 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;1. &lt;b style="mso-bidi-font-weight: normal"&gt;Compile
time&lt;/b&gt; also called overloading have 3 types. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font color=#000000&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Constructor
overloading &lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;(i.e., with
same constructor name and different no of arguments or different datat types or both&amp;nbsp;) 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font color=#000000&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Function
overloading &lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;(i.e., with
same&amp;nbsp;function name and different no of arguments or different data types or both) 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font color=#000000&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;operator
overloading&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;: example
: Variable++;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;2 &lt;b style="mso-bidi-font-weight: normal"&gt;Run
time&lt;/b&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l1 level1 lfo2; tab-stops: list .5in"&gt;
&lt;font color=#000000&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;It
is achieved by overriding parent class method:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Page Life Cycle of ASP.NET</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/31/PageLifeCycleOfASPNET.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,30d9bb10-dc5f-416f-ab63-8ac0e702a2e9.aspx</id>
    <published>2008-07-31T06:47:47.3992492-07:00</published>
    <updated>2008-07-31T06:47:47.3992492-07:00</updated>
    <category term="Interview Question ASP.NET" label="Interview Question ASP.NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2BASP.NET.aspx" />
    <content type="html">&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;1. &lt;b style="mso-bidi-font-weight: normal"&gt;OnInit
(Init)&lt;/b&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&amp;nbsp;
-- Inializes all Child controls on the Page&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;2.&lt;b style="mso-bidi-font-weight: normal"&gt; LoadControlState&lt;/b&gt;&lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt; &amp;nbsp;--
Loads the 
&lt;st1:place w:st="on"&gt;
&lt;st1:PlaceName w:st="on"&gt;Control&lt;/st1:PlaceName&gt;
&lt;st1:PlaceType w:st="on"&gt;State&lt;/st1:PlaceType&gt;
&lt;/st1:place&gt;
&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;3. &lt;b style="mso-bidi-font-weight: normal"&gt;LoadViewState &lt;/b&gt;--
Loads the 
&lt;st1:place w:st="on"&gt;
&lt;st1:PlaceName w:st="on"&gt;View&lt;/st1:PlaceName&gt;
&lt;st1:PlaceType w:st="on"&gt;State&lt;/st1:PlaceType&gt;
&lt;/st1:place&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;4. &lt;b style="mso-bidi-font-weight: normal"&gt;LoadPostData&lt;/b&gt; --
Control properties are set according to the received form data&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;5. &lt;b style="mso-bidi-font-weight: normal"&gt;Load&lt;/b&gt; --
Actions can be performed on the controls as all the pre-activities are complete by
this time&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;6. &lt;b style="mso-bidi-font-weight: normal"&gt;RaisePostDataChangedEvent &lt;/b&gt;--
This event is raised if data has been changed in previous and Current Postbacks.&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;7. &lt;b style="mso-bidi-font-weight: normal"&gt;RaisePostBackEvent&lt;/b&gt; --
This event handles the user action that caused the Postback.&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;8. &lt;b style="mso-bidi-font-weight: normal"&gt;PreRender
(OnPreRender&lt;/b&gt;) -- This event takes place between postback and saving viewstate.
Till this stage changes&amp;nbsp;will be saved to the control. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;9. &lt;b style="mso-bidi-font-weight: normal"&gt;SaveControlState&lt;/b&gt; --
Self Explanatory&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;10. &lt;b style="mso-bidi-font-weight: normal"&gt;SaveViewState &lt;/b&gt;--
Self Explanatory&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;11. &lt;b style="mso-bidi-font-weight: normal"&gt;Render&lt;/b&gt; --
Generates artifacts at Client side (HTML,DHTML,Scripts) to properly display controls&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;12. &lt;b style="mso-bidi-font-weight: normal"&gt;Dispose&lt;/b&gt; --
Releases unmanaged Resource ( Database connections, file handles)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style="TEXT-ALIGN: justify"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;13. &lt;b style="mso-bidi-font-weight: normal"&gt;Unload&lt;/b&gt; --
Releases managed Resources ( Instances created by CLR)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Comparision between XmlSerializer, SoapFormatter and BinaryFormatter.</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/31/ComparisionBetweenXmlSerializerSoapFormatterAndBinaryFormatter.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,58c530a3-70e0-4d62-ad14-ea3630ed772e.aspx</id>
    <published>2008-07-31T06:43:06.8836242-07:00</published>
    <updated>2008-07-31T06:43:06.8836242-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
            <font color="#000000">The <b style="mso-bidi-font-weight: normal"><i>XmlSerializer</i></b> can
be used when you need the data in the object to be stored in an XML Format. However,
this serialize has the limitation that it can serialize only the public fields of
an object.<br /><br />
The <b style="mso-bidi-font-weight: normal"><i>SoapFormatter</i></b> is ideal in scenarios
where you need interoperability. This is ideal in applications spanning heterogeneous
environments.<br /><br />
The <b style="mso-bidi-font-weight: normal"><i>BinaryFormatter</i></b> generates a
very compact stream when an object is serialized as compared to the other two techniques
and hence is useful when data needs to travel electronically across the wire. This
is appropriate when the applications do not involve heterogeneous environments.</font>
          </span>
        </p>
      </div>
    </content>
  </entry>
  <entry>
    <title>What is shallow serialization and deep serialization?.</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/31/WhatIsShallowSerializationAndDeepSerialization.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,5f60270a-3678-4835-adb2-e0e1b93e8039.aspx</id>
    <published>2008-07-31T06:40:04.6336242-07:00</published>
    <updated>2008-07-31T06:40:04.6336242-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;font color=#000000&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Serialization&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt; is
the process of saving the state of an object by converting it to a stream of bytes.
The object can then be persisted to file, database, or even memory. The reverse process
of serialization is known as &lt;b style="mso-bidi-font-weight: normal"&gt;deserialization&lt;/b&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;This classification
arises from the format in which the data in the object is persisted. Each of the serialization
techniques mentioned have different capabilities and each excel in specific scenarios.
The XML serialization technique can convert only the public properties and fields
of an object into an XML format. The XML serialization is also known as &lt;b style="mso-bidi-font-weight: normal"&gt;&lt;i&gt;shallow
serialization&lt;/i&gt;&lt;/b&gt;.&lt;br&gt;
&lt;br&gt;
This inability of the &lt;b style="mso-bidi-font-weight: normal"&gt;&lt;i&gt;XMLSerializer&lt;/i&gt;&lt;/b&gt; to
serialize the private fields of an object is overcome by the SOAP and binary serialization
techniques. In the binary and SOAP serialization techniques, the state of the entire
object is serialized into a stream of bytes. In cases where the object contains a
reference to other objects, even those are serialized. This type of serialization
is known as &lt;b style="mso-bidi-font-weight: normal"&gt;&lt;i&gt;deep serialization&lt;/i&gt;&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>What’s the difference between an interface and abstract class? </title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/31/WhatsTheDifferenceBetweenAnInterfaceAndAbstractClass.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,f44e2bfe-1f08-408d-92ab-d190d76d6ad4.aspx</id>
    <published>2008-07-31T05:28:18.008-07:00</published>
    <updated>2008-07-31T05:29:33.3054992-07:00</updated>
    <category term="Interview Question .NET" label="Interview Question .NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2B.NET.aspx" />
    <content type="html">&lt;ul style="MARGIN-TOP: 0in" type=disc&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;An
abstract class may contain complete or incomplete methods. Interfaces can contain
only the signature of a method but no body. Thus an abstract class can implement methods
but an interface can not implement methods. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;ul style="MARGIN-TOP: 0in" type=disc&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;An abstract
class can contain fields, constructors, or destructors and implement properties. An
interface can not contain fields, constructors, or destructors and it has only the
property's signature but no implementation. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;ul style="MARGIN-TOP: 0in" type=disc&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;An abstract
class cannot support multiple inheritances, but an interface can support multiple
inheritances. Thus a class may inherit several interfaces but only one abstract class. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;ul style="MARGIN-TOP: 0in" type=disc&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;A class implementing
an interface has to implement all the methods of the interface, but the same is not
required in the case of an abstract Class. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;ul style="MARGIN-TOP: 0in" type=disc&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;font color=#000000&gt;Various access
modifiers such as abstract, protected, internal, public, virtual, etc. are useful
in abstract Classes but not in interfaces.&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry>
  <entry>
    <title>Is it possible to prevent a browser from caching an ASPX page? </title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/01/IsItPossibleToPreventABrowserFromCachingAnASPXPage.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,7eb0e276-06fe-4ebd-a8cb-c661b21705b1.aspx</id>
    <published>2008-07-01T04:24:24.421-07:00</published>
    <updated>2008-07-01T04:25:55.149995-07:00</updated>
    <category term="Interview Question ASP.NET" label="Interview Question ASP.NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2BASP.NET.aspx" />
    <content type="html">&lt;p class=main style="MARGIN: auto 0in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;You bet. Just call &lt;i&gt;SetNoStore&lt;/i&gt; on
the &lt;i&gt;HttpCachePolicy&lt;/i&gt; object exposed through the &lt;i&gt;Response&lt;/i&gt; object's &lt;i&gt;Cache&lt;/i&gt; property,
as demonstrated here:&lt;/font&gt;
&lt;/p&gt;
&lt;div align=left&gt;
&lt;table class=MsoNormalTable style="BACKGROUND: #eaeaea; WIDTH: 90%; mso-padding-alt: 0in 0in 0in 0in; mso-cellspacing: 0in" cellspacing=0 cellpadding=0 width="90%" border=0&gt;
&lt;tbody&gt;
&lt;tr style="HEIGHT: 9pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 8.25pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=top width=11&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&lt;v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;
&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;
&lt;v:formulas&gt;
&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;
&lt;/v:formulas&gt;
&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;
&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;
&lt;/v:shapetype&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&lt;v:shape id=_x0000_i1028 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 9pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=top width=12&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: right; mso-line-height-alt: 9.0pt" align=right&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="mso-yfti-irow: 1"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;v:shape id=_x0000_i1025 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;&lt;font size=2&gt; 
&lt;p&gt;
&amp;lt;%&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#800000 size=2&gt;Page&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Language&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="C#"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;html&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;body&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font size=2&gt;&amp;lt;%&lt;br&gt;
Response.Cache.SetNoStore ();&lt;br&gt;
Response.Write (DateTime.Now.ToLongTimeString ());&lt;br&gt;
%&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;body&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;br&gt;
&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;html&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;v:shape id=_x0000_i1026 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="HEIGHT: 9pt; mso-yfti-irow: 2; mso-yfti-lastrow: yes"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 8.25pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=bottom width=11&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&lt;v:shape id=_x0000_i1031 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 9pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=bottom width=12&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: right; mso-line-height-alt: 9.0pt" align=right&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p class=main style="MARGIN: auto 0in"&gt;
&lt;font color=#000000&gt;&lt;font face="Times New Roman"&gt;&lt;font size=3&gt;&lt;i&gt;SetNoStore&lt;/i&gt; works
by returning a &lt;i&gt;Cache-Control: private, no-store&lt;/i&gt; header in the HTTP response.
In this example, it prevents caching of a Web page that shows the current time.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>How do I create an ASPX page that periodically refreshes itself? </title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/01/HowDoICreateAnASPXPageThatPeriodicallyRefreshesItself.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,8e0e7f8c-365b-46e5-8ef1-7500b99ec417.aspx</id>
    <published>2008-07-01T04:08:25.326-07:00</published>
    <updated>2008-07-01T04:13:34.791131-07:00</updated>
    <category term="Interview Question ASP.NET" label="Interview Question ASP.NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2BASP.NET.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;font color=#000000 size=1&gt;&lt;font face="Times New Roman" size=2&gt;&lt;font size=3&gt;&lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;Most
browsers recognize the following 
&lt;st1:place w:st="on"&gt;META&lt;/st1:place&gt;
tag as a signal to automatically refresh the page every &lt;i&gt;nn&lt;/i&gt; seconds:&lt;/font&gt;
&lt;br&gt;
&lt;/font&gt;
&lt;br&gt;
&lt;/font&gt;
&lt;/p&gt;
&lt;div align=left&gt;
&lt;table class=MsoNormalTable style="BACKGROUND: #eaeaea; WIDTH: 90%; mso-padding-alt: 0in 0in 0in 0in; mso-cellspacing: 0in" cellspacing=0 cellpadding=0 width="90%" border=0&gt;
&lt;tbody&gt;
&lt;tr style="HEIGHT: 9pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 8.25pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=top width=11&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;&lt;?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /&gt;
&lt;v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;
&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;
&lt;v:formulas&gt;
&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;
&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;
&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;
&lt;/v:formulas&gt;
&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;
&lt;/v:shapetype&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&lt;v:shape id=_x0000_i1027 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 9pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=top width=12&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: right; mso-line-height-alt: 9.0pt" align=right&gt;
&lt;v:shape id=_x0000_i1026 style="WIDTH: 9pt; HEIGHT: 9pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/corners/images/light_gray_03.jpg" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image003.jpg"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="mso-yfti-irow: 1"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;v:shape id=_x0000_i1028 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; 
&lt;p&gt;
&amp;lt;&lt;font color=#800000 size=2&gt;meta&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;http-equiv&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Refresh"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;content&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="nn"&amp;gt;&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;
&lt;/p&gt;
&lt;/span&gt;&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;v:shape id=_x0000_i1029 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="HEIGHT: 9pt; mso-yfti-irow: 2; mso-yfti-lastrow: yes"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 8.25pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=bottom width=11&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&lt;v:shape id=_x0000_i1030 style="WIDTH: 8.25pt; HEIGHT: 9pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/corners/images/light_gray_06.jpg" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image004.jpg"&gt;&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&lt;v:shape id=_x0000_i1031 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 9pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=bottom width=12&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: right; mso-line-height-alt: 9.0pt" align=right&gt;
&lt;v:shape id=_x0000_i1032 style="WIDTH: 9pt; HEIGHT: 9pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/corners/images/light_gray_07.jpg" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image005.jpg"&gt;&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p class=main style="MARGIN: auto 0in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;Here's an ASPX file that displays
the current time of day. Once displayed, it automatically refreshes every 5 seconds:&lt;/font&gt;
&lt;/p&gt;
&lt;div align=left&gt;
&lt;table class=MsoNormalTable style="BACKGROUND: #eaeaea; WIDTH: 90%; mso-padding-alt: 0in 0in 0in 0in; mso-cellspacing: 0in" cellspacing=0 cellpadding=0 width="90%" border=0&gt;
&lt;tbody&gt;
&lt;tr style="HEIGHT: 9pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 8.25pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=top width=11&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 9.0pt"&gt;
&lt;v:shape id=_x0000_i1034 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 9pt; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; HEIGHT: 9pt; BACKGROUND-COLOR: transparent" valign=top width=12&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: right; mso-line-height-alt: 9.0pt" align=right&gt;
&lt;v:shape id=_x0000_i1035 style="WIDTH: 9pt; HEIGHT: 9pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/corners/images/light_gray_03.jpg" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image003.jpg"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes"&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;v:shape id=_x0000_i1036 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;
&lt;font color=#000000 size=1&gt;&lt;/font&gt;
&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;&lt;font size=2&gt; 
&lt;p&gt;
&amp;lt;%&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#800000 size=2&gt;Page&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Language&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="C#"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;meta&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;http-equiv&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Refresh"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;content&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="5"&amp;gt;&lt;br&gt;
&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;html&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;body&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font size=2&gt;&amp;lt;%&lt;br&gt;
Response.Write (DateTime.Now.ToLongTimeString ());&lt;br&gt;
%&amp;gt;&lt;br&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;body&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;br&gt;
&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;html&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt; 
&lt;/p&gt;
&lt;/span&gt;&gt;&gt;&lt;/td&gt;
&lt;td style="BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 0in; BORDER-TOP: #ece9d8; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; PADDING-TOP: 0in; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;v:shape id=_x0000_i1037 style="WIDTH: 0.75pt; HEIGHT: 0.75pt" alt="" type="#_x0000_t75"&gt;
&lt;v:imagedata o:href="http://www.wintellect.com/images/spacer.gif" src="file:///C:\DOCUME~1\shekhar.raj\LOCALS~1\Temp\msohtml1\01\clip_image002.gif"&gt;&lt;/v:imagedata&gt;
&lt;/v:shape&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;</content>
  </entry>
  <entry>
    <title>How do we upload files to Web pages in ASP.NET? </title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/07/01/HowDoWeUploadFilesToWebPagesInASPNET.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,995b393b-f15a-4b72-8370-d4ea9df8b76d.aspx</id>
    <published>2008-07-01T04:02:22.865-07:00</published>
    <updated>2008-07-01T04:04:42.543947-07:00</updated>
    <category term="Interview Question ASP.NET" label="Interview Question ASP.NET" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,Interview%2BQuestion%2BASP.NET.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
            <font color="#000000">Use
the <i>HtmlInputFile</i> class, which you can declare an instance of with an &lt;input
type="file" runat="server"/&gt; tag. The following example is a complete ASPX file
that lets a user upload an image file and a comment descibing the image. The <i>Upload_Click</i> method
writes the image and the comment to a table named Pictures in a SQL Server database
named MyPictures.</font>
          </span>
        </p>
        <span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
          <font color="#0000ff" size="2">
            <p>
&lt;
</p>
          </font>
          <font color="#800000" size="2">form</font>
          <font color="#000000" size="2">
          </font>
          <font color="#ff0000" size="2">id</font>
          <font color="#0000ff" size="2">="Form2"</font>
          <font color="#000000" size="2">
          </font>
          <font color="#ff0000" size="2">enctype</font>
          <font color="#0000ff" size="2">="multipart/form-data"</font>
          <font color="#000000" size="2">
          </font>
          <font color="#ff0000" size="2">runat</font>
          <font color="#0000ff" size="2">="server"&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">table</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">tr</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;</font>
          <font size="2">File
name</font>
          <font color="#0000ff" size="2">&lt;/</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;&lt;</font>
          <font color="#800000" size="2">input</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">type</font>
          <font color="#0000ff" size="2">="file"</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">id</font>
          <font color="#0000ff" size="2">="Upload"</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">runat</font>
          <font color="#0000ff" size="2">="server"</font>
          <font size="2">
          </font>
          <font color="#0000ff" size="2">/&gt;&lt;/</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;/</font>
          <font color="#800000" size="2">tr</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">tr</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;</font>
          <font size="2">Comment</font>
          <font color="#0000ff" size="2">&lt;/</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;&lt;</font>
          <font color="#800000" size="2">asp</font>
          <font color="#0000ff" size="2">:</font>
          <font color="#800000" size="2">TextBox</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">ID</font>
          <font color="#0000ff" size="2">="Comment"</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">RunAt</font>
          <font color="#0000ff" size="2">="server"</font>
          <font size="2">
          </font>
          <font color="#0000ff" size="2">/&gt;&lt;/</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;/</font>
          <font color="#800000" size="2">tr</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">tr</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;&lt;/</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;&lt;</font>
          <font color="#800000" size="2">asp</font>
          <font color="#0000ff" size="2">:</font>
          <font color="#800000" size="2">Button</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">Text</font>
          <font color="#0000ff" size="2">="Upload"</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">OnClick</font>
          <font color="#0000ff" size="2">="Upload_Click("</font>
          <font size="2">
          </font>
          <font color="#ff0000" size="2">RunAt</font>
          <font color="#0000ff" size="2">="server"</font>
          <font size="2">
          </font>
          <font color="#0000ff" size="2">/&gt;&lt;/</font>
          <font color="#800000" size="2">td</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;/</font>
          <font color="#800000" size="2">tr</font>
          <font color="#0000ff" size="2">&gt;<br /></font>
          <font color="#0000ff" size="2">&lt;/</font>
          <font color="#800000" size="2">table</font>
          <font color="#0000ff" size="2">&gt;<br />
&lt;/</font>
          <font color="#800000" size="2">form</font>
          <font color="#0000ff" size="2">&gt;</font>
          <font color="#0000ff" size="2">
            <span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
              <font color="#000000">
                <font size="2">
                  <p>
                  </p>
                </font>
                <font color="#0000ff" size="2">protected</font>
                <font size="2">
                </font>
                <font color="#0000ff" size="2">void</font>
                <font size="2"> Upload_Click(</font>
                <font color="#0000ff" size="2">object</font>
                <font size="2"> sender, </font>
                <font color="#008080" size="2">EventArgs</font>
                <font size="2"> e)<br />
{<br /></font>
                <font color="#008000" size="2">// Create a byte[] from the input file
</font>
                <font size="2">
                  <p>
                  </p>
                </font>
                <font color="#0000ff" size="2">int</font>
                <font size="2"> len = Upload.PostedFile.ContentLength;
<p></p></font>
                <font color="#0000ff" size="2">byte</font>
                <font size="2">[] pic = </font>
                <font color="#0000ff" size="2">new</font>
                <font size="2">
                </font>
                <font color="#0000ff" size="2">byte</font>
                <font size="2">[len];
<p>
Upload.PostedFile.InputStream.Read(pic, 0, len);
</p><p></p></font>
                <font color="#008000" size="2">// Insert the image and comment into the
database
</font>
                <font size="2">
                  <p>
SqlConnection connection = 
</p>
                </font>
                <font color="#0000ff" size="2">new</font>
                <font size="2"> SqlConnection(</font>
                <font color="#800000" size="2">"server=localhost;database=mypictures;uid=sa;pwd="</font>
                <font size="2">);
<p></p></font>
                <font color="#0000ff" size="2">try
</font>
                <font size="2">
                  <p>
{
</p>
                  <p>
connection.Open();
</p>
                  <p>
SqlCommand cmd = 
</p>
                </font>
                <font color="#0000ff" size="2">new</font>
                <font size="2"> SqlCommand(</font>
                <font color="#800000" size="2">"insert
into Pictures "</font>
                <font size="2"> + </font>
                <font color="#800000" size="2">"(Picture,
Comment) values (@pic, @text)"</font>
                <font size="2">, connection);
<p>
cmd.Parameters.Add(
</p></font>
                <font color="#800000" size="2">"@pic"</font>
                <font size="2">, pic);
<p>
cmd.Parameters.Add(
</p></font>
                <font color="#800000" size="2">"@text"</font>
                <font size="2">, Comment.Text);
<p>
cmd.ExecuteNonQuery();
</p><p>
}
</p><p></p></font>
                <font color="#0000ff" size="2">finally</font>
                <font size="2">{<br />
connection.Close();<br />
}<br />
}
</font>
              </font>
            </span>
          </font>
        </span>
      </div>
    </content>
  </entry>
  <entry>
    <title>Factory Method Pattern C#</title>
    <link rel="alternate" type="text/html" href="http://blogs.softwarecodehelp.com/2008/06/30/FactoryMethodPatternC.aspx" />
    <id>http://blogs.softwarecodehelp.com/PermaLink,guid,dac3439f-a8dd-470c-8abc-5efa59b8860a.aspx</id>
    <published>2008-06-29T22:29:52.976-07:00</published>
    <updated>2008-06-29T22:29:52.976625-07:00</updated>
    <category term="C#" label="C#" scheme="http://blogs.softwarecodehelp.com/CategoryView,category,C%23.aspx" />
    <content type="html">&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;font size=3&gt;&lt;font color=#000000&gt;&lt;font face="Times New Roman"&gt;A Simple Factory pattern
is one that returns an instance of one of several possible classes, depending on the
data provided to it. Usually all of the classes it returns have a common parent class
and common methods, but each of them performs a task differently and is optimized
for different kinds of data.&lt;span style="FONT-SIZE: 10pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt"&gt;
&lt;o:p&gt;
&lt;font face="Times New Roman" color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;
&lt;font color=#000000&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;abstract&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;class&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Travel&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;{ 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;abstract&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;decimal&lt;/span&gt;&lt;font color=#000000&gt; GetPrice();&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;enum&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Types&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Air,
Hotel, Car&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;span style="COLOR: green"&gt; &lt;/span&gt;&lt;span style="COLOR: gray"&gt;&amp;lt;summary&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;span style="COLOR: green"&gt; This
class return value using factory&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;span style="COLOR: green"&gt; &lt;/span&gt;&lt;span style="COLOR: gray"&gt;&amp;lt;/summary&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;span style="COLOR: green"&gt; &lt;/span&gt;&lt;span style="COLOR: gray"&gt;&amp;lt;param
name="t"&amp;gt;&amp;lt;/param&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;span style="COLOR: green"&gt; &lt;/span&gt;&lt;span style="COLOR: gray"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;static&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Travel&lt;/span&gt;&lt;font color=#000000&gt; TravelFactory(&lt;/font&gt;&lt;span style="COLOR: teal"&gt;Types&lt;/span&gt;&lt;font color=#000000&gt; t)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;switch&lt;/span&gt;&lt;font color=#000000&gt; (t)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;case&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Types&lt;/span&gt;&lt;font color=#000000&gt;.Air:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;return&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;new&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Air&lt;/span&gt;&lt;font color=#000000&gt;();&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;case&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Types&lt;/span&gt;&lt;font color=#000000&gt;.Hotel:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;return&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;new&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Hotel&lt;/span&gt;&lt;font color=#000000&gt;();&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;case&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Types&lt;/span&gt;&lt;font color=#000000&gt;.Car:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;return&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;new&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Car&lt;/span&gt;&lt;font color=#000000&gt;();&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;throw&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;new&lt;/span&gt;&lt;font color=#000000&gt; System.&lt;/font&gt;&lt;span style="COLOR: teal"&gt;NotSupportedException&lt;/span&gt;&lt;font color=#000000&gt;(&lt;/font&gt;&lt;span style="COLOR: maroon"&gt;"The
Travel type "&lt;/span&gt;&lt;font color=#000000&gt; + t.ToString() + &lt;/font&gt;&lt;span style="COLOR: maroon"&gt;"
is not recognized."&lt;/span&gt;&lt;font color=#000000&gt;);&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;class&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Air&lt;/span&gt;&lt;font color=#000000&gt; : &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Travel&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;private&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;decimal&lt;/span&gt;&lt;font color=#000000&gt; m_Price
= 23.5M;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;override&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;decimal&lt;/span&gt;&lt;font color=#000000&gt; GetPrice()
{ &lt;/font&gt;&lt;span style="COLOR: blue"&gt;return&lt;/span&gt;&lt;font color=#000000&gt; m_Price; }&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;class&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Hotel&lt;/span&gt;&lt;font color=#000000&gt; : &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Travel&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;private&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;decimal&lt;/span&gt;&lt;font color=#000000&gt; m_Price
= 11.5M;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;override&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;decimal&lt;/span&gt;&lt;font color=#000000&gt; GetPrice()
{ &lt;/font&gt;&lt;span style="COLOR: blue"&gt;return&lt;/span&gt;&lt;font color=#000000&gt; m_Price; }&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;class&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Car&lt;/span&gt;&lt;font color=#000000&gt; : &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Travel&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;private&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;decimal&lt;/span&gt;&lt;font color=#000000&gt; m_Price
= 16.5M;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;font color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;override&lt;/span&gt;&lt;font color=#000000&gt; &lt;/font&gt;&lt;span style="COLOR: blue"&gt;decimal&lt;/span&gt;&lt;font color=#000000&gt; GetPrice()
{ &lt;/font&gt;&lt;span style="COLOR: blue"&gt;return&lt;/span&gt;&lt;font color=#000000&gt; m_Price; }&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;//
you can use factory using this code&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;...&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;Console&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;.WriteLine( &lt;/font&gt;&lt;span style="COLOR: teal"&gt;Travel&lt;/span&gt;&lt;font color=#000000&gt;.TravelFactory(&lt;/font&gt;&lt;span style="COLOR: teal"&gt;Travel&lt;/span&gt;&lt;font color=#000000&gt;.&lt;/font&gt;&lt;span style="COLOR: teal"&gt;Types&lt;/span&gt;&lt;font color=#000000&gt;.Air).GetPrice().ToString()
);&lt;o:p&gt;&lt;/o:p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;...&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</content>
  </entry>
</feed>