<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Software Code Help - asp.net</title>
    <link>http://blog.softwarecodehelp.com/</link>
    <description>Blog</description>
    <language>en-us</language>
    <copyright>SoftwareCodeHelp</copyright>
    <lastBuildDate>Sun, 04 Oct 2009 06:36:15 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>rajshekher@gmail.com</managingEditor>
    <webMaster>rajshekher@gmail.com</webMaster>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=3d7e0b9c-578c-4996-9ac5-59c703aac083</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,3d7e0b9c-578c-4996-9ac5-59c703aac083.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,3d7e0b9c-578c-4996-9ac5-59c703aac083.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=3d7e0b9c-578c-4996-9ac5-59c703aac083</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
First Download IE Web Control from this location.
</p>
        <p>
          <a href="http://www.asp.net/downloads/archived/ie-web-controls/IEWebControls.exe">http://www.asp.net/downloads/archived/ie-web-controls/IEWebControls.exe</a>
          <br />
 <br />
To build the IE Web Controls:
</p>
        <p>
1.  Make sure you have installed the .NET Framework SDK v1.0 or v1.1<br />
2.  Run Build.bat, which will create a build folder in this directory.  
<br />
    The build folder contains Microsoft.Web.UI.WebControls.dll and
a 
<br />
    Runtime directory of supporting files.
</p>
        <p>
To run the IE Web Controls:
</p>
        <p>
1.  Copy the contents of the Runtime directory to the webctrl_client\1_0<br />
    directory under your top-level site directory.  For example,
if your 
<br />
    site root is c:\Inetpub\wwwroot, type this at the command prompt:
</p>
        <p>
    IE Installable Path&gt;xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0
/y
</p>
        <p>
    This will create the following directory structure under the site:
</p>
        <p>
      /webctrl_client/1_0<br />
        MultiPage.htc<br />
        TabStrip.htc<br />
        toolbar.htc<br />
        treeview.htc<br />
        webservice.htc<br />
        webserviced.htc<br />
        [images]<br />
        [treeimages]
</p>
        <p>
2.  Create a new web application in IIS and copy the contents of the<br />
    samples directory to this application directory.  For example:
</p>
        <p>
    xcopy /s /i .\samples c:\Inetpub\wwwroot\sampleapp /y
</p>
        <p>
3.  Create a /bin subdirectory for the application and copy the file<br />
    Microsoft.Web.UI.WebControls.dll to this directory.
</p>
        <p>
    The contents of the application will be as follows:
</p>
        <p>
      /sampleapp<br />
        multipage.aspx<br />
        state_city.xml<br />
        tabstrip.aspx<br />
        toolbar.aspx<br />
        treeview.aspx<br />
        treeview_bound.aspx<br />
        /bin<br />
          Microsoft.Web.UI.WebControls.dll
</p>
        <p>
4.  Request the sample pages from your Internet Explorer web browser, for<br />
    example: <a href="http://localhost/sampleapp/multipage.aspx">http://localhost/sampleapp/multipage.aspx</a><br />
    
<br />
For additional documentation and samples visit:<br /><a href="http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/webcontrols_entry.asp">http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/webcontrols_entry.asp</a></p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=3d7e0b9c-578c-4996-9ac5-59c703aac083" />
      </body>
      <title>How to setup IE Web Controls ( Microsoft.Web.UI.WebControls.dll) in Local Machine.</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,3d7e0b9c-578c-4996-9ac5-59c703aac083.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/10/04/HowToSetupIEWebControlsMicrosoftWebUIWebControlsdllInLocalMachine.aspx</link>
      <pubDate>Sun, 04 Oct 2009 06:36:15 GMT</pubDate>
      <description>&lt;p&gt;
First Download IE Web Control from this location.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.asp.net/downloads/archived/ie-web-controls/IEWebControls.exe"&gt;http://www.asp.net/downloads/archived/ie-web-controls/IEWebControls.exe&lt;/a&gt;
&lt;br&gt;
&amp;nbsp;&lt;br&gt;
To build the IE Web Controls:
&lt;/p&gt;
&lt;p&gt;
1.&amp;nbsp; Make sure you have installed the .NET Framework SDK v1.0 or v1.1&lt;br&gt;
2.&amp;nbsp; Run Build.bat, which will create a build folder in this directory.&amp;nbsp; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The build folder contains Microsoft.Web.UI.WebControls.dll and
a 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Runtime directory of supporting files.
&lt;/p&gt;
&lt;p&gt;
To run the IE Web Controls:
&lt;/p&gt;
&lt;p&gt;
1.&amp;nbsp; Copy the contents of the Runtime directory to the webctrl_client\1_0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; directory under your top-level site directory.&amp;nbsp; For example,
if your 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; site root is c:\Inetpub\wwwroot, type this at the command prompt:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; IE Installable Path&amp;gt;xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0
/y
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; This will create the following directory structure under the site:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /webctrl_client/1_0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultiPage.htc&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TabStrip.htc&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar.htc&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; treeview.htc&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webservice.htc&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webserviced.htc&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [images]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [treeimages]
&lt;/p&gt;
&lt;p&gt;
2.&amp;nbsp; Create a new web application in IIS and copy the contents of the&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; samples directory to this application directory.&amp;nbsp; For example:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xcopy /s /i .\samples c:\Inetpub\wwwroot\sampleapp /y
&lt;/p&gt;
&lt;p&gt;
3.&amp;nbsp; Create a /bin subdirectory for the application and copy the file&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Microsoft.Web.UI.WebControls.dll to this directory.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The contents of the application will be as follows:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /sampleapp&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; multipage.aspx&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; state_city.xml&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabstrip.aspx&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar.aspx&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; treeview.aspx&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; treeview_bound.aspx&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /bin&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Microsoft.Web.UI.WebControls.dll
&lt;/p&gt;
&lt;p&gt;
4.&amp;nbsp; Request the sample pages from your Internet Explorer web browser, for&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; example: &lt;a href="http://localhost/sampleapp/multipage.aspx"&gt;http://localhost/sampleapp/multipage.aspx&lt;/a&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;br&gt;
For additional documentation and samples visit:&lt;br&gt;
&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/webcontrols_entry.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/webcontrols_entry.asp&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=3d7e0b9c-578c-4996-9ac5-59c703aac083" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,3d7e0b9c-578c-4996-9ac5-59c703aac083.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=7070237a-1ce4-454d-9741-705fbb979cd1</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,7070237a-1ce4-454d-9741-705fbb979cd1.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,7070237a-1ce4-454d-9741-705fbb979cd1.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=7070237a-1ce4-454d-9741-705fbb979cd1</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p align="justify">
Caching is the technique of storing an in-memory copy of some information that’s expensive
to create. For example, you could cache the results of a complex query so that subsequent
requests don’t need to access the database at all. Instead, they can grab the appropriate
object directly from server memory—a much faster proposition. The real beauty of caching
is that unlike many other performance-enhancing techniques, caching bolsters both
performance and scalability.
</p>
        <p align="justify">
          <br />
          <strong>Output caching:</strong> This is the simplest type of caching. It stores a
