<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4600918724058045760</id><updated>2011-12-25T08:03:49.125-08:00</updated><title type='text'>.NetBoy</title><subtitle type='html'>A blog related to .Net related concepts and problems.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-3120293614228835943</id><published>2008-10-16T11:59:00.000-07:00</published><updated>2008-10-16T12:02:39.042-07:00</updated><title type='text'>JAVA SCRIPT for showing message in status bar</title><content type='html'>message     = "Welcome to Indira Gandhi National Open University^" +                "&lt;a href="http://www.ignou.ac.in/"&gt;http://www.ignou.ac.in&lt;/a&gt;  is the official website of Indira Gandhi National Open University.^" +                 "^" &lt;br /&gt;scrollSpeed = 25 &lt;br /&gt;lineDelay   = 1500&lt;br /&gt; txt         = ""&lt;br /&gt;  function scrollText(pos)&lt;br /&gt; {    if (message.charAt(pos) != '^')&lt;br /&gt;{      txt    = txt + message.charAt(pos)      status = txt      pauze  = scrollSpeed &lt;br /&gt;  }  &lt;br /&gt; else&lt;br /&gt;{      pauze = lineDelay      txt   = ""      if (pos == message.length-1) pos = -1  &lt;br /&gt; }    pos++    setTimeout("scrollText('"+pos+"')",pauze) &lt;br /&gt;}&lt;br /&gt;scrollText(0)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-3120293614228835943?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/3120293614228835943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=3120293614228835943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/3120293614228835943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/3120293614228835943'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/10/java-script-for-showing-message-in.html' title='JAVA SCRIPT for showing message in status bar'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-3252436813842990339</id><published>2008-04-06T00:26:00.000-07:00</published><updated>2008-04-06T00:40:47.898-07:00</updated><title type='text'>how to create columns dynamically in a grid view</title><content type='html'>&lt;span id="intelliTXT"&gt;&lt;ul class="download"&gt;&lt;li&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/dynamic_Columns_in_Grid/dynamic_Columns_in_Grid_src.zip"&gt;Download source files - 6 Kb&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;img alt="Sample Image - dynamic_Columns_in_Grid.jpg" src="http://www.codeproject.com/KB/aspnet/dynamic_Columns_in_Grid/dynamic_Columns_in_Grid.jpg" height="432" width="576" /&gt;&lt;/p&gt; &lt;h2&gt;Introduction&lt;/h2&gt; &lt;p&gt;This article describes about how to create columns dynamically in a grid view.&lt;br /&gt;Many times we have the requirement where we have to create columns dynamically.&lt;br /&gt;This article describes you about the dynamic loading of data using the DataTable as the datasource.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;b&gt;Details of the Grid&lt;/b&gt;&lt;/strong&gt;&lt;/p&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;/span&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Let’s have a look at the code to understand better.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Create a gridview in the page,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ol style="margin-top: 0in;" type="1"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Drag and drop the GridView on to the page&lt;/span&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ol&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt 1in;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Or&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ol style="margin-top: 0in;" type="1"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Manually type GridView definition in the page.&lt;/span&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ol&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;&lt;span style="font-size: 10pt; color: maroon; font-family: 'Courier New';"&gt;table&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt; &lt;span style="color: red;"&gt;border&lt;span style="color: blue;"&gt;="0" &lt;span style="color: red;"&gt;cellpadding&lt;span style="color: blue;"&gt;="0" &lt;span style="color: red;"&gt;cellspacing&lt;span style="color: blue;"&gt;="0"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: blue;"&gt;&lt;&lt;span style="color: maroon;"&gt;tr&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    &lt;span style=""&gt;            &lt;span style="color: blue;"&gt;&lt;&lt;span style="color: maroon;"&gt;td&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;                    &lt;span style="color: blue;"&gt;&lt;&lt;span style="color: maroon;"&gt;strong&lt;span style="color: blue;"&gt;&gt;Dynamic Grid&lt;span style="color: blue;"&gt;&lt;/&lt;span style="color: maroon;"&gt;strong&lt;span style="color: blue;"&gt;&gt;&lt;/&lt;span style="color: maroon;"&gt;td&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: blue;"&gt;&lt;/&lt;span style="color: maroon;"&gt;tr&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: blue;"&gt;&lt;&lt;span style="color: maroon;"&gt;tr&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;                &lt;span style="color: blue;"&gt;&lt;&lt;span style="color: maroon;"&gt;td&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;                    &lt;span style="color: blue;"&gt;&lt;&lt;span style="color: maroon;"&gt;asp&lt;span style="color: blue;"&gt;:&lt;span style="color: maroon;"&gt;GridView &lt;span style="color: red;"&gt;ID&lt;span style="color: blue;"&gt;="GrdDynamic" &lt;span style="color: red;"&gt;runat&lt;span style="color: blue;"&gt;="server" &lt;span style="color: red;"&gt;AutoGenerateColumns&lt;span style="color: blue;"&gt;="False"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;                    &lt;span style="color: blue;"&gt;&lt;&lt;span style="color: maroon;"&gt;Columns&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    &lt;span style=""&gt;                &lt;span style="color: blue;"&gt;&lt;/&lt;span style="color: maroon;"&gt;Columns&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;                    &lt;span style="color: blue;"&gt;&lt;/&lt;span style="color: maroon;"&gt;asp&lt;span style="color: blue;"&gt;:&lt;span style="color: maroon;"&gt;GridView&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;                    &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;                &lt;span style="color: blue;"&gt;&lt;/&lt;span style="color: maroon;"&gt;td&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: blue;"&gt;&lt;/&lt;span style="color: maroon;"&gt;tr&lt;span style="color: blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: blue;"&gt;&lt;/&lt;span style="color: maroon;"&gt;table&lt;span style="color: blue;"&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;With this we are done with creating a GridView in the page. Let’s move on to the code- beside to understand the background history of the page.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;public&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt; &lt;span style="color: blue;"&gt;partial &lt;span style="color: blue;"&gt;class &lt;span style="color: teal;"&gt;_Default : System.Web.UI.&lt;span style="color: teal;"&gt;Page&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    #region&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt; constants&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    &lt;span style="color: blue;"&gt;const &lt;span style="color: blue;"&gt;string NAME = &lt;span style="color: maroon;"&gt;"NAME";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    &lt;span style="color: blue;"&gt;const &lt;span style="color: blue;"&gt;string ID = &lt;span style="color: maroon;"&gt;"ID";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    #endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    &lt;span style="color: blue;"&gt;protected &lt;span style="color: blue;"&gt;void Page_Load(&lt;span style="color: blue;"&gt;object sender, &lt;span style="color: teal;"&gt;EventArgs e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        loadDynamicGrid();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    &lt;span style="color: blue;"&gt;private &lt;span style="color: blue;"&gt;void loadDynamicGrid()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        #region&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt; Code for preparing the DataTable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Create an instance of DataTable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: teal;"&gt;DataTable dt = &lt;span style="color: blue;"&gt;new &lt;span style="color: teal;"&gt;DataTable();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Create an ID column for adding to the Datatable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: teal;"&gt;DataColumn dcol = &lt;span style="color: blue;"&gt;new &lt;span style="color: teal;"&gt;DataColumn(ID ,&lt;span style="color: blue;"&gt;typeof(System.&lt;span style="color: teal;"&gt;Int32));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        dcol.AutoIncrement = &lt;span style="color: blue;"&gt;true;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        dt.Columns.Add(dcol);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Create an ID column for adding to the Datatable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        dcol = &lt;span style="color: blue;"&gt;new &lt;span style="color: teal;"&gt;DataColumn(NAME, &lt;span style="color: blue;"&gt;typeof(System.&lt;span style="color: teal;"&gt;String));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        dt.Columns.Add(dcol);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Now add data for dynamic columns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//As the first column is auto-increment, we do not have to add any thing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Let's add some data to the second column.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: blue;"&gt;for (&lt;span style="color: blue;"&gt;int nIndex = 0; nIndex &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: green;"&gt;//Create a new row&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: teal;"&gt;DataRow drow = dt.NewRow();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: green;"&gt;//Initialize the row data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            drow[NAME] = &lt;span style="color: maroon;"&gt;"Row-" + &lt;span style="color: teal;"&gt;Convert.ToString((nIndex + 1));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: green;"&gt;//Add the row to the datatable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            dt.Rows.Add(drow);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        #endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Iterate through the columns of the datatable to set the data bound field dynamically.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: blue;"&gt;foreach (&lt;span style="color: teal;"&gt;DataColumn col &lt;span style="color: blue;"&gt;in dt.Columns)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: green;"&gt;//Declare the bound field and allocate memory for the bound field.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: teal;"&gt;BoundField bfield = &lt;span style="color: blue;"&gt;new &lt;span style="color: teal;"&gt;BoundField();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: green;"&gt;//Initalize the DataField value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            bfield.DataField = col.ColumnName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: green;"&gt;//Initialize the HeaderText field value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            bfield.HeaderText = col.ColumnName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            &lt;span style="color: green;"&gt;//Add the newly created bound field to the GridView.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;            GrdDynamic.Columns.Add(bfield);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Initialize the DataSource&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        GrdDynamic.DataSource = dt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;        &lt;span style="color: green;"&gt;//Bind the datatable with the GridView.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;     &lt;span style=""&gt;   GrdDynamic.DataBind();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;    }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Let’s start dissecting right from the top, &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;After the page declaration, I have created 2 constants which represent the fields in the outputted grid. After that I am calling the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;loadDynamicGrid() &lt;span style="font-family:Times New Roman;font-size:100%;"&gt;method which will actually work for you. In this method, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ol style="margin-top: 0in;" type="1"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Creating a DataTable which will hold the table definition and data for the GridView. This table is used as a DataSource for the GridView&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Once the DataTable is created, I am creating 2 columns, ID &amp;amp; Name of type integer (ID) and string (Name) and adding them to the DataTable.&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Since the table structure is ready, I am generating some sample data by iterating through a loop for displaying in the GridView.&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Now I am iterating through the Columns of the DataTable to create the dynamic columns in the Gridview.&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;The logic behind creating dynamic column starts by creating a &lt;/span&gt;&lt;span style="font-size: 10pt; color: teal; font-family: 'Courier New';"&gt;BoundField &lt;span style="font-family:Times New Roman;font-size:100%;"&gt;instance.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Once the &lt;/span&gt;&lt;span style="font-size: 10pt; color: teal; font-family: 'Courier New';"&gt;BoundField &lt;span style="font-family:Times New Roman;font-size:100%;"&gt;is created, I am initializing the DataField and HeaderText with the column name of the DataTable.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;After the &lt;/span&gt;&lt;span style="font-size: 10pt; color: teal; font-family: 'Courier New';"&gt;BoundField’s &lt;span style="font-family:Times New Roman;font-size:100%;"&gt;basic necessary properties are defined. I am adding the newly created bound field to the GridView control&lt;/span&gt;&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Once the creation of the dynamic columns is completed, I am assigning the DataSource of the GridView and calling the DataBind method to load the GridView with data dynamically.&lt;/span&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ol&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;That’s all your dynamic GridView is ready. I hope this information would be helpful.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;In my next article, I will describe about how to create TemplateColumn dynamically. By now, you must have understand how easy is creating BoundColumn. To create any other type of columns like &lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: 'Courier New';"&gt;asp&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;:&lt;span style="font-size: 10pt; color: maroon; font-family: 'Courier New';"&gt;ButtonField, asp&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;:&lt;span style="font-size: 10pt; color: maroon; font-family: 'Courier New';"&gt;CheckBoxField, asp&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;:&lt;span style="font-size: 10pt; color: maroon; font-family: 'Courier New';"&gt;CommandField, asp&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;:&lt;span style="font-size: 10pt; color: maroon; font-family: 'Courier New';"&gt;HyperLinkField, asp&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;:&lt;span style="font-size: 10pt; color: maroon; font-family: 'Courier New';"&gt;ImageField&lt;span style="font-family:Times New Roman;font-size:100%;"&gt; the logic &amp;amp; strategy is same, except the template column.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 12pt; font-family: 'Times New Roman';"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;Enjoy programming.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-3252436813842990339?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/3252436813842990339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=3252436813842990339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/3252436813842990339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/3252436813842990339'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/04/how-to-create-columns-dynamically-in.html' title='how to create columns dynamically in a grid view'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-4382202313905026542</id><published>2008-01-26T03:35:00.000-08:00</published><updated>2008-01-26T03:38:12.786-08:00</updated><title type='text'>Obtaining BLOB Values from a Database</title><content type='html'>&lt;p style="font-family: trebuchet ms;"&gt;By default, the &lt;b&gt;DataReader&lt;/b&gt; loads incoming data as a row as soon as an  entire row of data is available. Binary large objects (BLOBs) need different  treatment, however, because they can contain gigabytes of data that cannot be  contained in a single row. The &lt;b&gt;Command.ExecuteReader&lt;/b&gt; method has an  overload that will take a &lt;mshelp:link tabindex="0" keywords="T:System.Data.CommandBehavior"&gt;CommandBehavior&lt;/MSHelp:link&gt; argument  to modify the default behavior of the &lt;b&gt;DataReader&lt;/b&gt;. You can pass  &lt;mshelp:link tabindex="0" keywords="F:System.Data.CommandBehavior.SequentialAccess"&gt;SequentialAccess&lt;/MSHelp:link&gt;  to the &lt;b&gt;ExecuteReader&lt;/b&gt; method to modify the default behavior of the  &lt;b&gt;DataReader&lt;/b&gt; so that instead of loading rows of data, it will load data  sequentially as it is received. This is ideal for loading BLOBs or other large  data structures. Note that this behavior may depend on your data source. For  example, returning a BLOB from Microsoft Access will load the entire BLOB being  loaded into memory, rather than sequentially as it is received.&lt;/p&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0); font-family: trebuchet ms;"&gt;Example---------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;The following example returns the publisher ID and logo from the &lt;/span&gt;&lt;b style="font-family: trebuchet ms;"&gt;pubs&lt;/b&gt;&lt;span style="font-family: trebuchet ms;"&gt;  sample database in Microsoft SQL Server 2000. The publisher ID  (&lt;/span&gt;&lt;code style="font-family: trebuchet ms;"&gt;pub_id&lt;/code&gt;&lt;span style="font-family: trebuchet ms;"&gt;) is a character field, and the logo is an image, which is a  BLOB. Because the &lt;/span&gt;&lt;b style="font-family: trebuchet ms;"&gt;logo&lt;/b&gt;&lt;span style="font-family: trebuchet ms;"&gt; field is a bitmap, the example returns binary data  using &lt;/span&gt;&lt;b style="font-family: trebuchet ms;"&gt;GetBytes&lt;/b&gt;&lt;span style="font-family: trebuchet ms;"&gt;. Notice that the publisher ID is accessed for the current  row of data before the logo, because the fields must be accessed sequentially.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// Assumes that connection is a valid SqlConnection object.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;SqlCommand command = new SqlCommand(&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  "SELECT pub_id, logo FROM pub_info", connection);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// Writes the BLOB to a file (*.bmp).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;FileStream stream;                          &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// Streams the BLOB to the FileStream object.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;BinaryWriter writer;                        &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// Size of the BLOB buffer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;int bufferSize = 100;                   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// The BLOB byte[] buffer to be filled by GetBytes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;byte[] outByte = new byte[bufferSize];  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// The bytes returned from GetBytes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;long retval;                            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// The starting position in the BLOB output.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;long startIndex = 0;                    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// The publisher id to use in the file name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;string pubID = "";                     &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// Open the connection and read data into the DataReader.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;connection.Open();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;SqlDataReader reader = command.ExecuteReader(CommandBehavior.SequentialAccess);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;while (reader.Read())&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  // Get the publisher id, which must occur before getting the logo.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  pubID = reader.GetString(0);  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  // Create a file to hold the output.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  stream = new FileStream(&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;    "logo" + pubID + ".bmp", FileMode.OpenOrCreate, FileAccess.Write);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  writer = new BinaryWriter(stream);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  // Reset the starting byte for the new BLOB.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  startIndex = 0;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  // Read bytes into outByte[] and retain the number of bytes returned.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  retval = reader.GetBytes(1, startIndex, outByte, 0, bufferSize);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  // Continue while there are bytes beyond the size of the buffer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  while (retval == bufferSize)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;    writer.Write(outByte);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;    writer.Flush();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;    // Reposition start index to end of last buffer and fill buffer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;    startIndex += bufferSize;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;    retval = reader.GetBytes(1, startIndex, outByte, 0, bufferSize);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  // Write the remaining buffer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  writer.Write(outByte, 0, (int)retval - 1);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  writer.Flush();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  // Close the output file.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  writer.Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  stream.Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;// Close the reader and the connection.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;reader.Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;connection.Close();&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-4382202313905026542?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/4382202313905026542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=4382202313905026542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/4382202313905026542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/4382202313905026542'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/01/obtaining-blob-values-from-database.html' title='Obtaining BLOB Values from a Database'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-3516842569503568650</id><published>2008-01-15T10:08:00.000-08:00</published><updated>2008-01-15T10:09:43.458-08:00</updated><title type='text'>Generating Excel Report in ASP.NET 2.0</title><content type='html'>&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /&gt;&lt;h2&gt;Introduction&lt;/h2&gt; &lt;p class="ArticleText"&gt;Excel is such a powerful tool that almost all companies make extensive use of it for analyzing data. Moreover, the internet is not as it was 10 years ago. Almost all pages that are out there on the internet are dynamic ones, that is, interacts with a database in backend to produce results. Sometimes, data that are displayed, if made available on in an Excel file, proper analysis of the data often helps in making more accurate decisions by using Excel features. In this tutorial, we will learn how to interact with Excel files, both reading and writing. You can download &lt;a href="http://www.beansoftware.com/ASP.NET-Tutorials/Examples/Excel-Report.zip"&gt; Excel Reports Example ASP.NET Project&lt;/a&gt; associated with this tutorial.&lt;/p&gt; &lt;h2&gt;Excel - ASP.NET Scenarios&lt;/h2&gt; &lt;p class="ArticleText"&gt;For the purpose of this tutorial, an Excel sheet had been prepared that holds record of students  and their respective marks in subjects.  Please note that these records are fictitious and had been input randomly.&lt;/p&gt; &lt;div align="center"&gt;&lt;table style="width: 167.65pt; border-collapse: collapse;" id="table1" border="0" cellpadding="0" cellspacing="0" width="224"&gt;  &lt;tbody&gt;&lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: center;" align="center"&gt;&lt;b&gt;   &lt;span&gt;StudentId&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;&lt;b&gt;   &lt;span style="font-size: 10pt; font-family: Arial;"&gt;StudentName&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10001&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;John    Thomas&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10002&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Terry Lane&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10003&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Anne Marie&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10004&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Tom Sawyer&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10005&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Derek Ince&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10006&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Emerson    Boyce&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10007&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Thommas    Kolka&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10008&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Edison    Hall&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10009&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Teddy    Harewood&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10010&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 110.7pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="148"&gt;   &lt;p class="ArticleText"&gt;   &lt;span&gt;Williams    Yorkshire&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p class="ArticleText"&gt;Fig 1.  Table holding information for students&lt;/p&gt;  &lt;/div&gt;  &lt;div align="center"&gt;&lt;table style="width: 104.95pt; border-collapse: collapse;" id="table2" border="0" cellpadding="0" cellspacing="0" width="140"&gt;   &lt;tbody&gt;&lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText"&gt;&lt;b&gt;    &lt;span style="font-size: 10pt; font-family: Arial;"&gt;StudentId&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText"&gt;&lt;b&gt;    &lt;span style="font-size: 10pt; font-family: Arial;"&gt;Marks&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10001&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;50&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10002&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;60&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10003&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;75&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10004&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;80&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10005&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;90&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10006&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;95&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10007&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;100&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10008&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;20&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10009&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;48&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr style="height: 12.75pt;"&gt;    &lt;td style="padding: 0cm 5.4pt; width: 56.95pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="76"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;10010&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;    &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;    &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;    &lt;span&gt;66&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="ArticleText"&gt;Fig 2.  Table holding student marks in Mathematics subject&lt;/p&gt;&lt;/div&gt;   &lt;div align="center"&gt;&lt;table style="width: 110.5pt; border-collapse: collapse;" id="table3" border="0" cellpadding="0" cellspacing="0" width="147"&gt;  &lt;tbody&gt;&lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: center;" align="center"&gt;&lt;b&gt;   &lt;span&gt;StudentId&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: center;" align="center"&gt;&lt;b&gt;   &lt;span&gt;Marks&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10001&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;30&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10002&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;25&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10003&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;65&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10004&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;78&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10005&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;95&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10006&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;64&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10007&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;32&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10008&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;88&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10009&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;95&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0cm 5.4pt; width: 62.5pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="83"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;10010&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;   &lt;td style="padding: 0cm 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="ArticleText" style="text-align: right;" align="right"&gt;   &lt;span&gt;99&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p class="ArticleText"&gt;Fig 3. Table holding student marks in Geography subject&lt;/p&gt; &lt;/div&gt; &lt;h2&gt;Interacting with Excel&lt;/h2&gt; &lt;p class="ArticleText"&gt;Fortunately, there are COM objects that are available to interact with the Excel file. Also, we can make use of the OleDB class to treat the Excel file as a simple table. In this way, we can fire SQL queries to the Excel file so that we can retrieve data from the sheets. An analogy can be made to a database. The Excel Workbook is considered as the Database while the Sheets are considered as tables. Microsoft Excel 11.0 Object Library should be added as Reference to get the features for interacting with Excel.&lt;/p&gt; &lt;div align="center"&gt;&lt;p class="ArticleText"&gt;&lt;img src="http://www.beansoftware.com/ASP.NET-Tutorials/Images/Excel-Reporting-Add-Reference.jpg" /&gt;&lt;br /&gt;Fig 4. Adding Microsoft Excel 11.0 Object Library as Reference&lt;/p&gt;&lt;/div&gt; &lt;p class="ArticleText"&gt;The Excel file is then added to the DataSource folder in ASAP.NET to be interacted with.   To connect to a certain database, a connection string is needed.  The same thing applies for Excel.   The following is a key added in the Web.Config file for future reference.&lt;/p&gt;  &lt;p class="ArticleText"&gt; &lt;span style="color: blue;"&gt; &lt;&lt;/span&gt;&lt;span style="color: maroon;"&gt;add&lt;/span&gt;&lt;span style="color: blue;"&gt; &lt;/span&gt; &lt;span style="color: red;"&gt; name&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;&lt;span&gt;"&lt;span style="color: blue;"&gt;ExcelConnection&lt;/span&gt;"&lt;span style="color: blue;"&gt; &lt;/span&gt;&lt;span style="color: red;"&gt;connectionString&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;Provider=Microsoft.Jet.Oledb.4.0;Data  Source=|DataDirectory|\SchoolMgt.xls;Extended Properties=Excel 8.0&lt;/span&gt;"&lt;span style="color: blue;"&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="ArticleText"&gt;Note that our Excel file which contains the necessary data will be SchoolMgt.xls,  as written in the connection string.&lt;/p&gt; &lt;div align="center"&gt;&lt;p class="ArticleText"&gt;&lt;img src="http://www.beansoftware.com/ASP.NET-Tutorials/Images/Excel-Reporting-Example.jpg" /&gt;&lt;br /&gt;Fig 5. Excel file illustrating Excel Book containing data sheets with data&lt;/p&gt;&lt;/div&gt; &lt;h2&gt;Reading data from Excel sheets&lt;/h2&gt; &lt;p class="ArticleText"&gt;Let us build an interface for getting data from the Excel file.&lt;/p&gt; &lt;div align="center"&gt;&lt;p class="ArticleText"&gt;&lt;img src="http://www.beansoftware.com/ASP.NET-Tutorials/Images/Excel-Reporting-Interface.jpg" /&gt;&lt;br /&gt;Fig 6. Interface to search records per table selected.&lt;/p&gt;&lt;/div&gt; &lt;p class="ArticleText"&gt;It is important to import the following:&lt;/p&gt; &lt;p class="ArticleText"&gt;&lt;span style="color: blue;"&gt; Imports&lt;/span&gt;&lt;span&gt;  System.Data.OleDb&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt; Imports&lt;/span&gt;  System.Data&lt;/p&gt; &lt;p class="ArticleText"&gt;The following code creates the connection and builds the query based on the selected table.&lt;/p&gt; &lt;p class="ArticleText"&gt;&lt;span style="color: blue;"&gt; Protected&lt;/span&gt;&lt;span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt; btnSearch_Click(&lt;span style="color: blue;"&gt;ByVal&lt;/span&gt;  sender &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Object&lt;/span&gt;, &lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; e &lt;span style="color: blue;"&gt;As&lt;/span&gt;  System.EventArgs) &lt;span style="color: blue;"&gt;Handles&lt;/span&gt; btnSearch.Click&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Try&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; strExcelConn &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt; =  System.Configuration.ConfigurationManager.ConnectionStrings.Item(&lt;span style="color: maroon;"&gt;"ExcelConnection"&lt;/span&gt;).ToString()&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; dbConn &lt;span style="color: blue;"&gt; As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; OleDbConnection(strExcelConn)&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; strSQL &lt;span style="color: blue;"&gt; As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             strSQL = &lt;span style="color: maroon;"&gt;"SELECT * FROM ["&lt;/span&gt; &amp;amp;  cmbSheets.SelectedItem.ToString() &amp;amp; &lt;span style="color: maroon;"&gt;"$]"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: maroon;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             dbConn.Open()&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; cmd &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; OleDbCommand(strSQL, dbConn)&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; dsExcel &lt;span style="color: blue;"&gt; As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; DataSet&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; daExcel &lt;span style="color: blue;"&gt; As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; OleDbDataAdapter(cmd)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             daExcel.Fill(dsExcel)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             dgResults.DataSource = dsExcel&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             dgResults.DataBind()&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Catch&lt;/span&gt; ex &lt;span style="color: blue;"&gt;As&lt;/span&gt;  Exception&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Throw&lt;/span&gt; ex&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Try&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt; End&lt;/span&gt;&lt;span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="ArticleText"&gt;Please note that the table name in the SELECT query should be in the format [TableName$],  which the square brackets and the dollar sign at the end.&lt;/p&gt; &lt;h2&gt;Playing with SELECT statements&lt;/h2&gt; &lt;p class="ArticleText"&gt;As you have guessed, the Excel file has turned out to be a normal database.   The transparency that the OleDB connection had made is exceptional.   Also, note that the first row is taken to contain field names for the columns.&lt;/p&gt; &lt;p class="ArticleText"&gt;Now, let us get the marks of the students in Mathematics, Geography and Total,  sorted in Descending order.&lt;/p&gt; &lt;p class="ArticleText"&gt;&lt;span style="color: blue;"&gt; Protected&lt;/span&gt;&lt;span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt; btnGenerateReport_Click(&lt;span style="color: blue;"&gt;ByVal&lt;/span&gt;  sender &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Object&lt;/span&gt;, &lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; e &lt;span style="color: blue;"&gt;As&lt;/span&gt;  System.EventArgs) &lt;span style="color: blue;"&gt;Handles&lt;/span&gt;  btnGenerateReport.Click&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Try&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Dim&lt;/span&gt;&lt;span&gt;  strExcelConn &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;  = System.Configuration.ConfigurationManager.ConnectionStrings.Item(&lt;span style="color: maroon;"&gt;"ExcelConnection"&lt;/span&gt;).ToString()&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Dim&lt;/span&gt;&lt;span&gt;  dbConn &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt;  OleDbConnection(strExcelConn)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Dim&lt;/span&gt;&lt;span&gt;  strSQL &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span&gt;strSQL = &lt;span style="color: maroon;"&gt;"SELECT S.StudentId, S.StudentName, M.Marks, G.Marks,  (M.Marks+G.Marks) AS Total "&lt;/span&gt;&amp;amp; _&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                      &lt;span style="color: maroon;"&gt;"FROM [Students$] S,  [Mathematics$] M, [Geography$] G "&lt;/span&gt;&amp;amp; _&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                      &lt;span style="color: maroon;"&gt;"WHERE(S.StudentId = M.StudentId  And S.StudentId = G.StudentId) "&lt;/span&gt; &amp;amp; _&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                      &lt;span style="color: maroon;"&gt;"ORDER BY (M.Marks+G.Marks) DESC"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt; dbConn.Open()&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Dim&lt;/span&gt;&lt;span&gt;  cmd &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt;  OleDbCommand(strSQL, dbConn)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Dim&lt;/span&gt;&lt;span&gt;  dsExcel &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt;  DataSet&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Dim&lt;/span&gt;&lt;span&gt;  daExcel &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt;  OleDbDataAdapter(cmd)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt; daExcel.Fill(dsExcel)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt; dgReports.DataSource = dsExcel&lt;/span&gt;&lt;br /&gt; &lt;span&gt; dgReports.DataBind()&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Catch&lt;/span&gt;&lt;span&gt;  ex &lt;span style="color: blue;"&gt;As&lt;/span&gt; Exception&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Throw&lt;/span&gt;&lt;span&gt;  ex&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; End&lt;/span&gt;&lt;span&gt; &lt;span style="color: blue;"&gt;Try&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt; End&lt;/span&gt;&lt;span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;div align="center"&gt;&lt;p class="ArticleText"&gt;&lt;img src="http://www.beansoftware.com/ASP.NET-Tutorials/Images/Excel-Reporting-Generate.jpg" /&gt;&lt;br /&gt;Fig 7. Report generating the students' marks and total, sorted in descending order.&lt;/p&gt;&lt;/div&gt; &lt;h2&gt;Generating Excel Reports&lt;/h2&gt; &lt;p class="ArticleText"&gt;Two ways for generating Excel report will be discussed in this tutorial.   The first one is using the "Response" class and the second one by manipulating the Excel objects that  "Microsoft Excel 11.0" Objects provide.&lt;/p&gt;  &lt;p class="ArticleText"&gt;The following piece of code illustrates how this is done&lt;/p&gt;  &lt;p class="ArticleText"&gt; &lt;span&gt;    &lt;span style="color: blue;"&gt;Protected&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;  btnToExcelByResponse_Click(&lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; sender &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Object&lt;/span&gt;, &lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; e &lt;span style="color: blue;"&gt;As&lt;/span&gt;  System.EventArgs) &lt;span style="color: blue;"&gt;Handles&lt;/span&gt;  btnToExcelByResponse.Click&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: green;"&gt;'   Variables declaration&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; dsExport &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; DataSet()&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; tw &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; System.IO.StringWriter()&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; hw &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; System.Web.UI.HtmlTextWriter(tw)&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; dgGrid &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; DataGrid()&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;         dgGrid.DataSource = getData()&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: green;"&gt;'   Report Header&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;         hw.WriteLine(&lt;span style="color: maroon;"&gt;"&lt;b&gt;&lt;u&gt;&lt;span style="font-size:'5';"&gt; Student Marking  Report &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;"&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: green;"&gt;'   Get the HTML for the control.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;         dgGrid.HeaderStyle.Font.Bold = &lt;span style="color: blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;         dgGrid.DataBind()&lt;/span&gt;&lt;br /&gt; &lt;span&gt;         dgGrid.RenderControl(hw)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: green;"&gt;'   Write the HTML back to the browser.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;         Response.ContentType = &lt;span style="color: maroon;"&gt;"application/vnd.ms-excel"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.EnableViewState = &lt;span style="color: blue;"&gt; False&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;         Response.Write(tw.ToString())&lt;/span&gt;&lt;br /&gt; &lt;span&gt;         Response.End()&lt;/span&gt;&lt;br /&gt;&lt;span&gt;    &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul type="circle"&gt;&lt;li&gt;&lt;p class="ArticleText"&gt;First, we create the dataset that will hold the records.   Then, a StringWriter object (tw) is also created along with an HtmlTextWriter (hw)  which takes as parameter the text writer object.  They are important for rendering purposes;  i.e. html tags can be applied like bold, italic etc. to the resulting Excel report.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="ArticleText"&gt;Also, a datagrid object which will store the dataset of records.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="ArticleText"&gt;Note that function getData() in the code snippet only  contains the codes in the previous example which returns a dataset of records.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="ArticleText"&gt;hw.WriteLine(&lt;span style="color:#800000;"&gt;"&lt;b&gt;&lt;u&gt;&lt;span style="font-size:'5';"&gt; Student Marking Report &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;"&lt;/span&gt;) shows that you can also combine HTML codes with the output for proper display.   In our example, the font size will be 5, underlined and bold.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="ArticleText"&gt;dgGrid.RenderControl(hw) renders the HTML object with the data that the datagrid contains.   The result is normally formatted in a tabular format.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="ArticleText"&gt;Response.ContentType =  &lt;span style="color:#800000;"&gt; "application/vnd.ms-excel"&lt;/span&gt; makes the Reponse object output to Excel.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="ArticleText"&gt;Response.Write(tw.ToString()) outputs the formatted object to Excel.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;div align="center"&gt;&lt;p class="ArticleText"&gt;&lt;img src="http://www.beansoftware.com/ASP.NET-Tutorials/Images/Excel-Reporting-Output.jpg" /&gt;&lt;br /&gt;Figure 8. Output result showing the report that is generated in Excel&lt;/p&gt;&lt;/div&gt; &lt;p class="ArticleText"&gt;The second way for generating Excel reports from ASP.NET is to use the Microsoft Excel 11.0 Objects.   This method offers more fallibility in terms of manipulating the features that Excel provides and formatting the report.&lt;/p&gt; &lt;p class="ArticleText"&gt;The following code snippet makes use of the various Excel objects that Excel provides to generate the report.&lt;/p&gt; &lt;p class="ArticleText"&gt;&lt;span style="color: blue;"&gt; Imports&lt;/span&gt;&lt;span&gt;  System.Reflection&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt; Imports&lt;/span&gt;&lt;span&gt;  Excel = Microsoft.Office.Interop.Excel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 10pt;"&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;    &lt;span style="color: blue;"&gt;Protected&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;  btnToExcelByObjects_Click(&lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; sender &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Object&lt;/span&gt;, &lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; e &lt;span style="color: blue;"&gt;As&lt;/span&gt; System.EventArgs) &lt;span style="color: blue;"&gt; Handles&lt;/span&gt; btnToExcelByObjects.Click&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Try&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; xlWorkBook &lt;span style="color: blue;"&gt;As&lt;/span&gt; Excel.Workbook&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; xlWorkSheet &lt;span style="color: blue;"&gt;As&lt;/span&gt; Excel.Worksheet&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkBook = &lt;span style="color: blue;"&gt;New&lt;/span&gt;  Excel.Application().Workbooks.Add(Missing.Value)&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkBook.Application.Visible = &lt;span style="color: blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet = xlWorkBook.ActiveSheet&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: green;"&gt;'   Gets the dataset containing the data&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; dsData &lt;span style="color: blue;"&gt; As&lt;/span&gt; DataSet = getData()&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; i &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Integer&lt;/span&gt; = 2&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: green;"&gt;'   Outputting the fieldnames in pink bold  color&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Cells(1, 1) = &lt;span style="color: maroon;"&gt;"Student ID"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Cells(1, 2) = &lt;span style="color: maroon;"&gt;"Student Name"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Cells(1, 3) = &lt;span style="color: maroon;"&gt;"Mathematics"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Cells(1, 4) = &lt;span style="color: maroon;"&gt;"Geography"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Cells(1, 5) = &lt;span style="color: maroon;"&gt;"Total"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: maroon;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Range(&lt;span style="color: maroon;"&gt;"$A1:$E1"&lt;/span&gt;).Font.ColorIndex  = Excel.Constants.xlColor1&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Range(&lt;span style="color: maroon;"&gt;"$A1:$E1"&lt;/span&gt;).Font.Bold  = &lt;span style="color: blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: green;"&gt;'   Outputting the data&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;For&lt;/span&gt; &lt;span style="color: blue;"&gt;Each&lt;/span&gt;  dr &lt;span style="color: blue;"&gt;As&lt;/span&gt; DataRow &lt;span style="color: blue;"&gt;In&lt;/span&gt;  dsData.Tables(0).Rows&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 xlWorkSheet.Cells(i, 1) = dr(0)&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 xlWorkSheet.Cells(i, 2) = dr(1)&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 xlWorkSheet.Cells(i, 3) = dr(2)&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 xlWorkSheet.Cells(i, 4) = dr(3)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 &lt;span style="color: green;"&gt;'   Building the formula for  calculating the sum&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 xlWorkSheet.Cells(i, 5).Formula = &lt;span style="color: maroon;"&gt; "=SUM($C{0}:$D{0})"&lt;/span&gt;.Replace(&lt;span style="color: maroon;"&gt;"{0}"&lt;/span&gt;,  i.ToString())&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 &lt;span style="color: green;"&gt;'   Going to the next row&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 i = i + 1&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: green;"&gt;'   Auto fit the columns&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             xlWorkSheet.Columns.AutoFit()&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: green;"&gt;'   Generating the graph&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; chart &lt;span style="color: blue;"&gt; As&lt;/span&gt; Excel.Chart&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             chart = xlWorkBook.Charts.Add()&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;With&lt;/span&gt; chart&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .ChartType = Excel.XlChartType.xlColumnClustered&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .SetSourceData(xlWorkSheet.Range(&lt;span style="color: maroon;"&gt;"A1:E11"&lt;/span&gt;),  2)&lt;/span&gt;&lt;br /&gt; &lt;span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .HasTitle = &lt;span style="color: blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .ChartTitle.Characters.Text = &lt;span style="color: maroon;"&gt; "Students' marks"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: maroon;"&gt;  &lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .Axes(1, Excel.XlAxisGroup.xlPrimary).HasTitle = &lt;span style="color: blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .Axes(1, Excel.XlAxisGroup.xlPrimary).AxisTitle.Characters.Text  = &lt;span style="color: maroon;"&gt;"Students"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .Axes(2, Excel.XlAxisGroup.xlPrimary).HasTitle = &lt;span style="color: blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;                 .Axes(2, Excel.XlAxisGroup.xlPrimary).AxisTitle.Characters.Text  = &lt;span style="color: maroon;"&gt;"Marks"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;With&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;Catch&lt;/span&gt; ex &lt;span style="color: blue;"&gt;As&lt;/span&gt;  Exception&lt;/span&gt;&lt;br /&gt; &lt;span&gt;             &lt;span style="color: blue;"&gt;Throw&lt;/span&gt; ex&lt;/span&gt;&lt;br /&gt; &lt;span&gt;        &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Try&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;    &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="ArticleText"&gt;An Excel workbook is first created.  Then the active sheet is accessed by xlWorkSheet =  xlWorkBook.ActiveSheet.  After that, we get the data into the dataset, ready to be processed.   Using the Font property, the title is displayed in Pink bold colour.   Note how the Formula that Excel provides is properly used to calculate the SUM of the marks for  each student xlWorkSheet.Cells(i, 5).Formula = "=SUM($C{0}:$D{0})".Replace("{0}", i.ToString()). &lt;/p&gt; &lt;div align="center"&gt;&lt;p class="ArticleText"&gt;&lt;img src="http://www.beansoftware.com/ASP.NET-Tutorials/Images/Excel-Reporting-Output-Marked.jpg" /&gt;&lt;br /&gt;Figure 9. Excel Report having output the list of students and their respective marks.&lt;/p&gt;&lt;/div&gt; &lt;p class="ArticleText"&gt;A chart is also generated using the objects.   The x-axis consists of the names and id of each student.  The y-axis, the marks for the different students.   The chart is always handy for analysis of data.&lt;/p&gt; &lt;div align="center"&gt;&lt;p class="ArticleText"&gt;&lt;img src="http://www.beansoftware.com/ASP.NET-Tutorials/Images/Excel-Reporting-Chart.jpg" /&gt;&lt;br /&gt;Figure 10. Chart that is generated using Microsoft Excel 11.0 Objects&lt;/p&gt;&lt;/div&gt; &lt;h2&gt;Summary&lt;/h2&gt; &lt;p class="ArticleText"&gt;In this tutorial, you learned how to read data from Excel,  generate report using the Response objects and to play with the Microsoft Excel 11.0 objects provided.   Indeed, it is impossible to cover all features in this tutorial but many important techniques were covered  to help you down the line.  It is up to you to be creative and adapt the techniques to your scenarios.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-3516842569503568650?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/3516842569503568650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=3516842569503568650' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/3516842569503568650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/3516842569503568650'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/01/generating-excel-report-in-aspnet-20.html' title='Generating Excel Report in ASP.NET 2.0'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-5483821421444256511</id><published>2008-01-15T10:04:00.001-08:00</published><updated>2008-01-15T10:04:55.792-08:00</updated><title type='text'></title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-5483821421444256511?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.beansoftware.com/ASP.NET-Tutorials/Generating-Excel-Reports.aspx' title=''/><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/5483821421444256511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=5483821421444256511' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/5483821421444256511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/5483821421444256511'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/01/blog-post.html' title=''/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-4116693579111338352</id><published>2008-01-15T09:45:00.000-08:00</published><updated>2008-01-15T09:46:42.972-08:00</updated><title type='text'>ASP.Net 2.0: Export GridView to Excel</title><content type='html'>&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Introduction:&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;In this article, we will see how to Export an ASP.Net 2.0 GridView to Excel. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;The focus of the article is the Export to Excel functionality - the Gridview and it's data binding are only for demonstrating the Export functionality.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;The code fragments for the Export to Excel functionality below are not linked to the backend structure and can be re-used across projects for the common functionality provided.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Step 1: Setup your web page with the Gridview&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;In this article, we will assume you are starting with a web page which holds a GridView named GridView1. The GridView in our demo code is bound to a table named "ContactPhone" in a SQL Express database. The following code which exports the databound GridView to Excel is not dependent on the specific databindings and can be used without changes for your scenario.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;ContactPhone Table Structure:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;table class="MsoNormalTable" style="border: medium none ; background: silver none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 315pt; border-collapse: collapse;" bordercolordark="#808080" bordercolorlight="#ffffff" border="1" cellpadding="0" cellspacing="0" width="420"&gt; &lt;tbody&gt; &lt;tr style=""&gt; &lt;td style="border: 1pt inset gray; padding: 0.75pt; background: gray none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Column Name&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: inset inset inset none; border-color: gray gray gray rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0.75pt; background: gray none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Type&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none inset inset; border-color: rgb(212, 208, 200) gray gray; border-width: medium 1pt 1pt; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;ContactID&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none inset inset none; border-color: rgb(212, 208, 200) gray gray rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Int (Identity)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none inset inset; border-color: rgb(212, 208, 200) gray gray; border-width: medium 1pt 1pt; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;FName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none inset inset none; border-color: rgb(212, 208, 200) gray gray rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Varchar(50)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none inset inset; border-color: rgb(212, 208, 200) gray gray; border-width: medium 1pt 1pt; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;LName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none inset inset none; border-color: rgb(212, 208, 200) gray gray rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Varchar(50)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style=""&gt; &lt;td style="border-style: none inset inset; border-color: rgb(212, 208, 200) gray gray; border-width: medium 1pt 1pt; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;ContactPhone&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="border-style: none inset inset none; border-color: rgb(212, 208, 200) gray gray rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0.75pt; background-color: transparent;"&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Varchar(20)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Step: The Actual Export&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;The code to do the Excel Export is very straightforward. You can also export to different application type by changing the content-disposition and ContentType. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; attachment = &lt;span style="color: maroon;"&gt;"attachment; filename=Contacts.xls"&lt;/span&gt;;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Response.ClearContent();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Response.AddHeader(&lt;span style="color: maroon;"&gt;"content-disposition"&lt;/span&gt;, attachment);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Response.ContentType = &lt;span style="color: maroon;"&gt;"application/ms-excel"&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: teal; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;StringWriter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; sw = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: teal;"&gt;StringWriter&lt;/span&gt;();&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: teal; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;HtmlTextWriter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; htw = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: teal;"&gt;HtmlTextWriter&lt;/span&gt;(sw);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;GridView1.RenderControl(htw);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Response.Write(sw.ToString());&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Response.End();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;If you run the code as above, it will result in an HttpException as follows: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="background: rgb(153, 153, 153) none repeat scroll 0% 50%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server."&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;To avoid this error, add the following code:  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; VerifyRenderingInServerForm(&lt;span style="color: teal;"&gt;Control&lt;/span&gt; control)&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Step : Convert the contents&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;If the GridView contains any controls, such as Checkboxes, Dropdownlists, we need to replace the contents with their relevant values. The following recursive function uses Reflection to determine the type of control. The control is deleted in preparation for the Excel export and the relevant value of the control is added.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; PrepareGridViewForExport(&lt;span style="color: teal;"&gt;Control&lt;/span&gt; gv)&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: teal; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;LinkButton&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; lb = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: teal;"&gt;LinkButton&lt;/span&gt;();&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: teal; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Literal&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; l = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: teal;"&gt;Literal&lt;/span&gt;();&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; name = &lt;span style="color: teal;"&gt;String&lt;/span&gt;.Empty;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; (&lt;span style="color: blue;"&gt;int&lt;/span&gt; i = 0; i &lt;&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; (gv.Controls[i].GetType() == &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color: teal;"&gt;LinkButton&lt;/span&gt;))&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;l.Text = (gv.Controls[i] &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: teal;"&gt;LinkButton&lt;/span&gt;).Text;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.Remove(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.AddAt(i, l);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (gv.Controls[i].GetType() == &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color: teal;"&gt;DropDownList&lt;/span&gt;))&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;l.Text = (gv.Controls[i] &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: teal;"&gt;DropDownList&lt;/span&gt;).SelectedItem.Text;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.Remove(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.AddAt(i, l);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (gv.Controls[i].GetType() == &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color: teal;"&gt;CheckBox&lt;/span&gt;))&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;l.Text = (gv.Controls[i] &lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;span style="color: teal;"&gt;CheckBox&lt;/span&gt;).Checked? &lt;span style="color: maroon;"&gt;"True"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;"False"&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.Remove(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.AddAt(i, l);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; (gv.Controls[i].HasControls())&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;PrepareGridViewForExport(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Code Listing:&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Image: Page Design&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" preferrelative="t" spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path connecttype="rect" gradientshapeok="t" extrusionok="f"&gt;&lt;/v:path&gt;&lt;o:lock aspectratio="t" ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" style="width: 246.75pt; height: 191.25pt;" alt="" type="#_x0000_t75"&gt;&lt;v:imagedata href="http://www.c-sharpcorner.com/UploadFile/DipalChoksi/exportxl_asp2_dc11032006003657AM/Images/ExcelExport1.JPG" src="file:///C:%5CDOCUME%7E1%5Cdchoksi%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image001.jpg"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;span style="font-size:85%;"&gt;  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Image : Sample in action&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;v:shape id="_x0000_i1026" style="width: 342.75pt; height: 204.75pt;" alt="" type="#_x0000_t75"&gt;&lt;v:imagedata href="http://www.c-sharpcorner.com/UploadFile/DipalChoksi/exportxl_asp2_dc11032006003657AM/Images/ExcelExport2.JPG" src="file:///C:%5CDOCUME%7E1%5Cdchoksi%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image002.jpg"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Image: Export to Excel button is clicked&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;v:shape id="_x0000_i1027" style="width: 303pt; height: 199.5pt;" alt="" type="#_x0000_t75"&gt;&lt;v:imagedata href="http://www.c-sharpcorner.com/UploadFile/DipalChoksi/exportxl_asp2_dc11032006003657AM/Images/ExcelExport3.JPG" src="file:///C:%5CDOCUME%7E1%5Cdchoksi%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image003.jpg"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Image: GridView contents exported to Excel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;v:shape id="_x0000_i1028" style="width: 282pt; height: 176.25pt;" alt="" type="#_x0000_t75"&gt;&lt;v:imagedata href="http://www.c-sharpcorner.com/UploadFile/DipalChoksi/exportxl_asp2_dc11032006003657AM/Images/ExcelExport4.JPG" src="file:///C:%5CDOCUME%7E1%5Cdchoksi%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_image004.jpg"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;ExcelExport.aspx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;%&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;@&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: maroon;"&gt;Page&lt;/span&gt; &lt;span style="color: red;"&gt;Language&lt;/span&gt;&lt;span style="color: blue;"&gt;="C#"&lt;/span&gt; &lt;span style="color: red;"&gt;AutoEventWireup&lt;/span&gt;&lt;span style="color: blue;"&gt;="true"&lt;/span&gt; &lt;span style="color: red;"&gt;CodeFile&lt;/span&gt;&lt;span style="color: blue;"&gt;="ExportExcel.aspx.cs"&lt;/span&gt; &lt;span style="color: red;"&gt;Inherits&lt;/span&gt;&lt;span style="color: blue;"&gt;="DeleteConfirm"&lt;/span&gt; &lt;span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;%&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;!&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;DOCTYPE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;html&lt;/span&gt; &lt;span style="color: red;"&gt;PUBLIC&lt;/span&gt; &lt;span style="color: blue;"&gt;"-//W3C//DTD XHTML 1.0 Transitional//EN"&lt;/span&gt; &lt;span style="color: blue;"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;html&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;xmlns&lt;/span&gt;&lt;span style="color: blue;"&gt;="http://www.w3.org/1999/xhtml"&lt;/span&gt; &lt;span style="color: blue;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;head&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;runat&lt;/span&gt;&lt;span style="color: blue;"&gt;="server"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;title&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Contacts Listing&lt;span style="color: blue;"&gt;&lt;/&lt;/span&gt;&lt;span style="color: maroon;"&gt;title&lt;/span&gt;&lt;span style="color: blue;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;head&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;body&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;form&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&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"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;div&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;strong&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;span&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;style&lt;/span&gt;&lt;span style="color: blue;"&gt;="font-size: small; font-family: Arial; text-decoration: underline"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Contacts Listing &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="font-size:85%;"&gt;Button&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="Button1"&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: red;"&gt;OnClick&lt;/span&gt;&lt;span style="color: blue;"&gt;="Button1_Click"&lt;/span&gt; &lt;span style="color: red;"&gt;Text&lt;/span&gt;&lt;span style="color: blue;"&gt;="Export To Excel"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;/&lt;/span&gt;&lt;span style="color: maroon;"&gt;span&lt;/span&gt;&lt;span style="color: blue;"&gt;&gt;&lt;/&lt;/span&gt;&lt;span style="color: maroon;"&gt;strong&lt;/span&gt;&lt;span style="color: blue;"&gt;&gt;&lt;&lt;/span&gt;&lt;span style="color: maroon;"&gt;br&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;br&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;GridView&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="GridView1"&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: red;"&gt;AutoGenerateColumns&lt;/span&gt;&lt;span style="color: blue;"&gt;="False"&lt;/span&gt; &lt;span style="color: red;"&gt;DataKeyNames&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactID"&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: red; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;DataSourceID&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;="SqlDataSource1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;EmptyDataText&lt;/span&gt;&lt;span style="color: blue;"&gt;="There are no data records to display."&lt;/span&gt; &lt;span style="color: red;"&gt;style&lt;/span&gt;&lt;span style="color: blue;"&gt;="font-size: small; font-family: Arial"&lt;/span&gt; &lt;span style="color: red;"&gt;BackColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="White"&lt;/span&gt; &lt;span style="color: red;"&gt;BorderColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="#DEDFDE"&lt;/span&gt; &lt;span style="color: red;"&gt;BorderStyle&lt;/span&gt;&lt;span style="color: blue;"&gt;="None"&lt;/span&gt; &lt;span style="color: red;"&gt;BorderWidth&lt;/span&gt;&lt;span style="color: blue;"&gt;="1px"&lt;/span&gt; &lt;span style="color: red;"&gt;CellPadding&lt;/span&gt;&lt;span style="color: blue;"&gt;="4"&lt;/span&gt; &lt;span style="color: red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="Black"&lt;/span&gt; &lt;span style="color: red;"&gt;GridLines&lt;/span&gt;&lt;span style="color: blue;"&gt;="Vertical"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Columns&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;BoundField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;DataField&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactID"&lt;/span&gt; &lt;span style="color: red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactID"&lt;/span&gt; &lt;span style="color: red;"&gt;ReadOnly&lt;/span&gt;&lt;span style="color: blue;"&gt;="True"&lt;/span&gt; &lt;span style="color: red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactID"&lt;/span&gt; &lt;span style="color: red;"&gt;Visible&lt;/span&gt;&lt;span style="color: blue;"&gt;="False"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;BoundField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;DataField&lt;/span&gt;&lt;span style="color: blue;"&gt;="FName"&lt;/span&gt; &lt;span style="color: red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue;"&gt;="First Name"&lt;/span&gt; &lt;span style="color: red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color: blue;"&gt;="FName"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;BoundField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;DataField&lt;/span&gt;&lt;span style="color: blue;"&gt;="LName"&lt;/span&gt; &lt;span style="color: red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue;"&gt;="Last Name"&lt;/span&gt; &lt;span style="color: red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color: blue;"&gt;="LName"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;BoundField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;DataField&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactPhone"&lt;/span&gt; &lt;span style="color: red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue;"&gt;="Phone"&lt;/span&gt; &lt;span style="color: red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactPhone"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue;"&gt;="Favorites"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size:85%;"&gt; &lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="font-size:85%;"&gt;CheckBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="CheckBox1"&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;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Columns&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;FooterStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;BackColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="#CCCC99"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;RowStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;BackColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="#F7F7DE"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;SelectedRowStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;BackColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="#CE5D5A"&lt;/span&gt; &lt;span style="color: red;"&gt;Font-Bold&lt;/span&gt;&lt;span style="color: blue;"&gt;="True"&lt;/span&gt; &lt;span style="color: red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="White"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;PagerStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;BackColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="#F7F7DE"&lt;/span&gt; &lt;span style="color: red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="Black"&lt;/span&gt; &lt;span style="color: red;"&gt;HorizontalAlign&lt;/span&gt;&lt;span style="color: blue;"&gt;="Right"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;HeaderStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;BackColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="#6B696B"&lt;/span&gt; &lt;span style="color: red;"&gt;Font-Bold&lt;/span&gt;&lt;span style="color: blue;"&gt;="True"&lt;/span&gt; &lt;span style="color: red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="White"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;AlternatingRowStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;BackColor&lt;/span&gt;&lt;span style="color: blue;"&gt;="White"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;GridView&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;SqlDataSource&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="SqlDataSource1"&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: red;"&gt;ConnectionString&lt;/span&gt;&lt;span style="color: blue;"&gt;="&lt;/span&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;%&lt;/span&gt;$ ConnectionStrings:ContactsConnectionString1 &lt;span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;%&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;"&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: red; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;DeleteCommand&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;="DELETE FROM [ContactPhone] WHERE [ContactID] = @ContactID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;InsertCommand&lt;/span&gt;&lt;span style="color: blue;"&gt;="INSERT INTO [ContactPhone] ([FName], [LName], [ContactPhone]) VALUES (@FName, @LName, @ContactPhone)"&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: red; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;ProviderName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;="&lt;/span&gt;&lt;/span&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;%&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;$ ConnectionStrings:ContactsConnectionString1.ProviderName &lt;span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;%&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;"&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: red; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;SelectCommand&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;="SELECT [ContactID], [FName], [LName], [ContactPhone] FROM [ContactPhone]"&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: red; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;UpdateCommand&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;="UPDATE [ContactPhone] SET [FName] = @FName, [LName] = @LName, [ContactPhone] = @ContactPhone WHERE [ContactID] = @ContactID"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;InsertParameters&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="FName"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="String"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="LName"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="String"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactPhone"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="String"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;InsertParameters&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;UpdateParameters&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="FName"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="String"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="LName"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="String"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactPhone"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="String"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactID"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="Int32"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;UpdateParameters&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;DeleteParameters&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="ContactID"&lt;/span&gt; &lt;span style="color: red;"&gt;Type&lt;/span&gt;&lt;span style="color: blue;"&gt;="Int32"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;DeleteParameters&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;SqlDataSource&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: red; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;br&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;/&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;div&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;form&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;body&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;html&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;ExcelExport.aspx.cs &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Data;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Configuration;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Collections;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Web;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Web.Security;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Web.UI;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Web.UI.WebControls;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Web.UI.WebControls.WebParts;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Web.UI.HtmlControls;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.Text;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; System.IO;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;partial&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; DeleteConfirm : System.Web.UI.Page&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Page_Load(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: teal;"&gt;EventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Button1_Click(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: teal;"&gt;EventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size:85%;"&gt;//Export the GridView to Excel&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;PrepareGridViewForExport(GridView1);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;ExportGridView();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; ExportGridView()&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; attachment = &lt;span style="color: maroon;"&gt;"attachment; filename=Contacts.xls"&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.ClearContent();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.AddHeader(&lt;span style="color: maroon;"&gt;"content-disposition"&lt;/span&gt;, attachment);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.ContentType = &lt;span style="color: maroon;"&gt;"application/ms-excel"&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="font-size:85%;"&gt;StringWriter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; sw = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: teal;"&gt;StringWriter&lt;/span&gt;();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;HtmlTextWriter htw = &lt;span style="color: blue;"&gt;new&lt;/span&gt; HtmlTextWriter(sw);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;GridView1.RenderControl(htw);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.Write(sw.ToString());&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.End();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; VerifyRenderingInServerForm(Control control)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; PrepareGridViewForExport(Control gv)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;LinkButton lb = &lt;span style="color: blue;"&gt;new&lt;/span&gt; LinkButton();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Literal l = &lt;span style="color: blue;"&gt;new&lt;/span&gt; Literal();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; name = &lt;span style="color: teal;"&gt;String&lt;/span&gt;.Empty;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (&lt;span style="color: blue;"&gt;int&lt;/span&gt; i = 0; i &lt;&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (gv.Controls[i].GetType() == &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(LinkButton))&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;l.Text = (gv.Controls[i] &lt;span style="color: blue;"&gt;as&lt;/span&gt; LinkButton).Text;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.Remove(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.AddAt(i, l);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (gv.Controls[i].GetType() == &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(DropDownList))&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;l.Text = (gv.Controls[i] &lt;span style="color: blue;"&gt;as&lt;/span&gt; DropDownList).SelectedItem.Text;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.Remove(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.AddAt(i, l);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (gv.Controls[i].GetType() == &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(CheckBox))&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;l.Text = (gv.Controls[i] &lt;span style="color: blue;"&gt;as&lt;/span&gt; CheckBox).Checked ? &lt;span style="color: maroon;"&gt;"True"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;"False"&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.Remove(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;gv.Controls.AddAt(i, l);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (gv.Controls[i].HasControls())&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;PrepareGridViewForExport(gv.Controls[i]);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Implementation Options: &lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;In quite a few cases, developers face an error in the Export functionality - typically the error message is "RegisterForEventValidation can only be called during Render();". &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;Our website readers have contributed some good suggestions in the article comments below. I would particularly like to highlight the suggestion by Marianna, who provides an alternative implementation to the VerifyRenderingInServerForm override. This approach is described below: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul type="disc"&gt;&lt;span style="font-size:85%;"&gt;&lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Step 1: Implement the Export functionality as described above.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Step 2: Remove the code to override the VerifyRenderingInServerForm method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;li class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Step 3: Modify the code for the ExportGridView function as below. The code highlighted in green creates and HtmlForm on the fly, before exporting the gridview, adds the gridview to this new form and renders the form (instead of rendering the gridview in our original implementation) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ul&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; ExportGridView()&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size:85%;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; attachment = "attachment; filename=Contacts.xls";&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.ClearContent();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.AddHeader("content-disposition", attachment);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.ContentType = "application/ms-excel";&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;StringWriter sw = &lt;span style="color: blue;"&gt;new&lt;/span&gt; StringWriter();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;HtmlTextWriter htw = &lt;span style="color: blue;"&gt;new&lt;/span&gt; HtmlTextWriter(sw);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size:85%;"&gt;// Create a form to contain the grid&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;HtmlForm frm = &lt;span style="color: blue;"&gt;new&lt;/span&gt; HtmlForm();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;GridView1.Parent.Controls.Add(frm);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;frm.Attributes["runat"] = "server";&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;frm.Controls.Add(GridView1);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;frm.RenderControl(htw);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size:85%;"&gt;//GridView1.RenderControl(htw);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.Write(sw.ToString());&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style=""&gt;&lt;span style="font-size:85%;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Response.End();&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;u1:p&gt;&lt;/u1:p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;This implementation has the advantage that it can be setup as re-usable code in a separate library, without having to override the base class method each time. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-4116693579111338352?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/4116693579111338352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=4116693579111338352' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/4116693579111338352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/4116693579111338352'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/01/aspnet-20-export-gridview-to-excel.html' title='ASP.Net 2.0: Export GridView to Excel'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-1250728212228610943</id><published>2008-01-14T11:07:00.000-08:00</published><updated>2008-01-14T11:10:39.347-08:00</updated><title type='text'>Gridview, ObjectDataSource Making life easy</title><content type='html'>&lt;p style="font-family: trebuchet ms;font-family:times new roman;"  class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:18;"&gt;Gridview, ObjectDataSource Making life easy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Introduction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;In this Article I will give some brief on sorting, searching, paging in gridview with ObjectDataSource. There are many articles on the internet which had demoed the same but had used SqlDataSources which can’t be done in live projects, ObjectDataSource will preserve the three tier architecture of an Application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Prerequisite&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: trebuchet ms;font-family:times new roman;"&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-left: 0in; text-align: justify; text-indent: 0in; font-family: times new roman;font-family:times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;                     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size:10;"&gt;Sql Server 2000(Northwind database is used for sample app)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-left: 0in; text-align: justify; text-indent: 0in; font-family: times new roman;font-family:times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;                     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size:10;"&gt;Visual Studio 2005&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-left: 0in; text-align: justify; text-indent: 0in; font-family: times new roman;font-family:times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;                     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size:10;"&gt;EntLib 2.0 (DataAccess)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;The Sample Application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;The application used for this article is having&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-left: 0in; text-align: justify; text-indent: 0in; font-family: times new roman;font-family:times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;                     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size:10;"&gt;Default.aspx &lt;span style=""&gt;           &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-left: 0in; text-align: justify; text-indent: 0in; font-family: times new roman;font-family:times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;                     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size:10;"&gt;BizLayer.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="margin-left: 0in; text-align: justify; text-indent: 0in; font-family: times new roman;font-family:times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=""&gt;·&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal;font-size:7;" &gt;                     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size:10;"&gt;DataAccess.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;In this Application the &lt;i style=""&gt;Gridview&lt;/i&gt; will use object data source for auto paging, sorting etc. &lt;i style=""&gt;Object data source&lt;/i&gt; will be using &lt;i style=""&gt;bizlayer&lt;/i&gt; methods for selection and searching.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: times new roman;font-family:times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Sample Application Architecture&lt;span style=""&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;!--[if mso &amp; !supportInlineShapes &amp; supportFields]&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;&lt;span style="'mso-element:field-begin;mso-field-lock:yes'"&gt;&lt;/span&gt;&lt;span style="'mso-spacerun:yes'"&gt; &lt;/span&gt;SHAPE&lt;span style="'mso-spacerun:yes'"&gt;  &lt;/span&gt;\* MERGEFORMAT &lt;span style="'mso-element:field-separator'"&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:group id="_x0000_s1026" editas="canvas" style="'width:6in;height:252pt;" coordorigin="2527,4620" coordsize="7200,4320"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt;  &lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;   &lt;v:stroke joinstyle="miter"&gt;   &lt;v:formulas&gt;    &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;    &lt;v:f eqn="sum @0 1 0"&gt;    &lt;v:f eqn="sum 0 0 @1"&gt;    &lt;v:f eqn="prod @2 1 2"&gt;    &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;    &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;    &lt;v:f eqn="sum @0 0 1"&gt;    &lt;v:f eqn="prod @6 1 2"&gt;    &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;    &lt;v:f eqn="sum @8 21600 0"&gt;    &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;    &lt;v:f eqn="sum @10 21600 0"&gt;   &lt;/v:formulas&gt;   &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;   &lt;o:lock ext="edit" aspectratio="t"&gt;  &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_s1027" type="#_x0000_t75" style="'position:absolute;" preferrelative="f"&gt;   &lt;v:fill detectmouseclick="t"&gt;   &lt;v:path extrusionok="t" connecttype="none"&gt;   &lt;o:lock ext="edit" text="t"&gt;  &lt;/v:shape&gt;&lt;v:rect id="_x0000_s1028" style="'position:absolute;left:4927;top:4929;"&gt;   &lt;v:textbox style="'mso-next-textbox:#_x0000_s1028'"&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;     &lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;Default.aspx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;/div&gt;      &lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;    &lt;/table&gt;    &lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:rect&gt;&lt;v:shapetype id="_x0000_t202" coordsize="21600,21600" spt="202" path="m,l,21600r21600,l21600,xe"&gt;   &lt;v:stroke joinstyle="miter"&gt;   &lt;v:path gradientshapeok="t" connecttype="rect"&gt;  &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_s1029" type="#_x0000_t202" style="'position:absolute;"&gt;   &lt;v:textbox style="'mso-next-textbox:#_x0000_s1029'"&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;     &lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'mso-spacerun:yes'"&gt;           &lt;/span&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;GridView&lt;/span&gt;      &lt;/p&gt;      &lt;/div&gt;      &lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;    &lt;/table&gt;    &lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:shape&gt;&lt;v:shape id="_x0000_s1030" type="#_x0000_t202" style="'position:absolute;"&gt;   &lt;v:textbox style="'mso-next-textbox:#_x0000_s1030'"&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;     &lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;Object      Data Source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;/div&gt;      &lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;    &lt;/table&gt;    &lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:shape&gt;&lt;v:line id="_x0000_s1031" style="'position:absolute'" from="6127,5546" to="6127,5700"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:line id="_x0000_s1032" style="'position:absolute;flip:y'" from="6427,5546" to="6427,5700"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:rect id="_x0000_s1033" style="'position:absolute;left:4927;top:6471;"&gt;   &lt;v:textbox style="'mso-next-textbox:#_x0000_s1033'"&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;     &lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;BizLayer.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;/div&gt;      &lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;    &lt;/table&gt;    &lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:rect&gt;&lt;v:line id="_x0000_s1034" style="'position:absolute;flip:y'" from="5827,6009" to="5827,6471"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:line id="_x0000_s1035" style="'position:absolute'" from="6427,6009" to="6427,6471"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:rect id="_x0000_s1036" style="'position:absolute;left:4927;top:7089;"&gt;   &lt;v:textbox style="'mso-next-textbox:#_x0000_s1036'"&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;     &lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;DataAccess.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;/div&gt;      &lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;    &lt;/table&gt;    &lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:rect&gt;&lt;v:line id="_x0000_s1037" style="'position:absolute;flip:y'" from="5827,6780" to="5827,7089"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:line id="_x0000_s1038" style="'position:absolute'" from="6427,6780" to="6427,7089"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:rect id="_x0000_s1039" style="'position:absolute;left:4927;top:7706;"&gt;   &lt;v:textbox style="'mso-next-textbox:#_x0000_s1039'"&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;     &lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;EntLib      (Data Access) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;/div&gt;      &lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;    &lt;/table&gt;    &lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:rect&gt;&lt;v:line id="_x0000_s1040" style="'position:absolute;flip:y'" from="5827,7397" to="5827,7706"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:line id="_x0000_s1041" style="'position:absolute'" from="6427,7397" to="6427,7706"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:rect id="_x0000_s1042" style="'position:absolute;left:4927;top:8323;"&gt;   &lt;v:textbox style="'mso-next-textbox:#_x0000_s1042'"&gt;    &lt;![if !mso]&gt;    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;     &lt;tr&gt;      &lt;td&gt;&lt;![endif]&gt;      &lt;div&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;Sql      Server 2000 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;/div&gt;      &lt;![if !mso]&gt;&lt;/td&gt;     &lt;/tr&gt;    &lt;/table&gt;    &lt;![endif]&gt;&lt;/v:textbox&gt;  &lt;/v:rect&gt;&lt;v:line id="_x0000_s1043" style="'position:absolute;flip:y'" from="5827,8014" to="5827,8323"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;v:line id="_x0000_s1044" style="'position:absolute'" from="6427,8014" to="6427,8323"&gt;   &lt;v:stroke endarrow="block"&gt;  &lt;/v:line&gt;&lt;w:wrap type="none"&gt;  &lt;w:anchorlock/&gt; &lt;/v:group&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="_x0000_s1026 _x0000_s1027 _x0000_s1028 _x0000_s1029 _x0000_s1030 _x0000_s1031 _x0000_s1032 _x0000_s1033 _x0000_s1034 _x0000_s1035 _x0000_s1036 _x0000_s1037 _x0000_s1038 _x0000_s1039 _x0000_s1040 _x0000_s1041 _x0000_s1042 _x0000_s1043 _x0000_s1044" height="336" width="576" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;!--[if mso &amp; !supportInlineShapes &amp; supportFields]&gt;&lt;span style="'font-family:;font-size:10.0pt;"&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:6in;height:252pt'"&gt;  &lt;v:imagedata croptop="-65520f" cropbottom="65520f"&gt; &lt;/v:shape&gt;&lt;span style="'mso-element:field-end'"&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style=""&gt;Getting Started&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Drag and drop a grid view, an object data source form the toolbox data tab on default.aspx, once done you will get something like&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt; &lt;/span&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1026" type="#_x0000_t75" style="'width:431.25pt;height:324pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.jpg" title="Step1"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.jpg" shapes="_x0000_i1026" height="432" width="575" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Now configure the data source by clicking the Configure data source as show above and the wizard will take us forward.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Populating the gridview (The select Method)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;In This method we will be selecting all the records available in Customers table of Northwind database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Step 1: Choose your business object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1027" type="#_x0000_t75" style="'width:432.75pt;height:275.25pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.jpg" title="Step2"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image005.jpg" shapes="_x0000_i1027" height="367" width="577" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Step 2: Select BizLayer from the drop down.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1028" type="#_x0000_t75" style="'width:431.25pt;height:324pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image006.jpg" title="Step3"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image007.jpg" shapes="_x0000_i1028" height="432" width="575" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Step 3: Choose a method of the business object that will return data associated with the select operation. We will select GetCustomers method from the drop down list for our application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1029" type="#_x0000_t75" style="'width:431.25pt;height:324pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image008.jpg" title="Step4"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image009.jpg" shapes="_x0000_i1029" height="432" width="575" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Step 4: selecting a Data source for our grid. Click the smart tag of our grid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1030" type="#_x0000_t75" style="'width:431.25pt;height:324pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image010.jpg" title="Step5"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image011.jpg" shapes="_x0000_i1030" height="432" width="575" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Step 5: Select odsNorthWind(object data source) form the Choose data source drop down list.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Enabling auto paging/Sorting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;After selecting the data source for the grid we will get a menu where check the enable paging and sorting option for auto paging/sorting, and that all now our grid will have paging and sorting capability with out writing a single line of code, isn’t that great.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1031" type="#_x0000_t75" style="'width:431.25pt;height:261pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image012.jpg" title="Step6"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image013.jpg" shapes="_x0000_i1031" height="348" width="575" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Search &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Its very common scenario where we are supposed to filter the data in grid, Object data source has given a property to do the same, what we are only suppose to do is just supply the search string to filter expression property of object data source and that’s all &lt;/span&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-size:10;" &gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;FilterExpression Property:&lt;/span&gt;&lt;/i&gt;&lt;span style=";font-size:10;color:black;"  &gt; Gets or sets a filtering expression that is applied when the method that is specified by the SelectMethod property is called (as per MSDN).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;In the Sample app we have provide a search on company name, so the filterexpression property for the same can be coded as &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;protected&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; btnSearch_Click(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color:teal;"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 45pt; font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;if&lt;/span&gt;&lt;span style=";font-size:10;" &gt; (txtCustName.Text != &lt;span style="color:maroon;"&gt;""&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;  &lt;/span&gt;odsNorthWind.FilterExpression = &lt;span style="color:maroon;"&gt;"CompanyName LIKE '%"&lt;/span&gt; + txtCustName.Text + &lt;span style="color:maroon;"&gt;"%'"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;}&lt;span style=""&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;}&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Update &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;Again updating is also a very common scenario in data manipulation applications, In the sample application we will update the contact name of a selected customer. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Editing gridview data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;For enabling editing in a gridview row first add an edit column to the gridview. To do that first click the grid view smart tag then click edit column link and then add an Edit, update, delete command from Command field as shown below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1032" type="#_x0000_t75" style="'width:431.25pt;height:324pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image014.jpg" title="Step8"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image015.jpg" shapes="_x0000_i1032" height="432" width="575" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt; &lt;/span&gt;Click Ok.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;In the sample application the grid is having only three columns form the customer table and a command column.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Code Manipulation for gridview edit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0in; text-indent: -0.25in; font-family: times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;1.&lt;span style=";font-size:7;" &gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=";font-size:10;" &gt;Make the readonly property of BoundField to false for all the fiield which are supposed to me edited in gridview.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0in; text-indent: -0.25in; font-family: times new roman;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;2.&lt;span style=";font-size:7;" &gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=";font-size:10;" &gt;Set the DataKeyNames property of gridview to the ID of the table, in sample app DataKeyNames="CustomerID"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;Columns&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;BoundField&lt;/span&gt; &lt;span style="color:red;"&gt;DataField&lt;/span&gt;&lt;span style="color:blue;"&gt;="CustomerID"&lt;/span&gt; &lt;span style="color:red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color:blue;"&gt;="Customer ID"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 45pt; font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:red;"  &gt;ReadOnly&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;="True"&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color:blue;"&gt;="CustomerID"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;asp&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;:&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;BoundField&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;DataField&lt;/span&gt;&lt;span style="color:blue;"&gt;="CompanyName"&lt;/span&gt; &lt;span style="color:red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color:blue;"&gt;="Company Name"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 45pt; font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:red;"  &gt;ReadOnly&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;="True"&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color:blue;"&gt;="CompanyName"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;asp&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;:&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;BoundField&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;DataField&lt;/span&gt;&lt;span style="color:blue;"&gt;="ContactName"&lt;/span&gt; &lt;span style="color:red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color:blue;"&gt;="ContactName"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 45pt; font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:red;"  &gt;ReadOnly&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;="false"&lt;/span&gt;&lt;span style=";font-size:10;color:red;"  &gt; SortExpression&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;="ContactName"&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;asp&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;:&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;CommandField&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;ShowEditButton&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;Columns&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;asp&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;:&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;GridView&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;ID&lt;/span&gt;&lt;span style="color:blue;"&gt;="gvCustomers"&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:red;"&gt;DataKeyNames&lt;/span&gt;&lt;span style="color:blue;"&gt;="CustomerID"&lt;/span&gt; &lt;span style="color:red;"&gt;AllowPaging&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:red;"&gt;AllowSorting&lt;/span&gt;&lt;span style="color:blue;"&gt;="True" &lt;/span&gt;&lt;span style="color:red;"&gt;CellPadding&lt;/span&gt;&lt;span style="color:blue;"&gt;="4"&lt;/span&gt; &lt;span style="color:red;"&gt;DataSourceID&lt;/span&gt;&lt;span style="color:blue;"&gt;="odsNorthWind"&lt;/span&gt; &lt;span style="color:red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#333333"&lt;/span&gt; &lt;span style="color:red;"&gt;GridLines&lt;/span&gt;&lt;span style="color:blue;"&gt;="None"&lt;/span&gt; &lt;span style="color:red;"&gt;AutoGenerateColumns&lt;/span&gt;&lt;span style="color:blue;"&gt;="False"&lt;/span&gt; &lt;span style="color:red;"&gt;EmptyDataText&lt;/span&gt;&lt;span style="color:blue;"&gt;="No Record Available"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Adding update method to Object Data Source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;The last part left is to add an update method to the data source control,to do so click the smart tag of ObjectDataSource,then click Configure data source and click next then select update tab. Select an update method form Chosse a method drop down as shown below, in sample app we had selected UpdateCustomer method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1033" type="#_x0000_t75" style="'width:431.25pt;height:324pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1.HIM\LOCALS~1\Temp\msohtmlclip1\01\clip_image016.jpg" title="Step7"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///C:/DOCUME%7E1/ADMINI%7E1.HIM/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image017.jpg" shapes="_x0000_i1033" height="432" width="575" /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style=""&gt;The Sample App Code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;BizLayer.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Configuration;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.Security;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.WebControls.WebParts;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 45pt; font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.HtmlControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;public&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt; &lt;span style="color:teal;"&gt;BizLayer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; BizLayer()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;      &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:green;"&gt;// TODO: Add constructor logic here&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;      &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:teal;"&gt;DataSet&lt;/span&gt; GetCustomers()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;DataAccess&lt;/span&gt; dataAcess = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;dataAcess = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:teal;"&gt;DataAccess&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt; dataAcess.GetCustomers();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;finally&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;dataAcess = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; UpdateCustomers(&lt;span style="color:blue;"&gt;string&lt;/span&gt; CustomerID,&lt;span style="color:blue;"&gt;string&lt;/span&gt; contactName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;DataAccess&lt;/span&gt; dataAcess = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;dataAcess = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:teal;"&gt;DataAccess&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;dataAcess.UpdateCustomers(CustomerID, contactName);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;finally&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;dataAcess = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;DataAccess.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Configuration;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.Security;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.WebControls.WebParts;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.HtmlControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Data.Common;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; Microsoft.Practices.EnterpriseLibrary.Data;&lt;span style="color:blue;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;public&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt; &lt;span style="color:teal;"&gt;DataAccess&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; DataAccess()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;      &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:green;"&gt;// TODO: Add constructor logic here&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:green;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;      &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:teal;"&gt;DataSet&lt;/span&gt; GetCustomers()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;DataSet&lt;/span&gt; dsGetCustomer = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;DbCommand&lt;/span&gt; dbCommand = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;Database&lt;/span&gt; db = &lt;span style="color:teal;"&gt;DatabaseFactory&lt;/span&gt;.CreateDatabase(&lt;span style="color:maroon;"&gt;"Northwind"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;dbCommand = db.GetSqlStringCommand(&lt;span style="color:maroon;"&gt;"select * from Customers"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;dsGetCustomer = db.ExecuteDataSet(dbCommand);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt; dsGetCustomer;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; UpdateCustomers(&lt;span style="color:blue;"&gt;string&lt;/span&gt; CustomerID,&lt;span style="color:blue;"&gt;string&lt;/span&gt; contactName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;DbCommand&lt;/span&gt; dbCommand = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;Database&lt;/span&gt; db = &lt;span style="color:teal;"&gt;DatabaseFactory&lt;/span&gt;.CreateDatabase(&lt;span style="color:maroon;"&gt;"Northwind"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;dbCommand = db.GetSqlStringCommand(&lt;span style="color:maroon;"&gt;"update Customers SET ContactName = '"&lt;/span&gt;+contactName+&lt;span style="color:maroon;"&gt;"' where CustomerID = '"&lt;/span&gt; + CustomerID+&lt;span style="color:maroon;"&gt;"'"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;db.ExecuteNonQuery(dbCommand);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Default.aspx.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Configuration;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.Security;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.WebControls.WebParts;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;using&lt;/span&gt;&lt;span style=";font-size:10;" &gt; System.Web.UI.HtmlControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;public&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:blue;"&gt;partial&lt;/span&gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt; &lt;span style="color:teal;"&gt;_Default&lt;/span&gt; : System.Web.UI.&lt;span style="color:teal;"&gt;Page&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;protected&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; Page_Load(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color:teal;"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;protected&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; btnSearch_Click(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color:teal;"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;if&lt;/span&gt; (txtCompanyName.Text != &lt;span style="color:maroon;"&gt;""&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;odsNorthWind.FilterExpression = &lt;span style="color:maroon;"&gt;"CompanyName LIKE '%"&lt;/span&gt; + txtCompanyName.Text + &lt;span style="color:maroon;"&gt;"%'"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;i style=""&gt;&lt;span style=";font-size:10;" &gt;Default.aspx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:10;" &gt;&lt;%&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;@&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:maroon;"&gt;Page&lt;/span&gt; &lt;span style="color:red;"&gt;Language&lt;/span&gt;&lt;span style="color:blue;"&gt;="C#"&lt;/span&gt; &lt;span style="color:red;"&gt;AutoEventWireup&lt;/span&gt;&lt;span style="color:blue;"&gt;="true"&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style="color:red;"&gt;CodeFile&lt;/span&gt;&lt;span style="color:blue;"&gt;="Default.aspx.cs"&lt;/span&gt; &lt;span style="color:red;"&gt;Inherits&lt;/span&gt;&lt;span style="color:blue;"&gt;="_Default"&lt;/span&gt; &lt;span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;%&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;DOCTYPE&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;html&lt;/span&gt; &lt;span style="color:red;"&gt;PUBLIC&lt;/span&gt; &lt;span style="color:blue;"&gt;"-//W3C//DTD XHTML 1.0 Transitional//EN"&lt;/span&gt; &lt;span style="color:blue;"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;html&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;xmlns&lt;/span&gt;&lt;span style="color:blue;"&gt;="http://www.w3.org/1999/xhtml"&lt;/span&gt; &lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;head&lt;/span&gt;&lt;span style=";font-size:10;" &gt; &lt;span style="color:red;"&gt;runat&lt;/span&gt;&lt;span style="color:blue;"&gt;="server"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;title&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;/span&gt;GridView and ObjectDataSource making Life easy&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;title&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;head&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;&lt;/span&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;body&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&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"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;table&lt;/span&gt; &lt;span style="color:red;"&gt;border&lt;/span&gt;&lt;span style="color:blue;"&gt;="0"&lt;/span&gt; &lt;span style="color:red;"&gt;cellpadding&lt;/span&gt;&lt;span style="color:blue;"&gt;="0"&lt;/span&gt; &lt;span style="color:red;"&gt;width&lt;/span&gt;&lt;span style="color:blue;"&gt;="100%"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;Label&lt;/span&gt; &lt;span style="color:red;"&gt;ID&lt;/span&gt;&lt;span style="color:blue;"&gt;="Label1"&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:red;"&gt;Text&lt;/span&gt;&lt;span style="color:blue;"&gt;="Enter Company Name :"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;Label&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;TextBox&lt;/span&gt; &lt;span style="color:red;"&gt;ID&lt;/span&gt;&lt;span style="color:blue;"&gt;="txtCompanyName"&lt;/span&gt; &lt;span style="color:red;"&gt;runat&lt;/span&gt;&lt;span style="color:blue;"&gt;="server"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;TextBox&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;Button&lt;/span&gt; &lt;span style="color:red;"&gt;ID&lt;/span&gt;&lt;span style="color:blue;"&gt;="btnSearch"&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:red;"&gt;Text&lt;/span&gt;&lt;span style="color:blue;"&gt;="Search"&lt;/span&gt; &lt;span style="color:red;"&gt;OnClick&lt;/span&gt;&lt;span style="color:blue;"&gt;="btnSearch_Click"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;           &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt; &lt;span style="color:red;"&gt;colspan&lt;/span&gt;&lt;span style="color:blue;"&gt;="3"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;GridView&lt;/span&gt; &lt;span style="color:red;"&gt;ID&lt;/span&gt;&lt;span style="color:blue;"&gt;="gvCustomers"&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:red;"&gt;DataKeyNames&lt;/span&gt;&lt;span style="color:blue;"&gt;="CustomerID"&lt;/span&gt; &lt;span style="color:red;"&gt;AllowPaging&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:red;"&gt;AllowSorting&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:red;"&gt;CellPadding&lt;/span&gt;&lt;span style="color:blue;"&gt;="4"&lt;/span&gt; &lt;span style="color:red;"&gt;DataSourceID&lt;/span&gt;&lt;span style="color:blue;"&gt;="odsNorthWind"&lt;/span&gt; &lt;span style="color:red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#333333"&lt;/span&gt; &lt;span style="color:red;"&gt;GridLines&lt;/span&gt;&lt;span style="color:blue;"&gt;="None"&lt;/span&gt; &lt;span style="color:red;"&gt;AutoGenerateColumns&lt;/span&gt;&lt;span style="color:blue;"&gt;="False"&lt;/span&gt; &lt;span style="color:red;"&gt;EmptyDataText&lt;/span&gt;&lt;span style="color:blue;"&gt;="No Record Available"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;FooterStyle&lt;/span&gt; &lt;span style="color:red;"&gt;BackColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#507CD1"&lt;/span&gt; &lt;span style="color:red;"&gt;Font-Bold&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="White"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;RowStyle&lt;/span&gt; &lt;span style="color:red;"&gt;BackColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#EFF3FB"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;EditRowStyle&lt;/span&gt; &lt;span style="color:red;"&gt;BackColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#2461BF"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;SelectedRowStyle&lt;/span&gt; &lt;span style="color:red;"&gt;BackColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#D1DDF1"&lt;/span&gt; &lt;span style="color:red;"&gt;Font-Bold&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#333333"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;PagerStyle&lt;/span&gt; &lt;span style="color:red;"&gt;BackColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#2461BF"&lt;/span&gt; &lt;span style="color:red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="White"&lt;/span&gt; &lt;span style="color:red;"&gt;HorizontalAlign&lt;/span&gt;&lt;span style="color:blue;"&gt;="Center"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;HeaderStyle&lt;/span&gt; &lt;span style="color:red;"&gt;BackColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="#507CD1"&lt;/span&gt; &lt;span style="color:red;"&gt;Font-Bold&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:red;"&gt;ForeColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="White"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;AlternatingRowStyle&lt;/span&gt; &lt;span style="color:red;"&gt;BackColor&lt;/span&gt;&lt;span style="color:blue;"&gt;="White"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;Columns&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;BoundField&lt;/span&gt; &lt;span style="color:red;"&gt;DataField&lt;/span&gt;&lt;span style="color:blue;"&gt;="CustomerID"&lt;/span&gt; &lt;span style="color:red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color:blue;"&gt;="Customer ID"&lt;/span&gt; &lt;span style="color:red;"&gt;ReadOnly&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color:blue;"&gt;="CustomerID"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;BoundField&lt;/span&gt; &lt;span style="color:red;"&gt;DataField&lt;/span&gt;&lt;span style="color:blue;"&gt;="CompanyName"&lt;/span&gt; &lt;span style="color:red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color:blue;"&gt;="Company Name"&lt;/span&gt; &lt;span style="color:red;"&gt;ReadOnly&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color:blue;"&gt;="CompanyName"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;BoundField&lt;/span&gt; &lt;span style="color:red;"&gt;DataField&lt;/span&gt;&lt;span style="color:blue;"&gt;="ContactName"&lt;/span&gt; &lt;span style="color:red;"&gt;HeaderText&lt;/span&gt;&lt;span style="color:blue;"&gt;="ContactName"&lt;/span&gt; &lt;span style="color:red;"&gt;SortExpression&lt;/span&gt;&lt;span style="color:blue;"&gt;="ContactName"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;CommandField&lt;/span&gt; &lt;span style="color:red;"&gt;ShowEditButton&lt;/span&gt;&lt;span style="color:blue;"&gt;="True"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;Columns&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;GridView&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;ObjectDataSource&lt;/span&gt; &lt;span style="color:red;"&gt;ID&lt;/span&gt;&lt;span style="color:blue;"&gt;="odsNorthWind"&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:red;"&gt;SelectMethod&lt;/span&gt;&lt;span style="color:blue;"&gt;="GetCustomers"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:red;"&gt;TypeName&lt;/span&gt;&lt;span style="color:blue;"&gt;="BizLayer"&lt;/span&gt; &lt;span style="color:red;"&gt;UpdateMethod&lt;/span&gt;&lt;span style="color:blue;"&gt;="UpdateCustomers"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;UpdateParameters&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;Parameter&lt;/span&gt; &lt;span style="color:red;"&gt;Name&lt;/span&gt;&lt;span style="color:blue;"&gt;="CustomerID"&lt;/span&gt; &lt;span style="color:red;"&gt;Type&lt;/span&gt;&lt;span style="color:blue;"&gt;="String"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;Parameter&lt;/span&gt; &lt;span style="color:red;"&gt;Name&lt;/span&gt;&lt;span style="color:blue;"&gt;="contactName"&lt;/span&gt; &lt;span style="color:red;"&gt;Type&lt;/span&gt;&lt;span style="color:blue;"&gt;="String"&lt;/span&gt; &lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;UpdateParameters&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;asp&lt;/span&gt;&lt;span style="color:blue;"&gt;:&lt;/span&gt;&lt;span style="color:maroon;"&gt;ObjectDataSource&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color:red;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;table&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;!--&lt;/span--&gt;&lt;span style="color:maroon;"&gt;form&lt;/span&gt;&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;body&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-size:10;color:maroon;"  &gt;html&lt;/span&gt;&lt;span style=";font-size:10;color:blue;"  &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: times new roman;"&gt;&lt;span style=";font-size:10;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-1250728212228610943?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/1250728212228610943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=1250728212228610943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/1250728212228610943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/1250728212228610943'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/01/gridview-objectdatasource-making-life.html' title='Gridview, ObjectDataSource Making life easy'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-2864859216648269360</id><published>2008-01-14T10:57:00.000-08:00</published><updated>2008-01-14T10:58:09.897-08:00</updated><title type='text'>Convert a Number into Words</title><content type='html'>&lt;h1 style="font-family: times new roman;"&gt;         Convert a Number into Words&lt;/h1&gt;     &lt;p style="font-family: times new roman;"&gt;         &lt;em&gt;When developing commercial applications, particularly when those applications perform             activities such as cheque printing, it can be necessary to display         numeric values             using the equivalent text.  This article describes an algorithm to achieve this.&lt;/em&gt;&lt;/p&gt;     &lt;h2 style="font-family: times new roman;"&gt;         Algorithm Goals&lt;/h2&gt;     &lt;p style="font-family: times new roman;"&gt;         There are many occasions when it is necessary to output a numeric value using text         rather than numeric digits.  A common example is the production of cheques.          These usually require both the numeric and the spoken-word equivalent text to be         printed.  Unfortunately, the .NET framework does not provide a simple method         by which this conversion can be made so a custom algorithm must be developed.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         This article describes an algorithm that converts a numeric value into the equivalent         text.  It goes on to provide the C# code for this task.  For simplicity,         the article concentrates on the generation of English words for 32-bit integer values.          However, you can extend the method easily to add other languages, decimal number         conversion and currency information.  Alternatively, you can support the BlackWasp         web site by purchasing and downloading our &lt;a href="http://www.blackwasp.co.uk/NumberToWordsComponent.aspx"&gt;Number             to Words Component&lt;/a&gt; that supports additional functionality, larger numbers         and greater customisation from only         &lt;span id="ctl00_PageContent_ComponentPriceLabel"&gt;£2.00&lt;/span&gt;.&lt;/p&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Large Number Names&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         The English names of the smaller numbers are generally accepted.  However,         once a number to be converted reaches a value of one thousand million or greater,         the names of numbers vary according to usage.  The algorithm described in this         article uses the modern short scale numbering.  In this scale, one thousand         million is equivalent to one billion.  This is different to the less-used traditional         British long scale numbering where a billion is one million million.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt; The following table lists the short scale number names included in the algorithm and their numeric values.  The range of numbers has been selected to provide for the full range of values that may be held in a 32-bit integer.  If you wish to extend the functionality of the algorithm to larger numbers, a Wikipedia article exists that lists the &lt;a href="http://en.wikipedia.org/wiki/Names_of_large_numbers" target="_blank"&gt;             names of large numbers&lt;/a&gt;.&lt;/p&gt;    &lt;table style="font-family: times new roman;" class="reftable"&gt;         &lt;tbody&gt;&lt;tr&gt;             &lt;th&gt;Value&lt;/th&gt;             &lt;th&gt;Name&lt;/th&gt;         &lt;/tr&gt;         &lt;tr&gt;             &lt;td&gt;1&lt;/td&gt;             &lt;td&gt;one&lt;/td&gt;         &lt;/tr&gt;         &lt;tr&gt;             &lt;td&gt;10&lt;/td&gt;             &lt;td&gt;ten&lt;/td&gt;         &lt;/tr&gt;        &lt;tr&gt;            &lt;td&gt;                100&lt;/td&gt;            &lt;td&gt;         hundred&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td&gt;                1,000&lt;/td&gt;            &lt;td&gt;                thousand&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td&gt;                1,000,000&lt;/td&gt;            &lt;td&gt;                million&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td&gt;                1,000,000,000&lt;/td&gt;            &lt;td&gt;                billion&lt;/td&gt;        &lt;/tr&gt;    &lt;/tbody&gt;&lt;/table&gt;             &lt;h3 style="font-family: times new roman;"&gt;         Number Rules&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt; The set of rules for converting an integer number to text initially appear to be reasonably complex.  However, once analysed, they can be separated into a small number of distinct rule groups that are simpler to implement individually. To provide a single algorithm for all integer values there are six such rule groups:&lt;/p&gt;     &lt;ul style="font-family: times new roman;"&gt;&lt;li&gt;&lt;strong&gt;Zero Rule&lt;/strong&gt;.  If the value is zero then the number in words         is 'zero' and no other rules apply.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Three Digit Rule&lt;/strong&gt;.  The integer value is split into groups             of three digits starting from the right-hand side.  Each set of three digits is then         processed individually as a number of hundreds, tens and units.  Once converted             to text, the three-digit groups are recombined with the addition of the relevant             scale number (thousand, million, billion).&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Hundreds Rules&lt;/strong&gt;.  If the hundreds portion of a three-digit group             is not zero, the number of hundreds is added as a word.  If the three-digit             group is exactly divisible by one hundred, the text 'hundred' is appended.              If not, the text "hundred and" is appended.  &lt;em&gt;eg. 'two hundred' or 'one hundred                 and twelve'&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Tens Rules&lt;/strong&gt;.  If the tens section of a three-digit group is             two or higher, the appropriate '-ty' word (twenty, thirty, etc.) is added to the             text and followed by the name of the third digit (unless the third digit is a zero,             which is ignored).  If the tens and the units are both zero, no text is added.              For any other value, the name of the one or two-digit number is added as             a special case.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Recombination Rules&lt;/strong&gt;.  When recombining the translated three-digit             groups, each group except the last is followed by a large number name and a comma,             unless the group is blank and therefore not included at all.  One exception is             when the final group does not include any hundreds and there is more than one             non-blank group.              In this case, the final comma is replaced with 'and'.  &lt;em&gt;eg. 'one billion, one                 million and twelve'&lt;/em&gt;.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Negative Rule&lt;/strong&gt;.  Negative numbers are always preceded by the             text 'negative'.&lt;/li&gt;&lt;/ul&gt;     &lt;h2 style="font-family: times new roman;"&gt;         The Algorithm and the Code&lt;/h2&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Preparation&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         Depending upon how you wish to use this algorithm, you may want to create it in         a new class,         incorporate it in an existing class or simply hide it behind a form event.          To keep the code simple and short, this article assumes you have a class of some         kind prepared and are adding a new method to that class.  The code simply declares         a new public method that accepts the integer to be converted         as its only parameter.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         To prepare, create or identify the class that you will add the method to, then add         the following declaration code:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Converts an integer value into English words&lt;/span&gt;&lt;br /&gt;public string NumberToWords(int number)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;     &lt;p style="font-family: times new roman;"&gt;         &lt;em&gt;NB: If you are creating or adding to a utilities class, you may wish to adjust the             declaration to make the method static.  If you do, all of the other declarations             detailed below must also be marked as static.&lt;/em&gt;&lt;/p&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Declaring the Names for Numbers&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         There are three key groups of names for numbers that must be declared.  Firstly         there are the &lt;em&gt;small numbers&lt;/em&gt; between zero and nineteen that are used by         the tens rule.  The second group of numbers is used to represent the &lt;em&gt;tens&lt;/em&gt;         values from twenty to ninety.  Finally we have the &lt;em&gt;scale numbers&lt;/em&gt;.          These are the large numbers that are used during recombination.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         The number names must be stored within the program code in a manner that permits         easy identification.  In this example code, we will declare three arrays.          An array of twenty items holds the small numbers, an array of ten items is used         for the tens values (with two initial unused entries) and an array of four values         contains the scale number names with the first entry containing an empty string.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         As the code will eventually include private methods in addition to the public method         already declared, the arrays are created as private class-level variables.          This allows the arrays to be accessible by the entire class without being passed         between functions.  The numbers are defined in &lt;em&gt;         Title Case&lt;/em&gt; as this         is aesthetically pleasing and can be easily converted to upper or lower case after the process is complete.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         Add the following declarations to the class to declare and initialise the arrays:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Single-digit and small number names&lt;/span&gt;&lt;br /&gt;private string[] _smallNumbers = new string[]&lt;br /&gt;   {"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight",&lt;br /&gt;    "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen",&lt;br /&gt;     "Sixteen", "Seventeen", "Eighteen", "Nineteen"};&lt;br /&gt;   &lt;br /&gt;&lt;span class="comment"&gt;// Tens number names from twenty upwards&lt;/span&gt;&lt;br /&gt;private string[] _tens = new string[]&lt;br /&gt;   {"", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty",&lt;br /&gt;    "Ninety"};&lt;br /&gt;   &lt;br /&gt;&lt;span class="comment"&gt;// Scale number names for use during recombination&lt;/span&gt;&lt;br /&gt;private string[] _scaleNumbers = new string[]&lt;br /&gt;   {"", "Thousand", "Million", "Billion"};&lt;/pre&gt;&lt;/div&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Applying the Zero Rule&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         The zero rule is the easiest to implement.  All that is required is a simple         &lt;em&gt;if&lt;/em&gt; statement to test for a value of zero in the integer parameter.          If the value is zero, the text returned is 'Zero' (from item 0 in the small numbers         array).  In all other cases, the remaining rules must all be considered.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         To implement the zero rule, the following code is added within the NumberToWords         method:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Zero rule&lt;/span&gt;&lt;br /&gt;if (number == 0)&lt;br /&gt;   return _smallNumbers[0];&lt;/pre&gt;&lt;/div&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Separating the Number into Three-Digit Groups&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         Once it has been determined that the value is non-zero, it is necessary to split         the number into its three-digit groups.  This is relatively easy using a mixture         of the modulus (%) and division (/) operators.  When any integer is divided         by one thousand, the remainder supplied by the modulus operator is equivalent to         the last three digits of the original value.  This can be repeated to extract         the three-digit groups working from right to left.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         One problem with this method is that if the original value is negative the modulus         values will also be negative.  This can be rectified by using the &lt;em&gt;Abs&lt;/em&gt;         method from the standard &lt;em&gt;Math&lt;/em&gt; class.  This method converts negative         values to their positive equivalents but leaves positive values unchanged.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         The range provided by the integer data type ensures that there will never be more         than four three-digit groups.  We can therefore create an array with four elements         to hold the extracted values.  Theis array is populated using a simple for loop         that executes once for each group.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         The separation is achieved by adding the following code after the zero rule:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Array to hold four three-digit groups&lt;/span&gt;&lt;br /&gt;int[] digitGroups = new int[4];&lt;br /&gt;&lt;br /&gt;&lt;span class="comment"&gt;// Ensure a positive number to extract from&lt;/span&gt;&lt;br /&gt;int positive = Math.Abs(number);&lt;br /&gt;&lt;br /&gt;&lt;span class="comment"&gt;// Extract the three-digit groups&lt;/span&gt;&lt;br /&gt;for (int i = 0; i &lt; 4; i++)&lt;br /&gt;{&lt;br /&gt;   digitGroups[i] = positive % 1000;&lt;br /&gt;   positive /= 1000;&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;     &lt;p style="font-family: times new roman;"&gt;         &lt;em&gt;NB: The three-digit group array index numbers can be matched against the large number             array indices.  This will be useful for recombination later.&lt;/em&gt;&lt;/p&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Converting a Three-Digit Group&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         The next rules that need to be applied are those concerning the individual three-digit         groups.  Each group in turn needs to be converted to text.  To achieve         this with efficient code, a private method is to be created.  This method,         named &lt;em&gt;ThreeDigitGroupToWords&lt;/em&gt;, accepts an integer value of no more than         three digits and returns the equivalent English text.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         The new         subroutine is called once for each of the three-digit groups using another         for loop.  For each pass, the returned text is stored in a new array of strings.          The index numbers of the three-digit group values and their new text versions are         kept synchronised.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         Add the following code after the digit extraction loop to call the new private method:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Convert each three-digit group to words&lt;/span&gt;&lt;br /&gt;string[] groupText = new string[4];&lt;br /&gt;&lt;br /&gt;for (int i = 0; i &lt; 4; i++)&lt;br /&gt;   groupText[i] = ThreeDigitGroupToWords(digitGroups[i]);&lt;/pre&gt;&lt;/div&gt;     &lt;p style="font-family: times new roman;"&gt;         To declare the new method, add the following declaration to the class:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Converts a three-digit group into English words&lt;/span&gt;&lt;br /&gt;private string ThreeDigitGroupToWords(int threeDigits)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Applying The Hundreds Rules&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         In order to apply the hundreds rules, there are two key values that must be known.          The first value is the number of hundreds that exist in the three-digit group.          This can be determines by simply dividing the three-digit value by one hundred.          The second number that is required is the remainder of this division.  This         value, extracted using the modulus operator, represents the other two digits in         the group.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         The first of the hundreds rules determines if the number of hundreds is included         in the returned text.  A simple if statement checks if this value is non-zero         and adds text accordingly.  Otherwise,         the digit is converted to text, using the appropriate string from the small numbers         array, and the word 'Hundred' is appended.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         A second conditional statement determines if there are any tens or units within the three-digit group.          If there are, these will be applied by the tens rules         later.  However, the word 'and' will be required between the hundreds and the         tens and units and this is added immediately.  Where the three-digit         group represents an exact number of hundreds only, the remainder is zero and the 'and'         is note required.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         This code is added within the &lt;em&gt;ThreeDigitGroupToWords&lt;/em&gt; method to apply the         hundreds rules:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Initialise the return text&lt;/span&gt;&lt;br /&gt;string groupText = "";&lt;br /&gt;&lt;br /&gt;&lt;span class="comment"&gt;// Determine the hundreds and the remainder&lt;/span&gt;&lt;br /&gt;int hundreds = threeDigits / 100;&lt;br /&gt;int tensUnits = threeDigits % 100;&lt;br /&gt;&lt;br /&gt;&lt;span class="comment"&gt;// Hundreds rules&lt;/span&gt;&lt;br /&gt;if (hundreds != 0)&lt;br /&gt;{&lt;br /&gt;   groupText += _smallNumbers[hundreds] + " Hundred";&lt;br /&gt;&lt;br /&gt;   if (tensUnits != 0)&lt;br /&gt;       groupText += " and ";&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Applying The Tens Rules&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         To apply the tens rules we must first determine the number of tens and units.          This is achieved in a similar manner to determining the hundreds in the previous         rules; the remainder from the previous rule is split using division and modulus         operators.  Once the number of tens and units are known, several nested if         statements are used to add the correct text.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         This code should be added after the hundreds rules to apply the tens rules and return         the result:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Determine the tens and units&lt;/span&gt;&lt;br /&gt;int tens = tensUnits / 10;&lt;br /&gt;int units = tensUnits % 10;&lt;br /&gt;&lt;br /&gt;&lt;span class="comment"&gt;// Tens rules&lt;/span&gt;&lt;br /&gt;if (tens &gt;= 2)&lt;br /&gt;{&lt;br /&gt;   groupText += _tens[tens];&lt;br /&gt;   if (units != 0)&lt;br /&gt;       groupText += " " + _smallNumbers[units];&lt;br /&gt;}&lt;br /&gt;else if (tensUnits != 0)&lt;br /&gt;   groupText += _smallNumbers[tensUnits];&lt;br /&gt;&lt;br /&gt;return groupText;&lt;/pre&gt;&lt;/div&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Recombining the Three-Digit Groups&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         Now that the three-digit groups have all individually been converted into words, they         must be recombined.  This is achieved by starting with the lower value groups         and adding each larger group to the combined string in turn.  Where a group is         not blank, the correct large number text from the large numbers array         is appended.  If a non-blank group has already         been added, a comma or the word 'and' is also appended.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt; To control the decision of whether to add 'and' to the combined string, a Boolean variable is initialised after adding the first (smallest) three-digit group.  If this group represents a number between one and ninety nine, the Boolean value is set to true, otherwise is it set to false.  Whenever another group of digits is added that is non-zero the Boolean is checked.  If true, the word 'and' is added.  If the Boolean is false, a comma is appended instead.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         To implement the recombination rules add the following code after the for loop in         the public NumberToWords method:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Recombine the three-digit groups&lt;/span&gt;&lt;br /&gt;string combined = groupText[0];&lt;br /&gt;bool appendAnd;&lt;br /&gt;&lt;br /&gt;&lt;span class="comment"&gt;// Determine whether an 'and' is needed&lt;/span&gt;&lt;br /&gt;appendAnd = (digitGroups[0] &gt; 0) &amp;amp;&amp;amp; (digitGroups[0] &lt; 100);&lt;br /&gt;&lt;br /&gt;&lt;span class="comment"&gt;// Process the remaining groups in turn, smallest to largest&lt;/span&gt;&lt;br /&gt;for (int i = 1; i &lt; 4; i++)&lt;br /&gt;{&lt;br /&gt;   &lt;span class="comment"&gt;// Only add non-zero items&lt;/span&gt;&lt;br /&gt;   if (digitGroups[i] != 0)&lt;br /&gt;   {&lt;br /&gt;       &lt;span class="comment"&gt;// Build the string to add as a prefix&lt;/span&gt;&lt;br /&gt;       string prefix = groupText[i] + " " + _scaleNumbers[i];&lt;br /&gt;      &lt;br /&gt;       if (combined.Length != 0)&lt;br /&gt;           prefix += appendAnd ? " and " : ", ";&lt;br /&gt;      &lt;br /&gt;       &lt;span class="comment"&gt;// Opportunity to add 'and' is ended&lt;/span&gt;&lt;br /&gt;       appendAnd = false;&lt;br /&gt;&lt;br /&gt;       &lt;span class="comment"&gt;// Add the three-digit group to the combined string&lt;/span&gt;&lt;br /&gt;       combined = prefix + combined;&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;     &lt;h3 style="font-family: times new roman;"&gt;         Applying the Negative Rule&lt;/h3&gt;     &lt;p style="font-family: times new roman;"&gt;         The method is now almost complete.  The remaining process is to apply the negative         rule.  To achieve this, the original value is rechecked to determine if it         is positive or negative.  If negative, the text is prefixed accordingly.          The text is then returned from the method using a standard return statement.&lt;/p&gt;     &lt;p style="font-family: times new roman;"&gt;         Add the final lines of code to the NumberToWords method:&lt;/p&gt; &lt;div style="font-family: times new roman;" class="code"&gt;&lt;pre&gt;&lt;span class="comment"&gt;// Negative rule&lt;/span&gt;&lt;br /&gt;if (number &lt; 0)&lt;br /&gt;   combined = "Negative " + combined;&lt;br /&gt;&lt;br /&gt;return combined;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-2864859216648269360?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/2864859216648269360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=2864859216648269360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/2864859216648269360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/2864859216648269360'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/01/convert-number-into-words.html' title='Convert a Number into Words'/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-2976497109744204350</id><published>2008-01-14T10:31:00.001-08:00</published><updated>2008-01-14T10:38:38.804-08:00</updated><title type='text'></title><content type='html'>&lt;span style="font-family:times new roman;"&gt;This is a basic idea, how to create data utility class in .Net. Generally it is a good practice to use a data utility class in any application.I hope it will provide some idea to you all beginners....&lt;br /&gt;&lt;br /&gt;Happy programming ...............&lt;br /&gt;----------------------------------------------------------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;using System;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;using System.Data;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;using System.Data.SqlClient;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;using System.Configuration;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;using System.Web.Mail;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;namespace DataUtility&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;    /// &lt;summary&gt;&lt;/summary&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;    /// Summary description for DataUtility.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;    /// &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;    public class DataUtility&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region Class Level Variable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        SqlConnection con;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        SqlCommand cmd;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        SqlDataAdapter da;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public SqlDataReader dr;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region Openconnection Function&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        private void OpenConnection()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            if(con==null)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                //con=new SqlConnection("workstation id='PC-13';packet size=4096;user id=sa;integrated security=SSPI;data source=ABC;persist security info=False;initial catalog=yellowpages");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                con=new SqlConnection("server=.;uid=sa;database=yellowpages");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            if(con.State==ConnectionState.Closed)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                con.Open();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd=new SqlCommand();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.Connection=con;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region CloseConnection Function&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        private void CloseConnection()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            if(con.State==ConnectionState.Open)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                con.Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region DisposeConnection Function&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        private void DisposeConnection()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            if(con!=null)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                con.Dispose();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                con=null;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region ExecuteSql Method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public int ExecuteSql(string strsql)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            OpenConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandType=CommandType.Text;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandText=strsql;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            int intresult;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            intresult=cmd.ExecuteNonQuery();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            CloseConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            DisposeConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            return intresult;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region GetDataSet Method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public DataSet GetDataSet(string strsql)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            OpenConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            da=new SqlDataAdapter(strsql,con);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            DataSet ds=new DataSet();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            da.Fill(ds);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            da.Dispose();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            CloseConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            DisposeConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            return ds;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region GetDataTable Method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public DataTable GetDataTable(string strsql)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            OpenConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            da=new SqlDataAdapter(strsql,con);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            DataTable dt=new DataTable();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            da.Fill(dt);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            da.Dispose();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            CloseConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            DisposeConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            return dt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region GetDataReader Method&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public SqlDataReader GetDataReader(string strsql)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            OpenConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandType=CommandType.Text;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandText=strsql;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            dr=cmd.ExecuteReader(CommandBehavior.CloseConnection);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            return dr;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region IsExist Method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public Boolean IsExist(string strsql)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            OpenConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandType=CommandType.Text;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandText=strsql;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            int intresult;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            intresult=(int)cmd.ExecuteScalar();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            CloseConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            DisposeConnection();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            if(intresult&gt;0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                return true;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                return false;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region createmember&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public void createmember(string mg)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            MailMessage msg=new MailMessage();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            msg.To="admin@testme.in";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            msg.Subject="Login Created";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            msg.Body=mg;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            msg.BodyFormat=MailFormat.Html;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            msg.From="127.0.0.1";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            SmtpMail.SmtpServer="127.0.0.1";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            SmtpMail.Send(msg);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        # region Execute Procedure&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public void ExecuteProcedure(String procname,SqlParameter [] sqlparam)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            OpenConnection();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandType =CommandType.StoredProcedure ;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.CommandText =procname;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.Parameters.Clear();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            foreach(SqlParameter thisparam in sqlparam )&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;                cmd.Parameters.Add ((SqlParameter ) thisparam);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            cmd.ExecuteNonQuery();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            CloseConnection(); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #region Default Constructor&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        public DataUtility()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            //&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            // TODO: Add constructor logic here&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;            //&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;        #endregion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:times new roman;" &gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4600918724058045760-2976497109744204350?l=vsboy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vsboy.blogspot.com/feeds/2976497109744204350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4600918724058045760&amp;postID=2976497109744204350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/2976497109744204350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4600918724058045760/posts/default/2976497109744204350'/><link rel='alternate' type='text/html' href='http://vsboy.blogspot.com/2008/01/this-is-basic-idea-how-to-create-data.html' title=''/><author><name>Himanshu Bhushan</name><uri>https://profiles.google.com/107131936991382339703</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-hK2cMPkk61U/AAAAAAAAAAI/AAAAAAAAAAA/sQBPuAy4X_o/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4600918724058045760.post-2107967404793483697</id><published>2008-01-14T10:23:00.000-08:00</published><updated>2008-01-14T10:43:56.217-08:00</updated><title type='text'>SOME USEFUL FACTS OF ASP.NET</title><content type='html'>&lt;!--FAQ_TOP BEGIN--&gt;&lt;table leftmargin="0" align="center" border="0" cellpadding="0" cellspacing="0"&gt;  &lt;tbody&gt;&lt;tr&gt;&lt;td valign="top"&gt;       &lt;script src="http://www.google-analytics.com/urchin.js" type="text/javascript"&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; _uacct = "UA-233131-1"; urchinTracker(); &lt;/script&gt;    &lt;table align="center" border="0" cellpadding="0" cellspacing="0" width="630"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;  &lt;table style="border-collapse: collapse;" id="AutoNumber1" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="800"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td height="1"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="1"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx"&gt;1. Development and Deployment Issues&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q4q"&gt;Why are Server control tags shown in the browser instead&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q4q"&gt; of the controls it represents?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q1q"&gt;How To Repair ASP.Net IIS Mapping After You Remove &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q1q"&gt;and Reinstall IIS?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q341q"&gt;Why do I get "HTTP 500" error (or "(DLL) initialization&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q341q"&gt; routine failed") in my browser?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q500q"&gt;I have recently move my Web application from Windows&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q500q"&gt; 2k to Windows Server 2003. All works fine in Windows &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q500q"&gt;2K but i am not able to view pages using Windows Server&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q500q"&gt; 2003?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q454q"&gt;What are the Best practices for side-by-side execution of&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q454q"&gt; Framework 1.0 and 1.1?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q455q"&gt;Can I have VS.NET and the Visual Studio 6.0 installed on &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q455q"&gt;the same machine?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q462q"&gt;How should I check whether IIS is installed or not?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q147q"&gt;In Visual Studio .NET, how do I create a new ASP.NET &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q147q"&gt;application for an existing  ASP.NET project?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.9&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q40q"&gt;Why do I get the error message "Server Application Unavailable&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q40q"&gt; The web application you are attempting to access on this web &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q40q"&gt;server is currently unavailable. Please hit the "Refresh" &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q40q"&gt;button in your web browser to retry your request."?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.10&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q146q"&gt;In Visual Studio .NET, how do I create a new ASP.NET &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q146q"&gt;application which does not have a physical path under&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q146q"&gt; wwwroot?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.11&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q508q"&gt;Why do I get the "Unable to find script libruary&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q508q"&gt; 'WebUIValidation.js'" error ?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.12&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q576q"&gt;After installing .NET Framework SP1 the client side &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q576q"&gt;validations, or rather validator controls are not working?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.13&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q580q"&gt;How to Configure the ASP.NET Version to use for Each &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q580q"&gt;Application(developed using 1.0 or 1.1)?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.14&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q581q"&gt;How to Configure Different Versions of an ASP.NET Application&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q581q"&gt; Running on the Same Web Server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.15&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q597q"&gt;Why do I get error message "Internet Explorer cannot download &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q597q"&gt;MyPage.aspx from MyWebSite.com ..."?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   1.16&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q336q"&gt;Why do I get error message "Unable to start debugging on the&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q336q"&gt; web server. The server does not support debugging of ASP.NET&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c1c.aspx#q336q"&gt; or ATL Server applications. ..."?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="2"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx"&gt;2. Basic&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q428q"&gt;What is ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q2q"&gt;Why does my ASP.NET file have multiple &lt;/a&gt;&lt;form&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q2q"&gt; tag with runat=server?&lt;/a&gt;&lt;/form&gt;   &lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;  &lt;/table&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q6q"&gt;How to find out what version of ASP.NET I am using on&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q6q"&gt; my machine?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q7q"&gt;Is it possible to pass a querystring from an .asp page to &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q7q"&gt;aspx page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q8q"&gt;How to comment out ASP.NET Tags?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q9q"&gt;What is a ViewState?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q29q"&gt;Where can I get the details on Migration of existing projects &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q29q"&gt;using various technologies to ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q57q"&gt;What is the equivalent of date() and time() in ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.9&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q59q"&gt;How to prevent a button from validating it's form?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.10&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q64q"&gt;How to get the IP address of the host accessing my site?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.11&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q65q"&gt;How to access the Parameters passed in via the URL?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.12&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q66q"&gt;How to Set Focus to Web Form Controls By Using Client-Side&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q66q"&gt; Script?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.13&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q67q"&gt;How to display a Wait page while a query is running?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.14&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q68q"&gt;How to implement Form based Authentication in ASP.NET&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q68q"&gt; application?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.15&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q69q"&gt;How to catch the 404 error in my web application and provide&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q69q"&gt; more useful information?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.16&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q77q"&gt;Is there a method similar to Response.Redirect that will send &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q77q"&gt;variables to the destination page other than using a query string&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q77q"&gt; or the post method?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.17&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q90q"&gt;What are the differences between HTML versus Server Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.18&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q91q"&gt;How can I change the action of a form through code?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.19&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q92q"&gt;Is there any control that allows user to select a time from a clock&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q92q"&gt; - in other words is there a clock control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.20&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q96q"&gt;How to Compare time?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.21&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q97q"&gt;How To work with TimeSpan Class?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.22&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q111q"&gt;Where can I get information on Cookies in ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.23&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q114q"&gt;Does ASP.Net still recognize the global.asa file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.24&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q115q"&gt;How should I destroy my objects in ASP.Net?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.25&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q117q"&gt;Are there resources online with tips on ASP to ASP.Net conversions?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.26&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q148q"&gt;How do I publish my ASP.NET application to my ISP's web server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.27&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q149q"&gt;Why do i get error message "Could not load type" whenever &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q149q"&gt;I browse to my ASP.NET web site?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.28&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q430q"&gt;Will the WebMatrix SqlDataSourceControl work with a MySQL&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q430q"&gt; connection?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.29&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q189q"&gt;Can I combine classic ASP and ASP.NET pages?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.30&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q456q"&gt;What is the difference between src and Code-Behind?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.31&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q435q"&gt;How can I get the value of input box with type hidden in code-behind?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.32&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q429q"&gt;I have created a .NET user control page (.ascx) but I cannot &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q429q"&gt;compile and run it.&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.33&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q411q"&gt;What is a .resx file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.34&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q116q"&gt;Is it possible to use a style sheet class directly on a control instead&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q116q"&gt; of using inline or page-level formatting ?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.35&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q137q"&gt;Can I recieve both HTML markup for page and code in the &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q137q"&gt;ASP.NET web page's source code portion in the Web browser?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.36&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q118q"&gt;Why can't I put &lt;%@ Page Language="C " %&gt; where at the top &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q118q"&gt;of an ASPX file and write my server-side scripts in C ?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.37&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q415q"&gt;ASP pages that worked pefectly on Windows 2000 Server and&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q415q"&gt; IIS 5.0 do not work on Windows 2003 Server with IIS 6.0. &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q415q"&gt;ASP.NET pages work fine. Why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.38&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q418q"&gt;Why do I get error message "Error creating assembly manifest: &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q418q"&gt;Error reading key file 'key.snk' -- The system cannot find &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q418q"&gt;the file specified"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.39&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q173q"&gt;How to get URL without querystring?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.40&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q190q"&gt;What is the best way to output only time and not Date?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.41&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q191q"&gt;Do I have to compile code if I am changing the content of my&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q191q"&gt; aspx.cs file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.42&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q169q"&gt;How to grab the referring URL?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.43&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q170q"&gt;My ASP code gives an error "Compiler Error Message: &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q170q"&gt;BC30289: Statement cannot appear within a method body.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q170q"&gt; End of method assumed" when changed to .aspx?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.44&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q171q"&gt;How can I save images ?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.45&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q172q"&gt;How can I logout when using FormsAuthentication?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.46&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q214q"&gt;Why do I get a blank page when I use Server.Transfer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q214q"&gt;("page1.htm") to transfer to a different page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.47&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q216q"&gt;How to detect the User's culture?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.48&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q217q"&gt;What is the difference between CurrentCulture property&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q217q"&gt; and the CurrentUICulture property?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.49&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q457q"&gt;Can I read the hard disk serial # of the client computer &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q457q"&gt;using ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.50&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q458q"&gt;What is xxx(src As Object, e As EventArgs)?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.51&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q485q"&gt;What is the difference between Absolute vs Relative URLs?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.52&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q486q"&gt;What is the difference between URL and URI?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.53&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q516q"&gt;How to convert milliseconds into time?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.54&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q520q"&gt;How to include multiple vb/cs files in the source?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.55&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q522q"&gt;How to convert a string to Proper Case?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.56&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q586q"&gt;How can I ensure that application-level variables are not &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q586q"&gt;updated by more than one user simultaneously?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.57&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q577q"&gt;Why do I get the error message "System.InvalidOperation&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q577q"&gt;Exception: It is invalid to show a modal dialog or form when &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q577q"&gt;the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a ...."?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.58&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q593q"&gt;How to validate that a string is a valid date?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.59&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q599q"&gt;Are namespaces and Class names Case Sensitive?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.60&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q523q"&gt;How to convert string to a DateTime and compare it with &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q523q"&gt;another DateTime?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.61&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q525q"&gt;How to get the url of page dynamically?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.62&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q526q"&gt;How to convert user input in dMy format to Mdy?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.63&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q487q"&gt;When the User is prompted a File Download dialogbox, &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q487q"&gt;if the user selects "Save" then the "Save as" dialog box is &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q487q"&gt;displayed. Is there any way for me to retrieve the filename&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q487q"&gt; and directory path specified by the user on the File Download &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q487q"&gt;dialog box?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.64&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q499q"&gt;How to hide or show Controls in server side code?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.65&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q479q"&gt;How to check if the user is using a secure or non secure&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q479q"&gt; connection?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.66&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q482q"&gt;Is it possible to write code in many languages in one ASP.NET&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q482q"&gt; project?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.67&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q460q"&gt;What is the difference between Response.Redirect() and&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q460q"&gt; Server.Transfer().&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.68&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q461q"&gt;How to get the hostname or IP address of the server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.69&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q463q"&gt;What is the meaning of  validateRequest=true  in .net&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q463q"&gt; framework1.1?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.70&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q475q"&gt;What is the different between &lt;%# %&gt; and &lt;%= %&gt;?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.71&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q212q"&gt;What permissions do ASP.NET applications posses by default?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.72&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q224q"&gt;How can I specify the relative path for a file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.73&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q225q"&gt;How can I specify the "upload a file" input textbox in a form to&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q225q"&gt; be read only so that the user can click on the browse button&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q225q"&gt; and pick a file but they cannot type anything into the textbox&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q225q"&gt; next to the browse button.&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.74&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q226q"&gt;How to change the Page Title dynamically?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.75&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q325q"&gt;Why do I get the error message "Object must implement&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q325q"&gt; IConvertible". How can I resolve it?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.76&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q417q"&gt;Why is default.aspx page not opened if i specify http://localhost. &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q417q"&gt;I am able to view this page if i hardcode it as http://localhost/default.aspx?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.77&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q414q"&gt;Can ASP.NET work on an NT server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.78&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q329q"&gt;Is it possible to migrate Visual InterDev Design-Time&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q329q"&gt; Controls to ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.79&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q330q"&gt;How to automatically get the latest version of all the asp.net &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q330q"&gt;solution items from Source Safe when opening the solution?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.80&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q333q"&gt;How to convert the datetime into a string for use in the SQL     &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q333q"&gt;' statement?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.81&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q335q"&gt;How to make VS.Net use FlowLayout as the default layout&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q335q"&gt; rather than the GridLayout?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.82&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q369q"&gt;Can I use a DataReader to update/insert/delete a record?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.83&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q371q"&gt;What is the difference between Server.Transfer and Server.Execute?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.84&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q376q"&gt;How to create a login screen in ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.85&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q410q"&gt;How to format a Telphone number in the xxx-xxx-xxxx format?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.86&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q119q"&gt;Can two different programming languages be mixed in a &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q119q"&gt;single ASPX file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.87&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q120q"&gt;Can I use custom .NET data types in a Web form?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   2.88&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q129q"&gt;How can I have a particular Web page in an ASP.NET &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c2c.aspx#q129q"&gt;application which displays its own error page.&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="10"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx"&gt;3. Debugging and Error Handling&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q39q"&gt;Why do I get Error message "Unable to Start Debugging" &lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q39q"&gt;Error Message When You Send Debug HTTP Request?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q38q"&gt;Why do I get the error message "Unable to start debugging on&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q38q"&gt; the web server..." when I debug?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q41q"&gt;When I Debug ASP.NET Applications I get error message "Access Is Denied. Check the DCOM Configuration Settings for the Machine Debug Manager"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q42q"&gt;On Trying to Debug an application, by the F5 key I get the error: "Error while trying to run project: Unable to start debugging on the web server. Catastrophic failure"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q132q"&gt;How to configure my project for debugging ASP Code?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q234q"&gt;In Visual Studio .NET, whenever I try to debug my ASP.NET application I'm not able to stop the debugger on my breakpoints.  Why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q338q"&gt;Why do I get error message "Unable to start debugging on the web server. The debugger is not properly installed. Run setup to install or repair the debugger. Would you like to disable future attempts to debug ASP.NET pages for this project ? "?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q611q"&gt;How do I debug JavaScript and other script code in my application using Visual Studio .Net?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.9&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q213q"&gt;What are the different exception-handling approaches that can be used in ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.10&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q144q"&gt;Why do I get error message "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.11&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q176q"&gt;Why do I get the Error Message "System.OutOfMemoryException: Exception of type System.OutOfMemoryException was thrown."?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.12&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q394q"&gt;Why do I get the error message "Sql Server does not exists or access denied " whenever I try to access the data on Sql server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.13&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q395q"&gt;Why do I get error message "It is already opened exclusively by another user, or you need permission to view its data." when I try to open Access mdb?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.14&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q413q"&gt;Why do I get the "HTTP 404 - File not found." error message as "The page cannot be found.The page you are looking for might have been removed, had its name changed, or is temporarily unavailable "?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.15&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q561q"&gt;When I install the Microsoft .NET Framework 1.1 on a computer that is running Windows XP, and then you start Windows, the Welcome screen appears. This screen prompts me to click your user name to start Windows.Why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.16&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q533q"&gt;Why do I get the error message "System.InvalidOperationException: Application is restarting"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.17&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q578q"&gt;How can I see the Trace messages?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.18&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q582q"&gt;I have installed ASP.NET hotfix and I find that Startup Type of the ASP.NET Session State Service is set to Manual.Why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.19&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q592q"&gt;Why do I get the error message "aspnet_wp.exe (PID: XXXX) was recycled because it was suspected to be in a deadlocked state "?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.20&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q603q"&gt;How to display errors using Page_Error event of Page Object?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.21&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q604q"&gt;How to redirect the user to the friendly error-handler page when an Application error occurs?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.22&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q408q"&gt;How to Enable Remote Debugging on Windows XP Service Pack 2?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.23&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q425q"&gt;Why do I get error message ""Parser Error Message: Access is denied: Source Error: Line xxx :&lt;add assembly="*"&gt; ""?&lt;/add&gt;&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.24&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q471q"&gt;Why do I get the error message "A potentially dangerous Request.Form value was detected from the client "?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.25&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q473q"&gt;How can I test performance of the Web application?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.26&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q474q"&gt;How can I resolve the error message "Cannot access file '...' because it is being used by another process"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.27&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q476q"&gt;Why do I get the Compiler Error Message: "CS0246: The type or namespace name '...' could not be found (are you missing a using directive or an assembly reference?) "?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.28&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q514q"&gt;Why do I get the error message "Compiler Error Message: CS1595"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.29&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q370q"&gt;I get error message at runtime "Value null was found where an instance of an object was required" when using Application state variables. why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.30&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q372q"&gt;I installed Windows 2003 Standard Edition, then VS.NET and SQL Server 2K with SP3. When I build web project connecting to the database in VS.NET, the compliler gives me the following error:Login failed for user 'NT AUTHORITY\NETWORK SERVICE',why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.31&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q367q"&gt;Why do I get error message "System.Threading.ThreadAbortException: Thread was being aborted" while using Response.Redirect?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.32&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q322q"&gt;Why do I get the error message "BC30451: Name 'ConfigurationSettings' is not declared"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.33&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q185q"&gt;What is a parser error?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.34&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q232q"&gt;Whenever I browse to one of my ASP.NET web pages, Internet Explorer keeps on asking me if I want to download it, or it just displays the ASPX source. Why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.35&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q196q"&gt;Why am I getting the error: "Type '(OleDb or SQL)Connection' is not defined."?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.36&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q197q"&gt;Why do I get the Error message "Operation must use an updateable query"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.37&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q233q"&gt;When compiling I get "Could not copy temporary files to the output directory" or "The process cannot access the file because it is being used by another process" error messages. Why?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.38&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q235q"&gt;Why do I get error message "Failed to Start Monitoring Directory Changes" when i try to browse ASP.NET page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.39&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q269q"&gt;Why do I get Compilation error "&lt;control&gt; is not a member of &lt;page&gt;"?&lt;/page&gt;&lt;/control&gt;&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.40&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q299q"&gt;How to see the Message in the Output window using ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   3.41&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c10c.aspx#q583q"&gt;How can I use Tracing in Custom Components?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="11"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx"&gt;4. Miscellaneous&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q54q"&gt;How to get the currently logged in user?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q56q"&gt;How to specify a line break in a Label's Text?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q62q"&gt;How to convert a string to HTML format?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q80q"&gt;How do I determine if the user clicked a "Submit" button twice in the page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q101q"&gt;How to write date-time values of fields in a dataset into xml in a specific format?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q104q"&gt;What does "~" mean in ASP.NET applications?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q106q"&gt;How can I reference simple DLL which contains one class but has no namespace assigned to it in an .aspx page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q107q"&gt;How do I specify the Japanese locale for the controls in my Japanese localized page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.9&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q139q"&gt;Why do some of the events on my page fire twice?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.10&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q140q"&gt;How to remove the spaces in a given string?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.11&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q145q"&gt;I get the error System.__ComObject  when using recordset?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.12&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q152q"&gt;Why do I get error "A generic error occurred in GDI+." when trying to save the bitmap file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.13&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q87q"&gt;How can I force a Save As dialog box from an ASP.NET Web page.&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.14&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q74q"&gt;In ASP.NET is there a control similar to Combobox in Windows forms?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.15&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q78q"&gt;How to do text encryption and decryption?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.16&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q71q"&gt;How can I trigger a submit on my form when the enter key is pressed?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.17&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q174q"&gt;How to get list of all files in the directory?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.18&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q166q"&gt;What is HttpHandler?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.19&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q177q"&gt;How to get the size of a byte array?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.20&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q178q"&gt;How to know the width and height in pixels of a given image programmatically?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.21&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q182q"&gt;When using FormsAuthentication, how can I redirect a user to a different page other than the default page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.22&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q186q"&gt;Is there a control in ASP.NET for geting HTML like the ASPHTTP for the classic asp.&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.23&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q187q"&gt;Why do I get error message "System.Web.HttpException: Request is not available in this context"  " when using Cookies?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.24&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q229q"&gt;How to save the Output of ASP.NET to HTML?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.25&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q263q"&gt;Why do I get ViewState error when upgrading my application from a single web server to a web farm?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.26&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q270q"&gt;How to convert Color to it's corresponding Hexadecimal value?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.27&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q272q"&gt;How to Select a record using Listbox and edit/update it's fields using textboxes?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.28&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q282q"&gt;How to select a value from a child form and send it to parent form?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.29&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q284q"&gt;How to read the comma seperated values from a string?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.30&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q291q"&gt;How do I make my TextBox positioned below a DataGrid move up or down in position as the height of the DataGrid changes?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.31&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q302q"&gt;How to stamp Date-Time on all the pages in an application when requested?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.32&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q318q"&gt;How can I have multiple command buttons map to the same event or function?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.33&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q321q"&gt;How to use a RangeValidator to select Colors from a specific range?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.34&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q334q"&gt;How to restore the browser's scroll position after a postback?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.35&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q337q"&gt;Is there something as RecordSet we had in ASP that can be used in ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.36&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q346q"&gt;How to set a link tag's href attribute at runtime using a value specified in the web.config file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.37&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q366q"&gt;How to call the Page_load procedure from any event on the page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.38&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q368q"&gt;How to add login user (ASPNET) to MS SQL 2000 Desktop Engine server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.39&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q383q"&gt;How to get the count of rows in a Excel file?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.40&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q385q"&gt;What are the pros and cons of using Session or Cache to save intermediate state?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.41&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q393q"&gt;How to mirror (align elements Right to Left) a form or control on a form?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.42&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q416q"&gt;How can I Enable ASPX Compression in IIS?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.43&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q419q"&gt;How to run an exe from a ASP.NET page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.44&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q423q"&gt;Why does FormsAuthentication.Decrypt crashes when moving to another Server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.45&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q424q"&gt;Why do I get error message "Login failed for user DOMAIN\USERNAME"?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.46&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q426q"&gt;How to check if the current User has been Authenticated?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.47&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q427q"&gt;How to get the Computer Name on which the code is running?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.48&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q432q"&gt;How to pass argument to accessdatasourcecontrol selectcommand statement?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.49&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q466q"&gt;How to compile CS/VB file and place new DLL in bin subdirectory?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.50&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q483q"&gt;Can I use a src attribute with a Web Service?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.51&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q496q"&gt;How to display random images on a web page from a set of images in a directory?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.52&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q512q"&gt;How can I scan a string to determine if it contains DBCS chars?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.53&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q519q"&gt;Request.ServerVariables("LOGON_USER")  always returns empty string in Framework 1.1 . Why? It worked fine in ASP?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.54&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q531q"&gt;Is there a way to specify CSS only if the browser is IE?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.55&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q605q"&gt;How to create Custom Application Settings in the web.config?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.56&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q610q"&gt;Why do I get "do not have permissions" error when accessing a Access mdb file in my local system?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   4.57&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q194q"&gt;How can I access an MS Access database in my ASPX page, if the db is on a remote server?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="12"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx"&gt;5. Calendar&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q63q"&gt;How to display multiple dates selected in Calendar Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q75q"&gt;How to reset the selected date in the calendar control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q76q"&gt;How to Customize Individual Days in a Calendar Web Server Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q83q"&gt;Is there a way to click an image and let the calendar Control appear?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q89q"&gt;How to Programmatically change backgroundcolor of a Calendar Control using Dropdown List?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q180q"&gt;How can I change the month and Weekdays to Japanese characters for a Calendar Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q247q"&gt;How can I use a Calendar Control to show specific dates highlighted and display relevant data for that date?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q524q"&gt;How to clear the Calendar Control Selection?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.9&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q405q"&gt;How can I set the Selection of the Calendar Control to date or week or month?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.10&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q351q"&gt;How can I display the calendar control in different languages according to the navigator culture?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.11&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q404q"&gt;How to display full day names in a Calendar Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.12&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q342q"&gt;How to hide the WeekDay Header in the Calendar control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.13&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q343q"&gt;How to hide "other months" in a Calendar Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.14&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q344q"&gt;How to highlight today's date in Calendar Control in different color?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.15&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q350q"&gt;How can I use a Calendar Control in readonly mode. i.e  no links for the day and month cells.&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   5.16&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c12c.aspx#q257q"&gt;How to change the Calendar Dates using a Dropdownlist?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="13"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx"&gt;6. User Controls&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q72q"&gt;How can I include an Asp.NET page in many other Asp.Net pages so that I don't need to rewrite the code?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q165q"&gt;Is there anything similar to web templates in ASP that I can use in ASP.Net?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q112q"&gt;Are there any settings on the application level to make certain elements appear on every page without having to manually insert code or insert UserControls?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q181q"&gt;How to pass a parameter to a user control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q465q"&gt;How to add user control dynamically into another usercontrol?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q515q"&gt;I have a function inside of the .ascx file. How can I call it from the web application page(the .aspx file)?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q303q"&gt;How to dynamically load User Controls?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   6.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx#q345q"&gt;How to change the imageurl of the image control that exists in a usercontrol?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="14"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx"&gt;7. DataList&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q296q"&gt;Why is the DataList not displayed on the web page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q248q"&gt;How to change the colors of a row to indicate its the Birthday of the Employee (for example) in a DataList?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q175q"&gt;How to group the data in the DataList?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q142q"&gt;Which control should I use when binding a multidimensional array?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q300q"&gt;How to display data in multiple columns for a specific Column in a table in an ASP.NET page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q328q"&gt;How to use a Hyperlink in a DataList?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q358q"&gt;How to do Paging in DataList?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q365q"&gt;How to hide and show data in the DataList?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.9&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q381q"&gt;How to add a Templatecolumn dynamically to a DataList?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.10&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q397q"&gt;How to create a File Picker in ASP.NET?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.11&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q398q"&gt;How can I get a list of all the environment variables?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.12&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q402q"&gt;How to display checkbox in a DataList and highlight a row if the value of checkbox is true?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   7.13&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c14c.aspx#q490q"&gt;How to display all System Colors in a DataList?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="16"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx"&gt;8. Repeater&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   8.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q203q"&gt;How to display alphabetically sorted data in Repeater?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   8.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q301q"&gt;How to display the Directory names in the Repeater Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   8.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q380q"&gt;How to define HeaderTemplate and ItemTemplate to the Repeater at runtime TBD?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   8.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q382q"&gt;How to add a TemplateColumn dynamically to Repeater?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   8.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q399q"&gt;How to implement sorting using Repeater?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   8.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q403q"&gt;Can I specify ItemStyle to a Repeater Control?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   8.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q438q"&gt;How to change the row color of the Repeater based on some condition?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="17"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c17c.aspx"&gt;9. Security&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   9.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c17c.aspx#q560q"&gt;What is the difference between authentication and authorization?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   9.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c17c.aspx#q209q"&gt;How to implement authentication via web.config?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   9.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c17c.aspx#q210q"&gt;How to run a Web application using the permission of an authenticated user?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   9.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c17c.aspx#q211q"&gt;Which are the different ASP.NET authentication modes?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   9.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c17c.aspx#q231q"&gt;How to determine the Windows User from a Web form Application?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   9.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c17c.aspx#q478q"&gt;After installing SP4 none of my ASP.NET pages developed using Framework 1.0 are showing the errors related to security?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="18"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c18c.aspx"&gt;10. CheckBox&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   10.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c18c.aspx#q238q"&gt;How to assign a text to Checkbox control and know which checkbox is selected?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   10.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c18c.aspx#q464q"&gt;How to validate a CheckBox?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td height="19"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table bordercolorlight="#00FFFF" bgcolor="#ccd4e6" border="0" cellpadding="0" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td width="549"&gt;&lt;h4&gt;&lt;a name="15"&gt;&lt;/a&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx"&gt;11. Client Side Scripting&lt;/a&gt;&lt;/h4&gt;&lt;/td&gt;&lt;td align="right" width="81"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/Default.aspx#Top" title="Top of Page"&gt;     &lt;img src="http://www.syncfusion.com/images/icons/top.gif" border="0" height="12" width="11" /&gt;&lt;/a&gt;  &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.1&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q58q"&gt;How to emit client-side javascript blocks from VB.NET/C#?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.2&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q73q"&gt;How to open a new Window using javascript function from a Link button?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.3&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q613q"&gt;Is there a JavaScript Quick Reference Guide?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.4&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q86q"&gt;How to set the background color of a web page using code behind?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.5&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q141q"&gt;How to resolve error message "String constants must end with a double quote."?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.6&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q215q"&gt;Why can't I open a new browser window from within server code?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.7&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q221q"&gt;How to get the confirmation of Yes/No from a javascript pop-up and display the value on the page?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.8&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q223q"&gt;How to open a browser window with maximum size on click of a button?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.9&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q94q"&gt;How can I know if the client browser supports active scripting?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.10&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q585q"&gt;How to determine if the Browser supports javascript?&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;table border="0" cellpadding="2" cellspacing="0" width="630"&gt;   &lt;tbody&gt;&lt;tr&gt;&lt;td align="left" valign="top" width="47"&gt;   11.11&lt;/td&gt;&lt;td width="562"&gt;&lt;a href="http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q505q"&gt;Ho
