title: how to get focus to the next editable column in gridview using jquery
body: <p>I am using VS 2005, ASP.NET,C#.NET AND JQUERY.
  I have gridview in update panel.
  I have tab index of one cell $(this).attr('tabIndex')
  I have to move the focus to the next editable cell .
  how to find the tab index of the next cell and give focus to it when pressing arrow keys</p>
  
  <p>thanks in advance
  george n t</p>
  
  <pre><code>        &lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmPLEntryMonthWise.aspx.cs" Inherits="frmPLEntryMonthWise" %&gt;
          &lt;%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
              Namespace="System.Web.UI" TagPrefix="asp" %&gt;
  
          &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
          &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
          &lt;head id="Head1" runat="server"&gt;
              &lt;title&gt;P &amp; L Entry - All Account (Cumulative)&lt;/title&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
                 &lt;style type="text/css"&gt;
                  .GVFixedHeader { font-weight:bold;  border-width:1px 1px;border:solid #d3d3d3; position:relative; top:expression(this.parentNode.parentNode.parentNode.scrollTop-1);}
              &lt;/style&gt;
              &lt;script language="javascript" type="text/javascript"&gt;
                  function getScrollBottom(p_oElem)
                  {
                      return p_oElem.scrollHeight - p_oElem.scrollTop - p_oElem.clientHeight;
                  }
              &lt;/script&gt;
          &lt;link href="includes/text.css" type="text/css" rel="stylesheet" /&gt;
          &lt;link href="style.css" type="text/css" rel="stylesheet" /&gt;
  
          &lt;script type="text/javascript" src="includes/jquery.js"&gt;function DIV1_onclick() {}
  
          &lt;/script&gt;
  
          &lt;style type="text/css"&gt; 
          .container {
              width:900px;
              height:1000px;
              overflow:hidden;
              padding:20px;
          }
          &lt;/style&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt; function isNumberKey() {}&lt;/script&gt; 
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt;function checkBlankPressTab() {}&lt;/script&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt;function checkBlankPressOnblur() {}&lt;/script&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt; function checkValidNo(){}&lt;/script&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt; function fnSum(){}&lt;/script&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt;function fnRound(){}&lt;/script&gt; 
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt; function isNumberKey1(){}&lt;/script&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt; function isNumberKey2(){}&lt;/script&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt;function appendZero(){   }&lt;/script&gt;
          &lt;script type="text/javascript" src="includes/plBooking.js"&gt; function validate_Save(){}&lt;/script&gt;
           &lt;script src="JQuery/jquery-1.4.1.js" type="text/javascript"&gt;&lt;/script&gt;
  
              &lt;script src="JQuery/jquery.keynavigation.js" type="text/javascript"&gt;&lt;/script&gt;
  
             &lt;%-- &lt;script language="javascript" type="text/javascript"&gt;
                  $(document).ready(function() {
                      //For navigating using left and right arrow of the keyboard
                      var gridview = $("#grdView");
                      $.keynavigation(gridview);
                  });
              &lt;/script&gt;--%&gt;
               &lt;script language="javascript" type="text/javascript"&gt;
              $("body").keydown(function(e) {
              alert('hi');
            if(e.keyCode == 40) { // down
                 $(':focus').nextAll(':has(["tabIndex"]):not([tabIndex=-1])').focus();
            }
             else if(e.keyCode == 38) { // up
                 $(':focus').prevAll(':has(["tabIndex"]):not([tabIndex=-1])').focus();            
           }
             else if(e.keyCode == 37) { // left
                 $(':focus').prevAll(':has(["tabIndex"]):not([tabIndex=-1])').focus();            
           }
             else if(e.keyCode == 39) { // right
                 $(':focus').prevAll(':has(["tabIndex"]):not([tabIndex=-1])').focus();            
           }
           });
           &lt;/script&gt;
          &lt;%--&lt;script type="text/javascript" src="includes/plBooking.js"&gt; function fnShowTotal(){}&lt;/script&gt;--%&gt;
  
          &lt;%--&lt;link href="cal/popcalendar.css" rel="stylesheet" type="text/css" /&gt;--%&gt;
          &lt;/head&gt;
          &lt;body id="body" runat="server" onkeydown=""&gt;
  
          &lt;form id="Form1" runat="server" &gt;
  
          &lt;div class="container" id="DIV1" onclick="return DIV1_onclick()" style="width: 1219px; height: 540px;" &gt;
              &lt;asp:ScriptManager id="ScriptManager1" runat="server"&gt;
                &lt;Scripts&gt;
                      &lt;asp:ScriptReference Path="~/FixFocus.js" /&gt;
                  &lt;/Scripts&gt;
              &lt;/asp:ScriptManager&gt;      
                &lt;div &gt;    
                &lt;asp:Label ID="lblDetails" runat="server" Font-Bold="True" ForeColor="Black" Text="Company Name" Width="1080px"&gt;&lt;/asp:Label&gt;      
                 &lt;asp:Label ID="lblExRate" runat="server" Font-Bold="True" ForeColor="Black" Text="Exchange Rate"  &gt;&lt;/asp:Label&gt; 
              &lt;table style="height: 325px; width: 98%;"  &gt; 
  
                      &lt;tr&gt;
                          &lt;td align="left" colspan="4" valign="top" style="width: 682px; height: 243px;"&gt;&lt;strong&gt;&lt;/strong&gt;
  
                               &lt;div style="height:340px; width:1198px; overflow-y:scroll; overflow: auto;"&gt;
                                   &lt;asp:UpdatePanel id="UpdatePanel1" runat="server" &gt;&lt;contenttemplate&gt;
                             &lt;asp:GridView  ID="grdView" runat="server" Width="900px" AutoGenerateColumns="False"  ShowFooter="True" CssClass="grid" DataKeyNames="accCode" style="overflow: scroll" OnRowDataBound="grdView_RowDataBound"    &gt;
                                       &lt;HeaderStyle CssClass="GVFixedHeader" /&gt;
                                       &lt;FooterStyle CssClass="GVFixedFooter" /&gt;                                   
                                  &lt;Columns&gt;
                                      &lt;asp:TemplateField HeaderText="Acc.No." &gt;                                
                                          &lt;ItemStyle Width="70px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:Label ID="lblAccCode" runat="server" Text='&lt;%# Eval("accUserCode") %&gt;'&gt;&lt;/asp:Label&gt;
                                          &lt;/ItemTemplate&gt;
                                          &lt;FooterTemplate&gt;
                                          &lt;/FooterTemplate&gt;
  
                                          &lt;ControlStyle Width="70px" /&gt;
                                      &lt;/asp:TemplateField&gt;
                                      &lt;asp:TemplateField HeaderText="P &amp;amp; L Account Name"&gt;                                
                                          &lt;ItemStyle Width="190px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:Label ID="lblAccName" runat="server" Text='&lt;%# Eval("accName") %&gt;'&gt;&lt;/asp:Label&gt;
                                          &lt;/ItemTemplate&gt;
                                          &lt;FooterTemplate&gt;
                                           &lt;asp:TextBox ID="txtTotal" Width="190px" runat="server" Font-Bold="true" Font-Size="Medium" style="text-align:right;" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" Text="Total" &gt;&lt;/asp:TextBox&gt;
                                          &lt;/FooterTemplate&gt;
                                           &lt;ControlStyle Width="190px" /&gt;
                                      &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="D"&gt;                                
                                          &lt;ItemStyle Width="10px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:Label ID="lblDeprec" runat="server" &gt;&lt;/asp:Label&gt;
                                          &lt;/ItemTemplate&gt;
                                          &lt;FooterTemplate&gt;
                                          &lt;/FooterTemplate&gt;
                                           &lt;ControlStyle Width="10px" /&gt;
                                      &lt;/asp:TemplateField&gt;
                                      &lt;asp:TemplateField HeaderText="B"&gt;                                
                                          &lt;ItemStyle Width="10px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:Label ID="lblProv" runat="server" &gt;&lt;/asp:Label&gt;
                                          &lt;/ItemTemplate&gt;
                                          &lt;FooterTemplate&gt;
                                          &lt;/FooterTemplate&gt;
                                           &lt;ControlStyle Width="10px" /&gt;
                                      &lt;/asp:TemplateField&gt;
                                      &lt;asp:TemplateField HeaderText="C"&gt;                                
                                          &lt;ItemStyle Width="10px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:Label ID="lblCons" runat="server" &gt;&lt;/asp:Label&gt;
                                          &lt;/ItemTemplate&gt;
                                          &lt;FooterTemplate&gt;
                                          &lt;/FooterTemplate&gt;
                                           &lt;ControlStyle Width="10px" /&gt;
                                      &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="M-1 Cumul." &gt;  
                                       &lt;HeaderTemplate&gt;
                                          &lt;asp:Label Width="60px" ID="lblHCumul" runat="server" Text="&lt;%# fillHeaderCumul() %&gt; "  &gt;&lt;/asp:Label&gt;
                                      &lt;/HeaderTemplate&gt;                                                          
                                          &lt;ItemStyle Width="60px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:TextBox Width="60px" ID="lblPCum" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew"  runat="server" Text='&lt;%# Eval("PCum") %&gt;' TabIndex="-1"  &gt;&lt;/asp:TextBox&gt;
                                          &lt;/ItemTemplate&gt;
                                          &lt;FooterTemplate&gt;
                                          &lt;asp:TextBox ID="lblFPCum" Width="60px"  style="text-align:right;" Font-Bold="true" ReadOnly="true"  BorderStyle="none"  BorderColor="honeydew" BackColor="honeyDew"  runat="server" /&gt; 
                                          &lt;/FooterTemplate&gt;    
                                          &lt;ControlStyle Width="60px" /&gt;
                                      &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="Budget"&gt; 
                                      &lt;HeaderTemplate&gt;
                                      &lt;asp:Label Width="60px" ID="lblHBudget" runat="server" Text='&lt;%# fillHeaderBudget() %&gt;'&gt;&lt;/asp:Label&gt;
                                      &lt;/HeaderTemplate&gt;                               
                                          &lt;ItemStyle Width="60px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:TextBox Width="60px" ID="lblMBudget" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server" Text='&lt;%# Eval("MBudget") %&gt;' TabIndex="-1"&gt;&lt;/asp:TextBox&gt;
                                          &lt;/ItemTemplate&gt;
                                          &lt;FooterTemplate&gt;
                                          &lt;asp:TextBox ID="lblFMBudget" Width="60px" style="text-align:right;" Font-Bold="true" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server" /&gt; 
                                          &lt;/FooterTemplate&gt;
                                          &lt;ControlStyle Width="60px" /&gt;
                                      &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="P &amp;amp; L As Per Book"&gt;
                                       &lt;ItemStyle Width="80px" BackColor="White"/&gt;
                                      &lt;ItemTemplate&gt;
                                      &lt;asp:TextBox Width="80px" ID="txtPL" runat="server" text='&lt;%# Eval("PL") %&gt;'    BorderStyle="None" BorderColor="white"    &gt;
                                      &lt;/asp:TextBox&gt;
                                     &lt;/ItemTemplate&gt;
                                     &lt;FooterTemplate&gt;
                                       &lt;%--&lt;asp:TextBox ID="lblFPL" runat="server" /&gt;--%&gt; 
                                          &lt;asp:TextBox ID="lblFPL" Width="80px" style="text-align:right;" Font-Bold="true" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server"   /&gt; 
                                      &lt;/FooterTemplate&gt;
                                      &lt;ControlStyle Width="80px" /&gt;
                                      &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="Adjustments"&gt;
                                       &lt;ItemStyle Width="80px" BackColor="White"/&gt;
                                      &lt;ItemTemplate&gt;
                                      &lt;asp:TextBox Width="80px" ID="txtCorrection" runat="server" text='&lt;%# Eval("Correction") %&gt;'   BorderStyle="None" BorderColor="white"   &gt;
                                      &lt;/asp:TextBox&gt;
                                     &lt;/ItemTemplate&gt;   
                                      &lt;FooterTemplate&gt;
                                          &lt;asp:TextBox ID="lblFCorrection" Width="80px" style="text-align:right;" Font-Bold="true" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server" /&gt; 
                                          &lt;/FooterTemplate&gt; 
                                     &lt;ControlStyle Width="80px" /&gt;                        
                                     &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="Cumul."&gt; 
                                      &lt;HeaderTemplate&gt;
                                          &lt;asp:Label Width="60px" ID="lblHMCumul" runat="server" Text="&lt;%# fillHeaderMonthCumul() %&gt; "&gt;&lt;/asp:Label&gt;
                                      &lt;/HeaderTemplate&gt;                              
                                          &lt;ItemStyle Width="60px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:TextBox Width="60px" ID="lblMCum"  BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server" Text='&lt;%# Eval("MCum") %&gt;' TabIndex="-1"&gt;&lt;/asp:TextBox&gt;
                                          &lt;/ItemTemplate&gt;
                                           &lt;FooterTemplate&gt;
                                          &lt;asp:TextBox ID="lblFMCum"  Width="60px" style="text-align:right;" Font-Bold="true" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server"  /&gt; 
                                          &lt;/FooterTemplate&gt;
                                          &lt;ControlStyle Width="60px" /&gt;
                                      &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="Month Actual"&gt;                               
                                          &lt;ItemStyle Width="60px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:TextBox Width="60px" ID="lblDiffAmt"  BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server" Text='&lt;%# Eval("DAmt") %&gt;' TabIndex="-1"&gt;&lt;/asp:TextBox&gt;
                                          &lt;/ItemTemplate&gt;
                                           &lt;FooterTemplate&gt;
                                          &lt;asp:TextBox ID="lblFDAmt" Width="60px" style="text-align:right;" Font-Bold="true" ReadOnly="true" BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server" /&gt; 
                                          &lt;/FooterTemplate&gt;
                                          &lt;ControlStyle Width="60px" /&gt;
  
  
                                      &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:TemplateField HeaderText="Var. In %"&gt;                                
                                          &lt;ItemStyle Width="60px" /&gt;
                                          &lt;ItemTemplate&gt;
                                              &lt;asp:TextBox Width="60px" ID="lblDiffPcnt"  BorderStyle="none" BorderColor="honeydew" BackColor="honeyDew" runat="server" Text='&lt;%# Eval("DPcnt") %&gt;' TabIndex="-1"&gt;&lt;/asp:TextBox&gt;
                                          &lt;/ItemTemplate&gt;
                                      &lt;/asp:TemplateField&gt;    
  
                                      &lt;asp:TemplateField HeaderText="Remarks" &gt;                           
                                       &lt;ItemStyle Width="195px" BackColor="White" /&gt;
                                      &lt;ItemTemplate&gt;
                                      &lt;asp:TextBox Width="195px" ID="txtComment" runat="server" text='&lt;%# Eval("Comment") %&gt;' BorderStyle="None" BorderColor="white" &gt;
                                      &lt;/asp:TextBox&gt;
                                      &lt;asp:HiddenField ID="HFaccCode" runat="server" Value='&lt;%# Eval("accCode") %&gt;' /&gt;
                                      &lt;asp:HiddenField ID="HFprovision" runat="server" Value='&lt;%# Eval("provision") %&gt;' /&gt;
                                       &lt;asp:HiddenField ID="HFdepreciation" runat="server" Value='&lt;%# Eval("depreciation") %&gt;' /&gt;
                                      &lt;asp:HiddenField ID="HFconsolidation" runat="server" Value='&lt;%# Eval("consolidation") %&gt;' /&gt;
                                      &lt;asp:HiddenField ID="HFaccType" runat="server" Value='&lt;%# Eval("accAccType") %&gt;' /&gt;
                                       &lt;asp:HiddenField ID="HFplentryCurrentMonthstatus" runat="server" Value='&lt;%# Eval("plentryCurrentMonthstatus") %&gt;' /&gt;
  
                                     &lt;/ItemTemplate&gt;
                                      &lt;ControlStyle Width="195px" /&gt;
                                     &lt;/asp:TemplateField&gt;
  
                                      &lt;asp:BoundField DataField="provision" HeaderText="provision" Visible="False" /&gt;
                                      &lt;asp:BoundField DataField="accCode" HeaderText="provision" Visible="False"  /&gt;
                                  &lt;/Columns&gt;
  
  
  
                              &lt;/asp:GridView&gt;&lt;/contenttemplate&gt;
                                   &lt;/asp:UpdatePanel&gt;
                                 &lt;/div&gt;                      
  
                      &lt;/td&gt;                        
                      &lt;/tr&gt;               
                     &lt;/table&gt;        
                      &lt;/div&gt;
  
                  &lt;tr&gt;
                      &lt;td colspan="2" style="height: 15px"&gt; &amp;nbsp;&amp;nbsp
                       &lt;strong&gt;&lt;asp:Label ID="lblName" runat="server" Text="Version : "&gt;&lt;/asp:Label&gt;&lt;/strong&gt;
                           &lt;asp:TextBox ID="txtVersion" runat="server" CssClass="txt" Width="100px" ReadOnly="true"&gt;&lt;/asp:TextBox&gt;
                        &lt;/td&gt;
                          &lt;td align="center" style="width: 100px; height: 15px"&gt;&amp;nbsp;&amp;nbsp;              
                          &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;table &gt;
                  &lt;tr&gt;
  
                      &lt;td colspan="2" style="height: 27px"&gt;
                      &lt;asp:HyperLink ID="hlBack" runat="server" NavigateUrl="~/frmPL.aspx" Font-Underline="True"&gt;Back&lt;/asp:HyperLink&gt;
                      &amp;nbsp;&lt;strong&gt;&lt;asp:Label ID="Label3" runat="server" Text="D -"  &gt;&lt;/asp:Label&gt;&lt;/strong&gt;           
                          &lt;asp:Label ID="Label4" runat="server" ForeColor="blue" Text="Cash Flow Account" Width="130px" style="left: 8px; position: relative; top: 0px"&gt;&lt;/asp:Label&gt;
                      &amp;nbsp;&lt;strong&gt;&lt;asp:Label ID="Label1" runat="server" Text="B -" &gt;&lt;/asp:Label&gt;&lt;/strong&gt;           
                          &lt;asp:Label ID="Label2" runat="server" ForeColor="blue" Text="Budget Account" Width="120px" style="left: 8px; position: relative; top: 0px"&gt;&lt;/asp:Label&gt;
                         &amp;nbsp;&lt;strong&gt;&lt;asp:Label ID="Label7" runat="server" Text="C -"   &gt;&lt;/asp:Label&gt;&lt;/strong&gt;           
                          &lt;asp:Label ID="Label8" runat="server" ForeColor="Blue" Text="Consolidation Account" Width="132px" style="left: 8px; position: relative; top: 0px"&gt;&lt;/asp:Label&gt;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                           &lt;strong&gt; &lt;asp:Label ID="Label20" runat="server"  Text="Var. in % - "&gt;&lt;/asp:Label&gt;&lt;/strong&gt;
                    &lt;asp:Label ID="Label6" runat="server" ForeColor="blue" Text="Difference between Month Actual and Cumul Previous Months" &gt;&lt;/asp:Label&gt;
                          &lt;%--&lt;strong&gt;&lt;asp:Label ID="Label5" runat="server" Text="Var.  -" &gt;&lt;/asp:Label&gt;&lt;/strong&gt;           
                          &lt;asp:Label ID="Label6" runat="server" ForeColor="blue" Text="Difference between current month and previous month" &gt;&lt;/asp:Label&gt;--%&gt;
                          &lt;asp:Label ID="lblError" runat="server" ForeColor="Red" Text="Error" Width="224px" style="left: 8px; position: relative; top: 0px"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                         &lt;td align="center" style="width: 100px; height: 46px"&gt;
                             &amp;nbsp;&lt;/td&gt;
                          &lt;td align="center"&gt;
                              &amp;nbsp;
                          &lt;asp:Button ID="btnShow" runat="server" CssClass="button"  Text="Show Total" Width="100px" OnClick="btnShow_Click" /&gt;&lt;/td&gt;
                            &lt;td align="center" style="width: 100px; height: 27px"&gt;
                          &lt;asp:Button ID="btnSave" runat="server" CssClass="button" OnClick="btnSave_Click"
                              Text="Save" Width="100px"  /&gt;&lt;%-- &lt;asp:Button ID="btnExit" runat="server" CssClass="button" OnClick="btnExit_Click"
                              Text="Exit" Width="100px" /&gt;&amp;nbsp;--%&gt;&lt;/td&gt;
                  &lt;/tr&gt;
  
              &lt;/table&gt;
              &lt;/div&gt;  
            &lt;/form&gt;
          &lt;/body&gt;
          &lt;/html&gt;
  </code></pre>