copy of the final rendered HTML page that is sent to the client. The next client that
submits a request for this page doesn’t actually run the page. Instead, the final
HTML output is sent automatically. The time that would have been required to run the
page and its code is completely reclaimed.
</p>
        <p align="justify">
          <strong>Data caching:</strong> This type of caching is carried out manually in your
code. To use data caching, you store important pieces of information that are time-consuming
to reconstruct (such as a DataSet retrieved from a database) in the cache. Other pages
can check for the existence of this information and use it, thereby bypassing the
steps ordinarily required to retrieve it. 
</p>
        <p align="justify">
          <strong>Fragment caching:</strong> This is a specialized type of output caching—instead
of caching the HTML for the whole page, it allows you to cache the HTML for a portion
of it. Fragment caching works by storing the rendered HTML output of a user control
on a page. The next time the page is executed, the same page events fire (and so your
page code will still run), but the code for the appropriate user control isn’t executed.
</p>
        <p align="justify">
          <strong>Data source caching:</strong> This is the caching that’s built into the data
source controls, including the SqlDataSource, ObjectDataSource, and XmlDataSource.
Technically, data source caching uses data caching. The difference is that you don’t
need to handle the process explicitly.<br />
Instead, you simply configure the appropriate properties, and the data source control
manages the caching storage and retrieval.
</p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=7070237a-1ce4-454d-9741-705fbb979cd1" />
      </body>
      <title>Different type of Caching in ASP.NET 2.0</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,7070237a-1ce4-454d-9741-705fbb979cd1.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/07/07/DifferentTypeOfCachingInASPNET20.aspx</link>
      <pubDate>Tue, 07 Jul 2009 06:08:32 GMT</pubDate>
      <description>&lt;p align=justify&gt;
Caching is the technique of storing an in-memory copy of some information that’s expensive
to create. For example, you could cache the results of a complex query so that subsequent
requests don’t need to access the database at all. Instead, they can grab the appropriate
object directly from server memory—a much faster proposition. The real beauty of caching
is that unlike many other performance-enhancing techniques, caching bolsters both
performance and scalability.
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;br&gt;
&lt;strong&gt;Output caching:&lt;/strong&gt; This is the simplest type of caching. It stores a
copy of the final rendered HTML page that is sent to the client. The next client that
submits a request for this page doesn’t actually run the page. Instead, the final
HTML output is sent automatically. The time that would have been required to run the
page and its code is completely reclaimed.
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;strong&gt;Data caching:&lt;/strong&gt; This type of caching is carried out manually in your
code. To use data caching, you store important pieces of information that are time-consuming
to reconstruct (such as a DataSet retrieved from a database) in the cache. Other pages
can check for the existence of this information and use it, thereby bypassing the
steps ordinarily required to retrieve it. 
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;strong&gt;Fragment caching:&lt;/strong&gt; This is a specialized type of output caching—instead
of caching the HTML for the whole page, it allows you to cache the HTML for a portion
of it. Fragment caching works by storing the rendered HTML output of a user control
on a page. The next time the page is executed, the same page events fire (and so your
page code will still run), but the code for the appropriate user control isn’t executed.
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;strong&gt;Data source caching:&lt;/strong&gt; This is the caching that’s built into the data
source controls, including the SqlDataSource, ObjectDataSource, and XmlDataSource.
Technically, data source caching uses data caching. The difference is that you don’t
need to handle the process explicitly.&lt;br&gt;
Instead, you simply configure the appropriate properties, and the data source control
manages the caching storage and retrieval.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=7070237a-1ce4-454d-9741-705fbb979cd1" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,7070237a-1ce4-454d-9741-705fbb979cd1.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=1ec4e9ba-21ae-41aa-b7cc-849072f40378</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,1ec4e9ba-21ae-41aa-b7cc-849072f40378.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,1ec4e9ba-21ae-41aa-b7cc-849072f40378.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=1ec4e9ba-21ae-41aa-b7cc-849072f40378</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <div style="MARGIN: 0in 0in 10pt" align="justify">
          <font size="2">
            <font face="Verdana">In
ASP.NET 2.0, managing controls has become easier. Instead of declaring them on every
page, you can declare them only once in your web.config file and use them in your
entire project.</font>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">configuration</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">   
&lt;</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">system.web</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;        </span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">     
&lt;</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">pages</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">           
&lt;</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">controls</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">                 
&lt;</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">add </span>
            <span style="COLOR: red; FONT-FAMILY: 'Courier New'">tagPrefix</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">=</span>
            <span style="FONT-FAMILY: 'Courier New'">"<span style="COLOR: blue">portal</span>" <span style="COLOR: red">tagName</span><span style="COLOR: blue">=</span>"<span style="COLOR: blue">Top</span>"<span style="COLOR: red">src</span><span style="COLOR: blue">=</span>"<span style="COLOR: blue">~/Controls/Top.ascx</span>"<span style="COLOR: blue"> /&gt;</span></span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">           
&lt;/</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">controls</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'"> &gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">     
&lt;/</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">pages</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'"> &gt;   </span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">   
&lt;/</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">system.web</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 10pt">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">configuration</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 10pt" align="justify">
          <font face="Verdana" size="2">Once
you have registered this control in your web.config, you can use this control on any
page without explicitly adding a register directive on the page.</font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">body</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <span style="FONT-FAMILY: 'Courier New'">
            <font size="2">    <span style="COLOR: blue">&lt;</span><span style="COLOR: #a31515">form</span><span style="COLOR: red">id</span><span style="COLOR: blue">="form1"</span><span style="COLOR: red">runat</span><span style="COLOR: blue">="server"&gt;</span></font>
          </span>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <span style="FONT-FAMILY: 'Courier New'">
            <font size="2">    <span style="COLOR: blue">&lt;</span><span style="COLOR: #a31515">div</span><span style="COLOR: blue">&gt;</span></font>
          </span>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <span style="FONT-FAMILY: 'Courier New'">
            <font size="2">        <span style="COLOR: blue">&lt;</span><span style="COLOR: #a31515">portal</span><span style="COLOR: blue">:</span><span style="COLOR: #a31515">Top</span><span style="COLOR: red">ID</span><span style="COLOR: blue">="Top1"</span><span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span><span style="COLOR: blue">/&gt;</span></font>
          </span>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <span style="FONT-FAMILY: 'Courier New'">
            <font size="2">    <span style="COLOR: blue">&lt;/</span><span style="COLOR: #a31515">div</span><span style="COLOR: blue">&gt;</span></font>
          </span>
        </div>
        <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal">
          <span style="FONT-FAMILY: 'Courier New'">
            <font size="2">    <span style="COLOR: blue">&lt;/</span><span style="COLOR: #a31515">form</span><span style="COLOR: blue">&gt;</span></font>
          </span>
        </div>
        <div style="MARGIN: 0in 0in 10pt">
          <font size="2">
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</span>
            <span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'">body</span>
            <span style="COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</span>
          </font>
        </div>
        <div style="MARGIN: 0in 0in 10pt" align="justify">
          <font size="2">
            <font face="Verdana">
            </font>
          </font> 
