Below is my code bout not working
<div class="content">
<div>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">All Values in <img src="../../include/images/rs_b.gif" alt="" border="0" />Cr.</td>
</tr>
<tr>
<td bgcolor="#d6d6d6">
<asp:GridView ID="gvReport" width="100%"
runat="server" CellPadding="4" CellSpacing="1" GridLines="None"
AutoGenerateColumns="False" OnRowCommand="gvReport_RowCommand" CssClass="mGrid" PagerStyle-CssClass="pgr" OnRowDataBound="gvReport_RowDataBound" >
<HeaderStyle CssClass="TTHeader"/>
<Columns>
<asp:TemplateField HeaderText="Year" ItemStyle-CssClass="TTRow" ControlStyle-CssClass="tablebluelink" ControlStyle-Width="55px">
<ItemTemplate >
<asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("YR") %>'/>
<a href="#top"><asp:LinkButton ID="Linkbtn" runat="server" Text='<%# Eval("Year") %>' CommandName="lnkDate" OnClientClick="setFunc();" ></asp:LinkButton></a>
</ItemTemplate>
</asp:TemplateField>
<%-- <asp:BoundField DataField="YR" Visible="false" >--%>
<asp:BoundField DataField="Existing_Companies" HeaderText="Existing Companies">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="New_Companies" HeaderText="New Companies">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="Total_Rs" HeaderText="Total">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="Total_USD" HeaderText="Total USD">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
</Columns>
</asp:GridView>
</td></tr>
</table>
</div>
<!-------2 nd grid ------------->
<br />
<br />
<asp:Label ID="lbl_year" onfocus='alert("Hey! I got the focus")' runat="server" Text="Label" Visible="false" Font-Bold="true"></asp:Label>
<br />
<a name="top"></a>
<td valign="top" colspan="3" height="42">
<div id="div2">
<table id="tabel2" width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#d6d6d6">
<asp:GridView ID="gvYearwise" runat="server" CellPadding="4" CellSpacing="1" GridLines="None"
AutoGenerateColumns="False" width="100%" CssClass="mGrid" PagerStyle-CssClass="pgr">
<HeaderStyle CssClass="TTHeader"/>
<Columns>
<%--<asp:TemplateField HeaderText="Col1" ItemStyle-CssClass="TTRow" ControlStyle-CssClass="tablebluelink">
<ItemTemplate >
<asp:LinkButton ID="Linkbtn" runat="server" Text='<%# Eval("Year") %>' CommandName="AddToCart" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" ></asp:LinkButton>
</ItemTemplate> </asp:TemplateField>--%>
<asp:BoundField DataField="Month" HeaderText="Month">
<ItemStyle CssClass="TTRow" Width="50px"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="ExistingCompanies" HeaderText="ExistingCompanies">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="NewCompanies" HeaderText="NewCompanies">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="TotalRs" HeaderText="Total">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="TotalUSD" HeaderText="TotalUSD">
<ItemStyle CssClass="TTRow_right"></ItemStyle>
</asp:BoundField>
</Columns>
</asp:GridView>
</td></tr>
</table>
</div>
</div>
</div>
</div>
</div>
</asp:Content>
Lalitha86, if this helps please login to Mark As Answer. | Alert Moderator