</div>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=1ec4e9ba-21ae-41aa-b7cc-849072f40378" />
      </body>
      <title>TagPrefix to avoid having @ Register directives on pages using custom controls &amp; globally register user and custom controls in ASP.NET 2.0</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,1ec4e9ba-21ae-41aa-b7cc-849072f40378.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/29/TagPrefixToAvoidHavingRegisterDirectivesOnPagesUsingCustomControlsGloballyRegisterUserAndCustomControlsInASPNET20.aspx</link>
      <pubDate>Mon, 29 Jun 2009 09:03:00 GMT</pubDate>
      <description>&lt;div style="MARGIN: 0in 0in 10pt" align=justify&gt;&lt;font size=2&gt;&lt;font face=Verdana&gt;In
ASP.NET 2.0, managing controls has become easier. Instead of declaring them on every
page, you can declare them only once in your web.config file and use them in your
entire project.&lt;/font&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;configuration&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;system.web&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;pages&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;controls&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;add &lt;/span&gt;&lt;span style="COLOR: red; FONT-FAMILY: 'Courier New'"&gt;tagPrefix&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;=&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Courier New'"&gt;"&lt;span style="COLOR: blue"&gt;portal&lt;/span&gt;" &lt;span style="COLOR: red"&gt;tagName&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;Top&lt;/span&gt;"&lt;span style="COLOR: red"&gt;src&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;~/Controls/Top.ascx&lt;/span&gt;"&lt;span style="COLOR: blue"&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;controls&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt; &amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;pages&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt; &amp;gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;system.web&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;configuration&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt" align=justify&gt;&lt;font face=Verdana size=2&gt;Once you
have registered this control in your web.config, you can use this control on any page
without explicitly adding a register directive on the page.&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;body&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'"&gt;&lt;font size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;form&lt;/span&gt; &lt;span style="COLOR: red"&gt;id&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="form1"&lt;/span&gt; &lt;span style="COLOR: red"&gt;runat&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="server"&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'"&gt;&lt;font size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;div&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'"&gt;&lt;font size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;portal&lt;/span&gt;&lt;span style="COLOR: blue"&gt;:&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;Top&lt;/span&gt; &lt;span style="COLOR: red"&gt;ID&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="Top1"&lt;/span&gt; &lt;span style="COLOR: red"&gt;runat&lt;/span&gt;&lt;span style="COLOR: blue"&gt;="server"&lt;/span&gt; &lt;span style="COLOR: blue"&gt;/&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'"&gt;&lt;font size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;div&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-FAMILY: 'Courier New'"&gt;&lt;font size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;form&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;&lt;font size=2&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-FAMILY: 'Courier New'"&gt;body&lt;/span&gt;&lt;span style="COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt" align=justify&gt;&lt;font size=2&gt;&lt;font face=Verdana&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;
&lt;/div&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=1ec4e9ba-21ae-41aa-b7cc-849072f40378" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,1ec4e9ba-21ae-41aa-b7cc-849072f40378.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=bdf0f927-0251-4ac4-be73-0a35ccf5471d</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,bdf0f927-0251-4ac4-be73-0a35ccf5471d.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,bdf0f927-0251-4ac4-be73-0a35ccf5471d.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=bdf0f927-0251-4ac4-be73-0a35ccf5471d</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
One difference is that web forms start with the Page directive, a master page starts
with a Master directive that specifies the same information, as shown here:
</p>
        <p>
&lt;%@ Master <font color="#0000ff">Language</font>="C#" <font color="#0000ff">AutoEventWireup</font>="true" <font color="#0000ff">CodeFile</font>="SiteTemplate.master.cs" <font color="#0000ff">Inherits</font>="SiteTemplate"
%&gt;
</p>
        <p>
Another difference between master pages and ordinary web forms is that master pages
can use the ContentPlaceHolder control, which isn’t allowed in ordinary pages. The
ContentPlaceHolder is a portion of the page where the content page can insert content.
</p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=bdf0f927-0251-4ac4-be73-0a35ccf5471d" />
      </body>
      <title>Difference between Master Page and Ordinary ASP.NET web page.</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,bdf0f927-0251-4ac4-be73-0a35ccf5471d.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/26/DifferenceBetweenMasterPageAndOrdinaryASPNETWebPage.aspx</link>
      <pubDate>Fri, 26 Jun 2009 11:47:09 GMT</pubDate>
      <description>&lt;p&gt;
One difference is that web forms start with the Page directive, a master page starts
with a Master directive that specifies the same information, as shown here:
&lt;/p&gt;
&lt;p&gt;
&amp;lt;%@ Master &lt;font color=#0000ff&gt;Language&lt;/font&gt;="C#" &lt;font color=#0000ff&gt;AutoEventWireup&lt;/font&gt;="true" &lt;font color=#0000ff&gt;CodeFile&lt;/font&gt;="SiteTemplate.master.cs" &lt;font color=#0000ff&gt;Inherits&lt;/font&gt;="SiteTemplate"
%&amp;gt;
&lt;/p&gt;
&lt;p&gt;
Another difference between master pages and ordinary web forms is that master pages
can use the ContentPlaceHolder control, which isn’t allowed in ordinary pages. The
ContentPlaceHolder is a portion of the page where the content page can insert content.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=bdf0f927-0251-4ac4-be73-0a35ccf5471d" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,bdf0f927-0251-4ac4-be73-0a35ccf5471d.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=55b4f82e-4197-4d53-9e38-056e5b23f783</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,55b4f82e-4197-4d53-9e38-056e5b23f783.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,55b4f82e-4197-4d53-9e38-056e5b23f783.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=55b4f82e-4197-4d53-9e38-056e5b23f783</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Every .aspx page starts with a Page directive. This Page directive specifies the language
for the page,<br />
and it also tells ASP.NET where to find the associated code
</p>
        <p>
&lt;%@ Page <font color="#0000ff">Language</font>="C#" <font color="#0000ff">AutoEventWireup</font>="true" <font color="#0000ff">CodeFile</font>="FileName.aspx.cs" <font color="#0000ff">Inherits</font>="FileName"%&gt;
</p>
        <p>
Notice that Visual Studio uses a slightly unusual naming syntax for the source code
file. It has<br />
the full name of the corresponding web page, complete with the .aspx extension, followed
by the .cs<br />
extension at the end.
</p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=55b4f82e-4197-4d53-9e38-056e5b23f783" />
      </body>
      <title>How Code-Behind Files Are Connected to Pages in asp.net</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,55b4f82e-4197-4d53-9e38-056e5b23f783.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/24/HowCodeBehindFilesAreConnectedToPagesInAspnet.aspx</link>
      <pubDate>Wed, 24 Jun 2009 11:40:20 GMT</pubDate>
      <description>&lt;p&gt;
Every .aspx page starts with a Page directive. This Page directive specifies the language
for the page,&lt;br&gt;
and it also tells ASP.NET where to find the associated code
&lt;/p&gt;
&lt;p&gt;
&amp;lt;%@ Page &lt;font color=#0000ff&gt;Language&lt;/font&gt;="C#" &lt;font color=#0000ff&gt;AutoEventWireup&lt;/font&gt;="true" &lt;font color=#0000ff&gt;CodeFile&lt;/font&gt;="FileName.aspx.cs" &lt;font color=#0000ff&gt;Inherits&lt;/font&gt;="FileName"%&amp;gt;
&lt;/p&gt;
&lt;p&gt;
Notice that Visual Studio uses a slightly unusual naming syntax for the source code
file. It has&lt;br&gt;
the full name of the corresponding web page, complete with the .aspx extension, followed
by the .cs&lt;br&gt;
extension at the end.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=55b4f82e-4197-4d53-9e38-056e5b23f783" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,55b4f82e-4197-4d53-9e38-056e5b23f783.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=1aec52d6-0082-4653-a2af-30baf1a3b6fa</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,1aec52d6-0082-4653-a2af-30baf1a3b6fa.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,1aec52d6-0082-4653-a2af-30baf1a3b6fa.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=1aec52d6-0082-4653-a2af-30baf1a3b6fa</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
LINQ and Ajax are the two new features introduced in ASP.NET 3.5
</p>
        <p>
          <strong>LINQ</strong>
          <br />
-----<br />
LINQ (Language Integrated Query) is a set of extensions for the C# and Visual Basic
languages. It allows you to write C# or Visual Basic code that manipulates in-memory
data in much the same way you query a database.<br /><br />
Technically, LINQ defines about 40 query operators, such as select, from, in, where,
and orderby (in C#). These operators allow you to code your query. However, there
are various types of data on which this query can be performed, and each type of data
requires a separate flavor  of LINQ.
</p>
        <p align="justify">
          <strong>AJAX</strong>
          <br />
-----<br />
Ajax(Asynchronous JavaScript and XML)is programming shorthand for a client-side technique
that allows your page to call the server and update its content without triggering
a complete postback. Typically, an Ajax page uses client-side script code to fire
an asynchronous request behind the scenes. The server receives this request, runs
some code, and then returns the data your page needs (often as a block of XML markup).
Finally, the client-side code receives the new data and uses it to perform another
action, such as refreshing part of the page.<br /></p>
        <p align="justify">
          <strong>Green Bits and Red Bits</strong>
          <br />
-------------------------<br />
Oddly enough, ASP.NET 3.5 doesn’t include a full new version of ASP.NET. Instead,
ASP.NET 3.5 is designed as a set of features that add on to .NET 2.0. The parts of
.NET that haven’t changed in .NET 3.5 are often referred to as red bits, while the
parts that have changed are called green bits. The red bits include the CLR, the ASP.NET
engine, and all the class libraries from .NET 2.0. In<br />
other words, if you build a new ASP.NET 3.5 application, it gets exactly the same
runtime environment as an ASP.NET 2.0 application. Additionally, all the classes you
used in .NET 2.0—including those for connecting to a database, reading and writing
files, using web controls, and so on—remain the same in .NET 3.5. The red bits also
include the features that were included in .NET 3.0, such as WCF. All the assemblies
in .NET 3.5 retain their original version numbers. That means .NET 3.5 includes a
mix of 2.0, 3.0, and 3.5 assemblies. If you’re curious when an assembly was released,
you simply need to check the version number.
</p>
        <p align="justify">
The ASP.NET 3.5 green bits consist of a small set of assemblies with new types. For
ASP.NET developers, the important new assemblies include the following:<br /><br />
• System.Core.dll: Includes the core LINQ functionality<br />
• System.Data.Linq.dll: Includes the implementation for LINQ to SQL<br />
• System.Data.DataSetExtensions.dll:. Includes the implementation for LINQ to DataSet<br />
• System.Xml.Linq.dll: Includes the implementation for LINQ to XML<br />
• System.Web.Extensions.dll: Includes the implementation for ASP.NET AJAX and new
web controls
</p>
        <p align="justify">
          <br />
          <strong>Silverlight</strong>
          <br />
-----------<br />
Recently, there’s been a lot of excitement about Silverlight, a new Microsoft technology
that allows a variety of browsers on a variety of operating systems to run true .NET
code. Silverlight works through a browser plug-in, and provides a subset of the .NET
Framework class library. This subset includes a slimmed-down version of WPF, the technology
that developers use to craft next-generation Windows user interfaces.
</p>
        <p align="justify">
Silverlight is all about client code—quite simply, it allows you to create richer
pages than you could with HTML, DHTML, and JavaScript alone. In many ways, Silverlight
duplicates the features and echoes the goals of Adobe Flash. By using Silverlight
in a web page, you can draw sophisticated 2D graphics, animate a scene, and play video
and other media files.
</p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=1aec52d6-0082-4653-a2af-30baf1a3b6fa" />
      </body>
      <title>What are the new features in ASP.NET 3.5 as compared with ASP.NET 2.0?</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,1aec52d6-0082-4653-a2af-30baf1a3b6fa.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/24/WhatAreTheNewFeaturesInASPNET35AsComparedWithASPNET20.aspx</link>
      <pubDate>Wed, 24 Jun 2009 10:24:55 GMT</pubDate>
      <description>&lt;p&gt;
LINQ and Ajax are the two new features introduced in ASP.NET 3.5
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;LINQ&lt;/strong&gt;
&lt;br&gt;
-----&lt;br&gt;
LINQ (Language Integrated Query) is a set of extensions for the C# and Visual Basic
languages. It allows you to write C# or Visual Basic code that manipulates in-memory
data in much the same way you query a database.&lt;br&gt;
&lt;br&gt;
Technically, LINQ defines about 40 query operators, such as select, from, in, where,
and orderby (in C#). These operators allow you to code your query. However, there
are various types of data on which this query can be performed, and each type of data
requires a separate flavor&amp;nbsp; of LINQ.
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;strong&gt;AJAX&lt;/strong&gt;
&lt;br&gt;
-----&lt;br&gt;
Ajax(Asynchronous JavaScript and XML)is programming shorthand for a client-side technique
that allows your page to&amp;nbsp;call the server and update its content without triggering
a complete postback. Typically, an Ajax page uses client-side script code to fire
an asynchronous request behind the scenes. The server receives this request, runs
some code, and then returns the data your page needs (often as a block of XML markup).
Finally, the client-side code receives the new data and uses it to perform another
action, such as refreshing part of the page.&lt;br&gt;
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;strong&gt;Green Bits and Red Bits&lt;/strong&gt;
&lt;br&gt;
-------------------------&lt;br&gt;
Oddly enough, ASP.NET 3.5 doesn’t include a full new version of ASP.NET. Instead,
ASP.NET 3.5 is designed as a set of features that add on to .NET 2.0. The parts of
.NET that haven’t changed in .NET 3.5 are often referred to as red bits, while the
parts that have changed are called green bits. The red bits include the CLR, the ASP.NET
engine, and all the class libraries from .NET 2.0. In&lt;br&gt;
other words, if you build a new ASP.NET 3.5 application, it gets exactly the same
runtime environment as an ASP.NET 2.0 application. Additionally, all the classes you
used in .NET 2.0—including those for connecting to a database, reading and writing
files, using web controls, and so on—remain the same in .NET 3.5. The red bits also
include the features that were included in .NET 3.0, such as WCF. All the assemblies
in .NET 3.5 retain their original version numbers. That means .NET 3.5 includes a
mix of 2.0, 3.0, and 3.5 assemblies. If you’re curious when an assembly was released,
you simply need to check the version number.
&lt;/p&gt;
&lt;p align=justify&gt;
The ASP.NET 3.5 green bits consist of a small set of assemblies with new types. For
ASP.NET developers, the important new assemblies include the following:&lt;br&gt;
&lt;br&gt;
• System.Core.dll: Includes the core LINQ functionality&lt;br&gt;
• System.Data.Linq.dll: Includes the implementation for LINQ to SQL&lt;br&gt;
• System.Data.DataSetExtensions.dll:. Includes the implementation for LINQ to DataSet&lt;br&gt;
• System.Xml.Linq.dll: Includes the implementation for LINQ to XML&lt;br&gt;
• System.Web.Extensions.dll: Includes the implementation for ASP.NET AJAX and new
web controls
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;br&gt;
&lt;strong&gt;Silverlight&lt;/strong&gt;
&lt;br&gt;
-----------&lt;br&gt;
Recently, there’s been a lot of excitement about Silverlight, a new Microsoft technology
that allows a variety of browsers on a variety of operating systems to run true .NET
code. Silverlight works through a browser plug-in, and provides a subset of the .NET
Framework class library. This subset includes a slimmed-down version of WPF, the technology
that developers use to craft next-generation Windows user interfaces.
&lt;/p&gt;
&lt;p align=justify&gt;
Silverlight is all about client code—quite simply, it allows you to create richer
pages than you could with HTML, DHTML, and JavaScript alone. In many ways, Silverlight
duplicates the features and echoes the goals of Adobe Flash. By using Silverlight
in a web page, you can draw sophisticated 2D graphics, animate a scene, and play video
and other media files.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=1aec52d6-0082-4653-a2af-30baf1a3b6fa" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,1aec52d6-0082-4653-a2af-30baf1a3b6fa.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=c6eaa1ef-0b9c-44b5-bc65-36e14516623b</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,c6eaa1ef-0b9c-44b5-bc65-36e14516623b.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,c6eaa1ef-0b9c-44b5-bc65-36e14516623b.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=c6eaa1ef-0b9c-44b5-bc65-36e14516623b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Utopia-Regular" size="1">
          <p align="left">
            <font size="2">Some of the differences between ASP.NET and ASP include the </font>
            <font size="2">following:</font>
          </p>
          <p align="left">
            <font size="2">• ASP.NET features a completely object-oriented programming model,
which includes an event driven, 
<br /></font>
            <font size="2">control-based architecture that encourages code encapsulation
and code reuse.</font>
          </p>
          <p align="left">
            <font size="2">• ASP.NET gives you the ability to code in any supported .NET language
(including Visual</font>
            <font size="2">Basic, C#, J#, 
<br />
and many other languages that have third-party compilers).</font>
          </p>
          <p align="left">
            <font size="2">• ASP.NET is dedicated to high performance. ASP.NET pages and components
are compiled on</font>
            <font size="2">demand 
<br />
instead of being interpreted every time they’re used. ASP.NET also includes a finetuned </font>
            <font size="2">data
access 
<br />
model and flexible data caching to further boost performance.</font>
          </p>
        </font>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=c6eaa1ef-0b9c-44b5-bc65-36e14516623b" />
      </body>
      <title>Advantages of ASP.NET over ASP</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,c6eaa1ef-0b9c-44b5-bc65-36e14516623b.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/24/AdvantagesOfASPNETOverASP.aspx</link>
      <pubDate>Wed, 24 Jun 2009 09:46:33 GMT</pubDate>
      <description>&lt;font face=Utopia-Regular size=1&gt; 
&lt;p align=left&gt;
&lt;font size=2&gt;Some of the differences between ASP.NET and ASP include the &lt;/font&gt;&lt;font size=2&gt;following:&lt;/font&gt;
&lt;/p&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;• ASP.NET features a completely object-oriented programming model, which
includes an event driven, 
&lt;br&gt;
&lt;/font&gt;&lt;font size=2&gt;control-based architecture that encourages code encapsulation
and code reuse.&lt;/font&gt;
&lt;/p&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;• ASP.NET gives you the ability to code in any supported .NET language
(including Visual&lt;/font&gt;&lt;font size=2&gt;Basic, C#, J#, 
&lt;br&gt;
and many other languages that have third-party compilers).&lt;/font&gt;
&lt;/p&gt;
&lt;p align=left&gt;
&lt;font size=2&gt;• ASP.NET is dedicated to high performance. ASP.NET pages and components
are compiled on&lt;/font&gt;&lt;font size=2&gt;demand 
&lt;br&gt;
instead of being interpreted every time they’re used. ASP.NET also includes a finetuned &lt;/font&gt;&lt;font size=2&gt;data
access 
&lt;br&gt;
model and flexible data caching to further boost performance.&lt;/font&gt;
&lt;/p&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=c6eaa1ef-0b9c-44b5-bc65-36e14516623b" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,c6eaa1ef-0b9c-44b5-bc65-36e14516623b.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=09331c60-490e-4c77-a901-8d1254a6372e</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,09331c60-490e-4c77-a901-8d1254a6372e.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,09331c60-490e-4c77-a901-8d1254a6372e.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=09331c60-490e-4c77-a901-8d1254a6372e</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font color="#0000ff" size="2">
          <pre>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
              <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
                <font face="Verdana" size="2">      </font>
                <font face="Verdana" color="#000000" size="2">Microsoft
.net framework provide a facility for sending mail using System.Web.Mail(SMTP)<br />
      First include this using System.Web.Mail in your code,
For sending mail we are creating a function sendMail, 
<br />
      it is used for sending email. For correctly running 
<br />
      this code, please find register two dll "cdonts.dll"
and "cdosys.dll".<br />
      These two dll is microsoft dll used for sending mail.</font>
              </span>
            </span>
          </pre>
          <pre>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
              <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
              </span>
            </span> </pre>
          <pre>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
              <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">      public</span>
              <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">void</span> sendMail()
        {             <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">try</span>             {
                <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Provides
properties and methods for sending messages using the Collaboration Data Objects for 
<br />
                  Windows
2000 (CDOSYS) message component. </span>                 SmtpMail.SmtpServer= <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"SMTP
Server IP Address"</span>;                 MailMessage
msg <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> MailMessage();
                <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//
Specify the e-mail sender.</span>                 msg.From <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"rajshekhar@mail.com"</span>;<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Self
mail address</span><span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//
Set destinations for the e-mail message.</span>                 msg.To <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Send
Email Address"</span>;                 <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//
Set destinations of Carbon Copy(CC) for the e-mail message.</span>                 msg.Cc <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"CC
Email Address;                 //
Set destinations of Blind carbon copies(BCC) for the e-mail message.                 msg.Bcc
= "</span>BCC Email Address<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">";
                //
Specify the message subject.                 msg.Subject
= this.txtSubject.Text;                 //
Specify the message content.                 msg.Body
= "</span>Content of Message Assign Here<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">";
                msg.BodyFormat
= MailFormat.Text;                 //The
username for authenticating to an SMTP server using basic (clear-text) authentication.
                msg.Fields.Add(
"</span>http:<span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//schemas.microsoft.com/cdo/configuration/sendusername",<br />
                                 "itq@vmaildeliver.vsnl.com");</span>                 <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//The
password used to authenticate to an SMTP server using basic (clear-text) authentication.</span>                 msg.Fields.Add( <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span>,<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"itq.1.123"</span>);
                /%        
                Specifies
the authentication mechanism to use when authentication <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">is</span> required
to send messages<br />
               
to an SMTP service <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> a
TCP/IP network socket.                                         
                The
Secound parameter <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">in</span> smtpauthenticateis
CdoProtocolsAuthentication enumeration, It <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">is</span><br />
               
used to specify the mechanism used when authenticating to a Simple Mail Transfer Protocol(SMTP)<br />
               
service over the network.                 It
has three different type of value:                 Name            Value                Description
                ====            =====                ============
                cdoAnonymous    
0                
Do not authenticate.                 
                cdoBasic        
1                
Use basic (clear-text) authentication. The configuration 
<br />
                                                   sendusername/sendpassword
or postusername/postpassword fields<br />
                                                  are
used to specify credentials.                 
                cdoNTLM            
2              Use
NTLM authentication (Secure Password Authentication <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">in</span><br />
                                                   Microsoft®
Outlook® Express).The current process security 
<br />
                                                   context <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">is</span> used
to authenticate with the service.                 
                */                            
                msg.Fields.Add( <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span>,1);
                <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Sending
Message            </span>                 SmtpMail.Send(msg);
                
            }             <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">catch</span> (Exception
ex)             {                 ErrorMessage(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Send
Mail Process was failed!!!"</span>);                 
            }             <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">finally</span>             {
                
                SuccessMessage(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Send
Mail Process was successfull!!!"</span>);             }
        } </span>
          </pre>
          <p>
You can use this above code for sending mail using SMTP in ASP.NET.
</p>
        </font>
        <font size="2">
        </font>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=09331c60-490e-4c77-a901-8d1254a6372e" />
      </body>
      <title>How to send mail in ASP.NET using C# technology.</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,09331c60-490e-4c77-a901-8d1254a6372e.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/22/HowToSendMailInASPNETUsingCTechnology.aspx</link>
      <pubDate>Mon, 22 Jun 2009 10:26:30 GMT</pubDate>
      <description>&lt;font color=#0000ff size=2&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font face=Verdana color=#000000 size=2&gt;Microsoft
.net framework provide a facility for sending mail using System.Web.Mail(SMTP)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First include this using System.Web.Mail in your code,
For sending mail we are creating a function sendMail, 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;it is used for sending email. For correctly running 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this code, please find register two dll "cdonts.dll"
and "cdosys.dll".&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; These two dll is microsoft dll used for sending mail.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; sendMail()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;try&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Provides
properties and methods for sending messages using the Collaboration Data Objects for 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Windows
2000 (CDOSYS) message component. &lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SmtpMail.SmtpServer= &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"SMTP
Server IP Address"&lt;/span&gt;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MailMessage
msg &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; MailMessage();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//
Specify the e-mail sender.&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.From &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"rajshekhar@mail.com"&lt;/span&gt;;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Self
mail address&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//
Set destinations for the e-mail message.&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.To &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Send
Email Address"&lt;/span&gt;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//
Set destinations of Carbon Copy(CC) for the e-mail message.&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.Cc &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"CC
Email Address; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//
Set destinations of Blind carbon copies(BCC) for the e-mail message. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.Bcc
= "&lt;/span&gt;BCC Email Address&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//
Specify the message subject. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.Subject
= this.txtSubject.Text; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//
Specify the message content. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.Body
= "&lt;/span&gt;Content of Message Assign Here&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.BodyFormat
= MailFormat.Text; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//The
username for authenticating to an SMTP server using basic (clear-text) authentication.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.Fields.Add(
"&lt;/span&gt;http:&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//schemas.microsoft.com/cdo/configuration/sendusername",&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"itq@vmaildeliver.vsnl.com");&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//The
password used to authenticate to an SMTP server using basic (clear-text) authentication.&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.Fields.Add( &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://schemas.microsoft.com/cdo/configuration/sendpassword"&lt;/span&gt;,&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"itq.1.123"&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Specifies
the authentication mechanism to use when authentication &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;is&lt;/span&gt; required
to send messages&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
to an SMTP service &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; a
TCP/IP network socket. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The
Secound parameter &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;in&lt;/span&gt; smtpauthenticateis
CdoProtocolsAuthentication enumeration, It &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;is&lt;/span&gt; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
used to specify the mechanism used when authenticating to a Simple Mail Transfer Protocol(SMTP)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
service over the network. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;It
has three different type of value: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Description
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;====&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=====&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;============
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cdoAnonymous&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Do not authenticate. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cdoBasic&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Use basic (clear-text) authentication. The configuration 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;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;sendusername/sendpassword
or postusername/postpassword fields&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;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;are
used to specify credentials. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cdoNTLM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
2&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;Use
NTLM authentication (Secure Password Authentication &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;in&lt;/span&gt; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;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;Microsoft®
Outlook® Express).The current process security 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;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;context &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;is&lt;/span&gt; used
to authenticate with the service. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg.Fields.Add( &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"&lt;/span&gt;,1);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Sending
Message&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SmtpMail.Send(msg);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;catch&lt;/span&gt; (Exception
ex) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ErrorMessage(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Send
Mail Process was failed!!!"&lt;/span&gt;); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;finally&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SuccessMessage(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Send
Mail Process was successfull!!!"&lt;/span&gt;); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;
You can use this above code for sending mail using SMTP in ASP.NET.
&lt;/font&gt;&lt;font size=2&gt;&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=09331c60-490e-4c77-a901-8d1254a6372e" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,09331c60-490e-4c77-a901-8d1254a6372e.aspx</comments>
      <category>.Net</category>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=b500a8a3-4a59-44a7-840b-0b959978ca7e</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,b500a8a3-4a59-44a7-840b-0b959978ca7e.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,b500a8a3-4a59-44a7-840b-0b959978ca7e.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=b500a8a3-4a59-44a7-840b-0b959978ca7e</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">private</span>
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">void</span> Page_Load(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">object</span> sender,
System.EventArgs e)         {             DataSet
objds        <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">null</span>;
            OleDbConnection
conn <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">null</span>;
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">try</span>             {            
                <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (File.Exists(Server.MapPath(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"UploadedFare/UploadedFare.xls"</span>).Trim()))
                {
                    gblConnSting <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span> Server.MapPath<br />
                     (<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"UploadedFare/UploadedFare.xls"</span>).Trim() <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span><span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">";Extended
Properties=\"Excel 8.0;HDR=YES;\""</span>;                     conn    <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> OleDbConnection(gblConnSting);;
                                    
                    conn.Open();
                    objds <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> DataSet();
                    OleDbDataAdapter
objAdp    <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> OleDbDataAdapter(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"select
* from [Sheet1$] where 
<br />
                                                                     [Airline]
&lt;&gt; '' OR [Airline] &lt;&gt; null"</span>,conn);                     objAdp.AcceptChangesDuringFill <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">false</span>;
                    objAdp.Fill(objds);        
                    dgExcelData.DataSource    <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> objds.Tables[0].DefaultView;
                    dgExcelData.DataBind();
                }
                <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">else</span>                     Response.Write(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"&lt;B&gt;No
Fare Is Uploaded !&lt;/B&gt;"</span>);             }
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">catch</span>(Exception
ex)             {                 <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">new</span> clsErrorLogging(ex);
            }        
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">finally</span>             {
                dgExcelData.Dispose();
                objds.Dispose();
                conn.Dispose();
            }         }</span>
        </pre>
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
          </span> </pre>
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <font face="Verdana">
              <strong>Datagrid</strong>
            </font>
          </span>
        </pre>
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <font face="Verdana">
              <strong>
              </strong>
              <br />
            </font>       &lt;asp:datagrid id="dgExcelData"
runat="server" HeaderStyle-Wrap="False" BorderColor="LightGray"<br />
        BorderWidth="1px"&gt;<br />
        &lt;ItemStyle Font-Size="X-Small"
Wrap="False"&gt;&lt;/ItemStyle&gt;<br />
        &lt;HeaderStyle Font-Size="Smaller"
Font-Names="Verdana" Font-Bold="True" Wrap="False" HorizontalAlign="Center"<br />
         ForeColor="Black" VerticalAlign="Middle"
CssClass="tableheadergrey2" BackColor="Gainsboro" &gt;&lt;/HeaderStyle&gt;<br />
       &lt;/asp:datagrid&gt;</span>
        </pre>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=b500a8a3-4a59-44a7-840b-0b959978ca7e" />
      </body>
      <title>How to read data from excel sheet in tabular format using C# and show its value in datagrid?</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,b500a8a3-4a59-44a7-840b-0b959978ca7e.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/21/HowToReadDataFromExcelSheetInTabularFormatUsingCAndShowItsValueInDatagrid.aspx</link>
      <pubDate>Sun, 21 Jun 2009 10:37:58 GMT</pubDate>
      <description>&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;private&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; Page_Load(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,
System.EventArgs e) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DataSet
objds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;null&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OleDbConnection
conn &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;null&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;try&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (File.Exists(Server.MapPath(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"UploadedFare/UploadedFare.xls"&lt;/span&gt;).Trim()))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gblConnSting &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;+&lt;/span&gt; Server.MapPath&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"UploadedFare/UploadedFare.xls"&lt;/span&gt;).Trim() &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;+&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;";Extended
Properties=\"Excel 8.0;HDR=YES;\""&lt;/span&gt;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;conn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; OleDbConnection(gblConnSting);;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;conn.Open();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;objds &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; DataSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OleDbDataAdapter
objAdp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; OleDbDataAdapter(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"select
* from [Sheet1$] where 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Airline]
&amp;lt;&amp;gt; '' OR [Airline] &amp;lt;&amp;gt; null"&lt;/span&gt;,conn); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;objAdp.AcceptChangesDuringFill &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;false&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;objAdp.Fill(objds);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dgExcelData.DataSource&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; objds.Tables[0].DefaultView;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dgExcelData.DataBind();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;else&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.Write(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"&amp;lt;B&amp;gt;No
Fare Is Uploaded !&amp;lt;/B&amp;gt;"&lt;/span&gt;); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;catch&lt;/span&gt;(Exception
ex) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;new&lt;/span&gt; clsErrorLogging(ex);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;finally&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dgExcelData.Dispose();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;objds.Dispose();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;conn.Dispose();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana&gt;&lt;strong&gt;Datagrid&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana&gt;&lt;strong&gt;&lt;/strong&gt;
&lt;br&gt;
&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;asp:datagrid id="dgExcelData"
runat="server" HeaderStyle-Wrap="False" BorderColor="LightGray"&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BorderWidth="1px"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ItemStyle Font-Size="X-Small"
Wrap="False"&amp;gt;&amp;lt;/ItemStyle&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;HeaderStyle Font-Size="Smaller"
Font-Names="Verdana" Font-Bold="True" Wrap="False" HorizontalAlign="Center"&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ForeColor="Black" VerticalAlign="Middle"
CssClass="tableheadergrey2" BackColor="Gainsboro" &amp;gt;&amp;lt;/HeaderStyle&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/asp:datagrid&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=b500a8a3-4a59-44a7-840b-0b959978ca7e" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,b500a8a3-4a59-44a7-840b-0b959978ca7e.aspx</comments>
      <category>asp.net</category>
      <category>C#</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=217e2f7f-2f59-4658-8b2b-7c047f3e6861</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,217e2f7f-2f59-4658-8b2b-7c047f3e6861.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,217e2f7f-2f59-4658-8b2b-7c047f3e6861.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=217e2f7f-2f59-4658-8b2b-7c047f3e6861</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font color="#0000ff" size="2">
          <p>
            <font color="#000000">we can attach javascript in code behind using this style</font>
          </p>
          <p>
 
</p>
          <p>
private
</p>
        </font>
        <font color="#000000" size="2">
        </font>
        <font color="#0000ff" size="2">void</font>
        <font color="#000000" size="2"> Page_Load(</font>
        <font color="#0000ff" size="2">object</font>
        <font size="2">
          <font color="#000000"> sender,
System.EventArgs e) </font>
          <p>
{
</p>
          <p>
System.Text.StringBuilder StrValidation = 
</p>
        </font>
        <font color="#0000ff" size="2">new</font>
        <font size="2"> System.Text.StringBuilder();
<p></p></font>
        <font color="#008000" size="2">//Appending javascript in this string builder
</font>
        <font size="2">
          <p>
StrValidation.AppendFormat(
</p>
        </font>
        <font color="#800000" size="2">"{0}"</font>
        <font size="2">,</font>
        <font color="#800000" size="2">@"&lt;script
language='javascript'&gt;
<p>
function validateForm()
</p><p>
{
</p><p>
if (isBlank(document.baseForm.txtEmail.value)) {
</p><p>
alert('Email ID can not be blank1 !');
</p><p>
document.baseForm.txtEmail.focus();
</p><p>
return false;
</p><p>
} 
</p><p></p><p>
if (isBlank(document.baseForm.txtSubject.value)) {
</p><p>
alert('Subject can not be blank !');
</p><p>
document.baseForm.txtSubject.focus();
</p><p>
return false;
</p><p>
} 
</p><p>
if (isBlank(document.baseForm.txtMessage.value)) {
</p><p>
alert('Please Enter Message in Message Box !');
</p><p>
document.baseForm.txtMessage.focus();
</p><p>
return false;
</p><p>
} 
</p><p>
return true;
</p><p>
} &lt;/script&gt;"
</p></font>
        <font size="2">
          <font color="#000000">);</font>
          <p>
Page.RegisterClientScriptBlock(
</p>
        </font>
        <font color="#800000" size="2">"AddValidation"</font>
        <font size="2">,StrValidation.ToString());
<p></p><p></p></font>
        <font color="#0000ff" size="2">this</font>
        <font size="2">.ibtnSubmit.Attributes.Add(</font>
        <font color="#800000" size="2">"onClick"</font>
        <font size="2">, </font>
        <font color="#800000" size="2">"return
validateForm();"</font>
        <font size="2">);
</font>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=217e2f7f-2f59-4658-8b2b-7c047f3e6861" />
      </body>
      <title>How we can attach javascript code to a button using code behind in asp.net using C#.</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,217e2f7f-2f59-4658-8b2b-7c047f3e6861.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/21/HowWeCanAttachJavascriptCodeToAButtonUsingCodeBehindInAspnetUsingC.aspx</link>
      <pubDate>Sun, 21 Jun 2009 10:21:26 GMT</pubDate>
      <description>&lt;font color=#0000ff size=2&gt; 
&lt;p&gt;
&lt;font color=#000000&gt;we can attach javascript in code behind using this style&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
private
&lt;/font&gt;&lt;font color=#000000 size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font color=#000000 size=2&gt; Page_Load(&lt;/font&gt;&lt;font color=#0000ff size=2&gt;object&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt; sender,
System.EventArgs e) &lt;/font&gt;&gt;
&lt;p&gt;
{
&lt;/p&gt;
&lt;p&gt;
System.Text.StringBuilder StrValidation = 
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;new&lt;/font&gt;&lt;font size=2&gt; System.Text.StringBuilder();&gt;
&lt;p&gt;
&lt;/font&gt;&lt;font color=#008000 size=2&gt;//Appending javascript in this string builder&gt;
&lt;/font&gt;&lt;font size=2&gt; 
&lt;p&gt;
StrValidation.AppendFormat(
&lt;/font&gt;&lt;font color=#800000 size=2&gt;"{0}"&lt;/font&gt;&lt;font size=2&gt;,&lt;/font&gt;&lt;font color=#800000 size=2&gt;@"&amp;lt;script
language='javascript'&amp;gt;&gt;
&lt;p&gt;
function validateForm()
&lt;/p&gt;
&lt;p&gt;
{
&lt;/p&gt;
&lt;p&gt;
if (isBlank(document.baseForm.txtEmail.value)) {
&lt;/p&gt;
&lt;p&gt;
alert('Email ID can not be blank1 !');
&lt;/p&gt;
&lt;p&gt;
document.baseForm.txtEmail.focus();
&lt;/p&gt;
&lt;p&gt;
return false;
&lt;/p&gt;
&lt;p&gt;
} 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
if (isBlank(document.baseForm.txtSubject.value)) {
&lt;/p&gt;
&lt;p&gt;
alert('Subject can not be blank !');
&lt;/p&gt;
&lt;p&gt;
document.baseForm.txtSubject.focus();
&lt;/p&gt;
&lt;p&gt;
return false;
&lt;/p&gt;
&lt;p&gt;
} 
&lt;/p&gt;
&lt;p&gt;
if (isBlank(document.baseForm.txtMessage.value)) {
&lt;/p&gt;
&lt;p&gt;
alert('Please Enter Message in Message Box !');
&lt;/p&gt;
&lt;p&gt;
document.baseForm.txtMessage.focus();
&lt;/p&gt;
&lt;p&gt;
return false;
&lt;/p&gt;
&lt;p&gt;
} 
&lt;/p&gt;
&lt;p&gt;
return true;
&lt;/p&gt;
&lt;p&gt;
} &amp;lt;/script&amp;gt;"
&lt;/font&gt;&lt;font size=2&gt;&lt;font color=#000000&gt;);&lt;/font&gt;&gt;
&lt;p&gt;
Page.RegisterClientScriptBlock(
&lt;/font&gt;&lt;font color=#800000 size=2&gt;"AddValidation"&lt;/font&gt;&lt;font size=2&gt;,StrValidation.ToString());&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;this&lt;/font&gt;&lt;font size=2&gt;.ibtnSubmit.Attributes.Add(&lt;/font&gt;&lt;font color=#800000 size=2&gt;"onClick"&lt;/font&gt;&lt;font size=2&gt;, &lt;/font&gt;&lt;font color=#800000 size=2&gt;"return
validateForm();"&lt;/font&gt;&lt;font size=2&gt;);&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=217e2f7f-2f59-4658-8b2b-7c047f3e6861" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,217e2f7f-2f59-4658-8b2b-7c047f3e6861.aspx</comments>
      <category>asp.net</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=454046f7-983d-443e-adc0-3d6ca6608170</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,454046f7-983d-443e-adc0-3d6ca6608170.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,454046f7-983d-443e-adc0-3d6ca6608170.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=454046f7-983d-443e-adc0-3d6ca6608170</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font size="2">
          <p>
          </p>
        </font>
        <font color="#0000ff" size="2">private</font>
        <font size="2">
        </font>
        <font color="#0000ff" size="2">void</font>
        <font size="2"> Page_Load(</font>
        <font color="#0000ff" size="2">object</font>
        <font size="2"> sender,
System.EventArgs e) 
<p>
{
</p><p></p></font>
        <font color="#0000ff" size="2">      base</font>
        <font size="2">.OuterTable.HorizontalAlign
= HorizontalAlign.Center;
<p></p></font>
        <font color="#0000ff" size="2">      base</font>
        <font size="2">.ContentBar.VerticalAlign
= VerticalAlign.Top;
<p>
}
</p></font>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=454046f7-983d-443e-adc0-3d6ca6608170" />
      </body>
      <title>How you did page alignment using C# coding in ASP.NET.</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,454046f7-983d-443e-adc0-3d6ca6608170.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/06/21/HowYouDidPageAlignmentUsingCCodingInASPNET.aspx</link>
      <pubDate>Sun, 21 Jun 2009 10:18:50 GMT</pubDate>
      <description>&lt;font size=2&gt; 
&lt;p&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;private&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font size=2&gt; Page_Load(&lt;/font&gt;&lt;font color=#0000ff size=2&gt;object&lt;/font&gt;&lt;font size=2&gt; sender,
System.EventArgs e) &gt;
&lt;p&gt;
{
&lt;/p&gt;
&lt;p&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;base&lt;/font&gt;&lt;font size=2&gt;.OuterTable.HorizontalAlign
= HorizontalAlign.Center;&gt;
&lt;p&gt;
&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;base&lt;/font&gt;&lt;font size=2&gt;.ContentBar.VerticalAlign
= VerticalAlign.Top;&gt;
&lt;p&gt;
}
&lt;/p&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=454046f7-983d-443e-adc0-3d6ca6608170" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,454046f7-983d-443e-adc0-3d6ca6608170.aspx</comments>
      <category>asp.net</category>
    </item>
  </channel>
</rss>